Modifier and Type | Method and Description |
---|---|
BitMask |
clearIn(BitMask mask)
Clear this flag in the given bit mask.
|
static SimpleBitFlag |
get(int index)
Get the simple bit flag for which the given index is set.
|
int |
getBitPosition()
Get the bit position associated with this flag.
|
boolean |
isSetIn(BitMask mask)
Is this flag set in the given mask?
|
BitMask |
setIn(BitMask mask)
Set this flag in the given bit mask.
|
BitMask |
toBitMask()
Convert this flag into a bit mask.
|
int |
toInt()
Convert this flog into an integer bit mask.
|
long |
toLong()
Convert this flog into a long bit mask.
|
@NotNull public BitMask clearIn(@NotNull BitMask mask)
public int toInt()
0
if this flag is outside of 32 bit range rangepublic long toLong()
0
if this flag is outside of 64 bit rangepublic int getBitPosition()
@NotNull public static SimpleBitFlag get(int index)
index
- bit flag index