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

ExposureWindow.Builder

public static class ExposureWindow.Builder extends Object

Builder for ExposureWindow.

Public Constructor Summary

Builder()
Creates a new builder for an ExposureWindow.

Public Method Summary

ExposureWindow
build()
Builds an instance of ExposureWindow.
ExposureWindow.Builder
setCalibrationConfidence(int calibrationConfidence)
Sets the calibration confidence.
ExposureWindow.Builder
setDateMillisSinceEpoch(long dateMillisSinceEpoch)
Sets the date in milliseconds since epoch.
ExposureWindow.Builder
setDeviceName(String deviceName)
ExposureWindow.Builder
setInfectiousness(int infectiousness)
Sets the infectiousness.
ExposureWindow.Builder
setReportType(int reportType)
Sets the report type.
ExposureWindow.Builder
setScanInstances(List<ScanInstance> scanInstances)
Sets the scan instances.

Inherited Method Summary

Public Constructors

public Builder ()

Creates a new builder for an ExposureWindow.

Public Methods

public ExposureWindow build ()

Builds an instance of ExposureWindow.

public ExposureWindow.Builder setCalibrationConfidence (int calibrationConfidence)

Sets the calibration confidence. See ExposureWindow.getCalibrationConfidence().

public ExposureWindow.Builder setDateMillisSinceEpoch (long dateMillisSinceEpoch)

Sets the date in milliseconds since epoch. See ExposureWindow.getDateMillisSinceEpoch().

public ExposureWindow.Builder setDeviceName (String deviceName)

public ExposureWindow.Builder setInfectiousness (int infectiousness)

Sets the infectiousness. See ExposureWindow.getInfectiousness().

public ExposureWindow.Builder setReportType (int reportType)

Sets the report type. See ExposureWindow.getReportType().

public ExposureWindow.Builder setScanInstances (List<ScanInstance> scanInstances)

Sets the scan instances. See ExposureWindow.getScanInstances().