|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.Comparable
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public 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 |