|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fishbolt.common.flags.FlagsContainer
public class FlagsContainer
This interface uses the int type as
a bit field. It provides an empty constructor (without
arguments) and a constructor with the known
flags state that should be set using the bitwise "AND".
| Field Summary | |
|---|---|
protected int |
flags
stores flags state. |
| Constructor Summary | |
|---|---|
protected |
FlagsContainer()
Creates an instance with empty flags. |
|
FlagsContainer(int flags)
Creates an instance with the specified flags. |
| Method Summary | |
|---|---|
boolean |
contains(int... flags)
Checks if at least one of the defined parameters conforms to the flags state. |
int |
getFlags()
returns the current flags state |
protected int |
remove(int... flags)
Removes the defined flags. |
protected int |
setup(int... flags)
Sets the defined flags. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int flags
| Constructor Detail |
|---|
protected FlagsContainer()
public FlagsContainer(int flags)
flags - initial flags| Method Detail |
|---|
public int getFlags()
public boolean contains(int... flags)
flags - to check if at least one of the defined.
true when at least one of the defined, otherwise falseprotected int setup(int... flags)
flags - flags to be setup
protected int remove(int... flags)
flags - flags to be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||