Package net.solarnetwork.domain
Class DeviceOperatingStatus.Builder
java.lang.Object
net.solarnetwork.domain.DeviceOperatingStatus.Builder
- Enclosing class:
- DeviceOperatingStatus<C extends Bitmaskable>
Builder to build
DeviceOperatingStatus.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new operating status instance based on this builder.withDeviceStatesCode(int mask) Configure a device states code value.withState(DeviceOperatingState state) Configure a state value.withStateCode(int code) Configure a code value.
-
Method Details
-
withState
Configure a state value.- Parameters:
state- the state to set- Returns:
- this builder
-
withStateCode
Configure a code value.- Parameters:
code- the code to set- Returns:
- this builder
-
withDeviceStatesCode
Configure a device states code value.- Parameters:
mask- the mask to set- Returns:
- this instance
-
build
Create a new operating status instance based on this builder.- Returns:
- the new instance
-