java.lang.Object
java.lang.Number
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UNumber
org.eclipse.milo.opcua.stack.core.types.builtin.OptionSetUInteger<F>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
OptionSetUI16, OptionSetUI32, OptionSetUI64, OptionSetUI8

public abstract class OptionSetUInteger<F extends Enum<F> & OptionSetUInteger.BitIndex> extends UNumber
See Also:
  • Field Details

    • value

      protected final UNumber value
  • Method Details

    • getValue

      public UNumber getValue()
    • intValue

      public final int intValue()
      Specified by:
      intValue in class Number
    • longValue

      public final long longValue()
      Specified by:
      longValue in class Number
    • floatValue

      public final float floatValue()
      Specified by:
      floatValue in class Number
    • doubleValue

      public final double doubleValue()
      Specified by:
      doubleValue in class Number
    • get

      public final boolean get(F field)
      Returns the value of the bit at field's index.
      Parameters:
      field - the field
      Returns:
      true if the bit at field's index is set.
    • get

      public final boolean get(int bitIndex)
      Returns the value of the bit at bitIndex.
      Parameters:
      bitIndex - the bit index.
      Returns:
      true if the bit at bitIndex is set.
    • containsAll

      @SafeVarargs public final boolean containsAll(F... fields)
      Check if all bit fields are set.
      Parameters:
      fields - the fields to check.
      Returns:
      true if all bit fields are set.
    • containsAll

      public final boolean containsAll(Collection<F> fields)
      Check if all bit fields are set.
      Parameters:
      fields - the fields to check.
      Returns:
      true if all bit fields are set.
    • toSet

      public abstract Set<F> toSet()
      Get the Set of fields that have their bit set.
      Returns:
      the Set of fields that have their bit set.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object