Package org.robolectric.shadows
Class ShadowRangingResult.Builder
- java.lang.Object
-
- org.robolectric.shadows.ShadowRangingResult.Builder
-
- Enclosing class:
- ShadowRangingResult
public static class ShadowRangingResult.Builder extends Object
A builder for creating ShadowRangingResults. Status, macaddress, distance [mm] and timestamp are all mandatory fields. Additional fields can be specified by setters. Use build() to return the ShadowRangingResult object.
-
-
Constructor Summary
Constructors Constructor Description Builder(int status, MacAddress mac, long timestampMillis, int distanceMm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RangingResult
build()
ShadowRangingResult.Builder
setDistanceStandardDeviation(int stddev)
ShadowRangingResult.Builder
setIs80211mcMeasurement(boolean is80211mcMeasurement)
ShadowRangingResult.Builder
setLci(byte[] lci)
ShadowRangingResult.Builder
setLcr(byte[] lcr)
ShadowRangingResult.Builder
setNumAttemptedMeasurements(int num)
ShadowRangingResult.Builder
setNumSuccessfulMeasurements(int num)
ShadowRangingResult.Builder
setRssi(int rssi)
ShadowRangingResult.Builder
setUnverifiedResponderLocation(ResponderLocation unverifiedResponderLocation)
-
-
-
Constructor Detail
-
Builder
public Builder(int status, MacAddress mac, long timestampMillis, int distanceMm)
-
-
Method Detail
-
setDistanceStandardDeviation
public ShadowRangingResult.Builder setDistanceStandardDeviation(int stddev)
-
setRssi
public ShadowRangingResult.Builder setRssi(int rssi)
-
setNumAttemptedMeasurements
public ShadowRangingResult.Builder setNumAttemptedMeasurements(int num)
-
setNumSuccessfulMeasurements
public ShadowRangingResult.Builder setNumSuccessfulMeasurements(int num)
-
setLci
public ShadowRangingResult.Builder setLci(byte[] lci)
-
setLcr
public ShadowRangingResult.Builder setLcr(byte[] lcr)
-
setUnverifiedResponderLocation
public ShadowRangingResult.Builder setUnverifiedResponderLocation(ResponderLocation unverifiedResponderLocation)
-
setIs80211mcMeasurement
public ShadowRangingResult.Builder setIs80211mcMeasurement(boolean is80211mcMeasurement)
-
build
public RangingResult build()
-
-