Class OptionSetUInteger<F extends Enum<F> & OptionSetUInteger.BitIndex>
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceIdentifiers a type that has a corresponding bit index. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal booleancontainsAll(F... fields) Check if all bitfieldsare set.final booleancontainsAll(Collection<F> fields) Check if all bitfieldsare set.final doublebooleanfinal floatfinal booleanget(int bitIndex) Returns the value of the bit atbitIndex.final booleanReturns the value of the bit atfield's index.getValue()inthashCode()final intintValue()final longtoSet()Get theSetof fields that have their bit set.Methods inherited from class org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UNumber
toBigIntegerMethods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
value
-
-
Method Details
-
getValue
-
intValue
public final int intValue() -
longValue
public final long longValue() -
floatValue
public final float floatValue()- Specified by:
floatValuein classNumber
-
doubleValue
public final double doubleValue()- Specified by:
doubleValuein classNumber
-
get
Returns the value of the bit atfield's index.- Parameters:
field- the field- Returns:
trueif the bit atfield's index is set.
-
get
public final boolean get(int bitIndex) Returns the value of the bit atbitIndex.- Parameters:
bitIndex- the bit index.- Returns:
trueif the bit atbitIndexis set.
-
containsAll
Check if all bitfieldsare set.- Parameters:
fields- the fields to check.- Returns:
trueif all bitfieldsare set.
-
containsAll
Check if all bitfieldsare set.- Parameters:
fields- the fields to check.- Returns:
trueif all bitfieldsare set.
-
toSet
Get theSetof fields that have their bit set.- Returns:
- the
Setof fields that have their bit set.
-
equals
-
hashCode
public int hashCode()
-