|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javautils.holders.AbstractHolder | +--javautils.holders.BooleanHolder
A simple mutable holder for boolean
-values. This class
is designed to be used in situations in which you need to store
booleans in collections or when you want to be able to mutate an
boolean from an anonymous inner class, for example.
Field Summary | |
boolean |
value
The mutable value of this holder. |
Constructor Summary | |
BooleanHolder()
Default constructor for convenience. |
|
BooleanHolder(boolean value)
A new holder with specified initial value. |
Method Summary | |
protected java.lang.Object |
get()
Overrides the base method for efficiency. |
Methods inherited from class javautils.holders.AbstractHolder |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public boolean value
The mutable value of this holder.
Constructor Detail |
public BooleanHolder()
Default constructor for convenience.
public BooleanHolder(boolean value)
A new holder with specified initial value.
Method Detail |
protected java.lang.Object get()
Overrides the base method for efficiency.
get
in class AbstractHolder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |