|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.lang.MutableInteger
public class MutableInteger
Represents an integer that can be modified.
It is useful if you want to pass an integer to a method and like to keep the result of how the method modifies the value.
| Field Summary | |
|---|---|
int |
value
The value of the mutable integer. |
| Constructor Summary | |
|---|---|
MutableInteger(int value)
|
|
| Method Summary | |
|---|---|
int |
compareTo(MutableInteger o)
Compares two MutableInteger objects numerically. |
int |
compareTo(java.lang.Object o)
Compares two MutableInteger objects numerically. |
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
int |
intValue()
Returns the value of this MutableInteger as an int. |
void |
setValue(int value)
Sets the value of this MutableInteger. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int value
| Constructor Detail |
|---|
public MutableInteger(int value)
| Method Detail |
|---|
public int intValue()
MutableInteger as an int.
public void setValue(int value)
MutableInteger.
public int compareTo(MutableInteger o)
MutableInteger objects numerically.
public int compareTo(java.lang.Object o)
MutableInteger objects numerically.
compareTo in interface java.lang.Comparablepublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||