|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.xtools.patterns.framework.util.MutableInteger
A mutable integer mainly used for the accumulation of state from local or anonymously defined inner classes into the surrounding context (to be accessed variables of this type must be defined final at point-of-use). A java.lang.Integer is immutable and therefore cannot be used for this purpose.
Constructor Summary | |
MutableInteger()
Constructs a mutable integer and intializes the starting value to zero. |
|
MutableInteger(int value)
Constructs a mutable integer and initializes it to the given value. |
Method Summary | |
int |
decrement()
The value of the mutable integer is decreased by one. |
boolean |
equals(Object object)
|
int |
getValue()
Returns the internally stored value of the mutable integer. |
int |
hashCode()
|
int |
increment()
The value of the mutable integer increased by one. |
void |
setValue(int value)
Sets the value of the mutable integer to the value given. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MutableInteger()
public MutableInteger(int value)
value
- the value to initialize this mutable integer toMethod Detail |
public int decrement()
public boolean equals(Object object)
public int getValue()
public int hashCode()
public int increment()
public void setValue(int value)
value
- the value to set the internally stored mutable integer state to
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.