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