Package org.refcodes.data
Enum BitMask
- java.lang.Object
-
- java.lang.Enum<BitMask>
-
- org.refcodes.data.BitMask
-
- All Implemented Interfaces:
org.refcodes.mixin.ValueAccessor<java.lang.Long>
public enum BitMask extends java.lang.Enum<BitMask> implements org.refcodes.mixin.ValueAccessor<java.lang.Long>
The Enum BitMask.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ValueAccessor
org.refcodes.mixin.ValueAccessor.ValueBuilder<V extends java.lang.Object,B extends org.refcodes.mixin.ValueAccessor.ValueBuilder<V,B>>, org.refcodes.mixin.ValueAccessor.ValueMutator<V extends java.lang.Object>, org.refcodes.mixin.ValueAccessor.ValueProperty<V extends java.lang.Object>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
getValue()
static BitMask
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BitMask[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MASK_8
public static final BitMask MASK_8
-
MASK_16
public static final BitMask MASK_16
-
MASK_24
public static final BitMask MASK_24
-
MASK_32
public static final BitMask MASK_32
-
MASK_40
public static final BitMask MASK_40
-
MASK_48
public static final BitMask MASK_48
-
MASK_56
public static final BitMask MASK_56
-
MASK_64
public static final BitMask MASK_64
-
-
Method Detail
-
values
public static BitMask[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BitMask c : BitMask.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BitMask valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public java.lang.Long getValue()
- Specified by:
getValue
in interfaceorg.refcodes.mixin.ValueAccessor<java.lang.Long>
-
-