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