Package net.solarnetwork.domain
Class GenericDeviceOperatingState
java.lang.Object
net.solarnetwork.domain.GenericDeviceOperatingState
- All Implemented Interfaces:
Bitmaskable
A generic device operating state used when a vendor-specific implementation
is not known.
- Since:
- 1.50
- Version:
- 1.0
- Author:
- matt
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.solarnetwork.domain.Bitmaskable
Bitmaskable.BitmaskableTypeSort -
Field Summary
Fields inherited from interface net.solarnetwork.domain.Bitmaskable
SORT_BY_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the bit offset.booleanintgetCode()Get the code value.inthashCode()static GenericDeviceOperatingState[]values()Get an array of all possible values.
-
Constructor Details
-
GenericDeviceOperatingState
public GenericDeviceOperatingState(int code) Constructor.- Parameters:
code- the code
-
-
Method Details
-
bitmaskBitOffset
public int bitmaskBitOffset()Description copied from interface:BitmaskableGet the bit offset.- Specified by:
bitmaskBitOffsetin interfaceBitmaskable- Returns:
- offset, starting from 0 for the right-most bit
-
getCode
public int getCode()Get the code value.- Returns:
- the code
-
values
Get an array of all possible values.- Returns:
- array of values
-
hashCode
public int hashCode() -
equals
-