public class BitFlag
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
BitFlag()
Standard constructor
|
BitFlag(long flags)
Construct a flag with the specified setting
|
Modifier and Type | Method and Description |
---|---|
long |
getFlags()
Return all the flags
|
boolean |
isFlagSet(long flag)
Return the state of the specified flag
|
BitFlag |
or(BitFlag second)
Combining two bit flags using or logic.
|
void |
setFlag(long flag,
boolean state)
Set the specified flag on or off
|
void |
setFlags(long flag)
Set the flag to the specified values)
|
java.lang.String |
toString() |
public BitFlag()
public BitFlag(long flags)
public void setFlags(long flag)
public long getFlags()
public void setFlag(long flag, boolean state)
public boolean isFlagSet(long flag)
public BitFlag or(BitFlag second)
public java.lang.String toString()
toString
in class java.lang.Object