Class ConfBit32

All Implemented Interfaces:
Serializable, Cloneable, Comparable<ConfBits>

public class ConfBit32 extends ConfBits implements Cloneable, Serializable
DATA_CONTAINER - Corresponds to the YANG bit32 type. A small bitset with no bit with position higher than 31
See Also:
  • Constructor Details

    • ConfBit32

      public ConfBit32(long l)
      Construct a Confbit32 value from a long representing the bits
      Parameters:
      l -
    • ConfBit32

      public ConfBit32(String str) throws ConfException
      String constructor for ConfBit32. The string representation is expected to be 'bin<0x...>' with the hexadecimal representation of the bitset in little endian order.
      Parameters:
      str -
      Throws:
      ConfException
  • Method Details

    • intValue

      public int intValue()
      Return the bitset as a int value.
      Returns:
      int value
    • longValue

      public long longValue()
      Return the bitset as a long value.
      Returns:
      long value
    • equals

      public boolean equals(Object o)
      Equals method for ConfBit32
      Overrides:
      equals in class ConfBits
      Parameters:
      o - The object to compare to.
      Returns:
      true if the objects are identical.
    • hashCode

      public int hashCode()
      hashCode method for ConfBit32
      Overrides:
      hashCode in class ConfBits