Google is committed to advancing racial equity for Black communities. See how.

DiagnosisKeysDataMapping

public class DiagnosisKeysDataMapping extends Object
implements Parcelable Parcelable

Mappings from diagnosis keys data to concepts returned by the API.

Nested Class Summary

class DiagnosisKeysDataMapping.DiagnosisKeysDataMappingBuilder A builder for DiagnosisKeysDataMapping

Inherited Constant Summary

Field Summary

public static final Creator<DiagnosisKeysDataMapping> CREATOR

Public Method Summary

boolean
Map<IntegerInteger>
getDaysSinceOnsetToInfectiousness()
Mapping from diagnosisKey.daysSinceOnsetOfSymptoms to Infectiousness.
int
getInfectiousnessWhenDaysSinceOnsetMissing()
Infectiousness of TEKs for which onset of symptoms is not set.
int
getReportTypeWhenMissing()
Report type to default to when a TEK has no report type set.
int
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<DiagnosisKeysDataMapping> CREATOR

Public Methods

public boolean equals (Object obj)

public Map<IntegerInteger> getDaysSinceOnsetToInfectiousness ()

Mapping from diagnosisKey.daysSinceOnsetOfSymptoms to Infectiousness.

Infectiousness is computed from this mapping and the tek metadata as - daysSinceOnsetToInfectiousness[getDaysSinceOnsetOfSymptoms()], or - getInfectiousnessWhenDaysSinceOnsetMissing() if getDaysSinceOnsetOfSymptoms() is DAYS_SINCE_ONSET_OF_SYMPTOMS_UNKNOWN.

Values of DaysSinceOnsetOfSymptoms that aren't represented in this map are given NONE as infectiousness. Exposures with infectiousness equal to NONE are dropped.

public int getInfectiousnessWhenDaysSinceOnsetMissing ()

Infectiousness of TEKs for which onset of symptoms is not set.

See getDaysSinceOnsetToInfectiousness() for more info.

public int getReportTypeWhenMissing ()

Report type to default to when a TEK has no report type set.

This report type gets used when creating the ExposureWindows and the DailySummarys. The system will treat TEKs with missing report types as if they had this provided report type.

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)