public interface BitwiseEnum extends Flag
enum
implementors to comply to common bitwise operations.Modifier and Type | Method and Description |
---|---|
java.lang.String |
name()
Same as
Enum.name() . |
int |
or(BitwiseEnum state)
Does a bitwise OR for this state and the given state.
|
int |
or(int bits)
Does a bitwise OR for this state and the given bits.
|
boolean |
overlaps(int mask)
Convenience method for checking if
( . |
int or(BitwiseEnum state)
int or(int bits)
boolean overlaps(int mask)
(Flag.bit()
& mask) != 0x0
.java.lang.String name()
Enum.name()
.