kiwi.util
Class BooleanHolder
java.lang.Object
|
+--kiwi.util.BooleanHolder
- public class BooleanHolder
- extends Object
A mutable holder for a boolean
value.
- Version:
- 1.0 (11/98)
- Author:
- Mark Lindner, PING Software Group
Field Summary |
protected boolean |
value
The current value. |
Constructor Summary |
BooleanHolder()
Construct a new BooleanHolder with an initial value of
false. |
BooleanHolder(boolean value)
Construct a new BooleanHolder with a specified initial
value. |
Method Summary |
boolean |
getValue()
Get the BooleanHolder 's value. |
void |
setValue(boolean value)
Set the BooleanHolder 's value. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
value
protected boolean value
- The current value.
BooleanHolder
public BooleanHolder()
- Construct a new
BooleanHolder
with an initial value of
false.
BooleanHolder
public BooleanHolder(boolean value)
- Construct a new
BooleanHolder
with a specified initial
value.
- Parameters:
value
- The initial value.
setValue
public final void setValue(boolean value)
- Set the
BooleanHolder
's value.
- Parameters:
value
- The new value.
getValue
public final boolean getValue()
- Get the
BooleanHolder
's value.
- Returns:
- The current value.