Class GenericDeviceOperatingState

java.lang.Object
net.solarnetwork.domain.GenericDeviceOperatingState
All Implemented Interfaces:
Bitmaskable

public class GenericDeviceOperatingState extends Object implements Bitmaskable
A generic device operating state used when a vendor-specific implementation is not known.
Since:
1.50
Version:
1.0
Author:
matt
  • Constructor Details

    • GenericDeviceOperatingState

      public GenericDeviceOperatingState(int code)
      Constructor.
      Parameters:
      code - the code
  • Method Details

    • bitmaskBitOffset

      public int bitmaskBitOffset()
      Description copied from interface: Bitmaskable
      Get the bit offset.
      Specified by:
      bitmaskBitOffset in interface Bitmaskable
      Returns:
      offset, starting from 0 for the right-most bit
    • getCode

      public int getCode()
      Get the code value.
      Returns:
      the code
    • values

      public static GenericDeviceOperatingState[] values()
      Get an array of all possible values.
      Returns:
      array of values
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object