|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.indiana.util.MutableInteger
public class MutableInteger
This class is like the Integer class, except that it is mutable.
Constructor Summary | |
---|---|
protected |
MutableInteger()
|
|
MutableInteger(int value)
Creates new MutableInteger |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
|
int |
hashCode()
|
int |
intValue()
Get the int associated with this MutableInteger. |
void |
relativeChange(int delta)
Change the value associated with this object by a specified amount. |
java.lang.String |
toString()
Get a String representation of this MutableInteger. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected MutableInteger()
public MutableInteger(int value)
Method Detail |
---|
public void relativeChange(int delta)
public int intValue()
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 other)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |