edu.indiana.util
Class MutableLong

java.lang.Object
  extended by edu.indiana.util.MutableLong
All Implemented Interfaces:
java.io.Serializable

public class MutableLong
extends java.lang.Object
implements java.io.Serializable

This class is like the Long class, except that it is mutable.

See Also:
Serialized Form

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

MutableLong

protected MutableLong()

MutableLong

public MutableLong(long value)
Creates new MutableLong

Method Detail

relativeChange

public void relativeChange(long delta)
Change the value associated with this object by a specified amount.


setValue

public void setValue(long value)

longValue

public long longValue()
Get the long associated with this MutableLong.


toString

public java.lang.String toString()
Get a String representation of this MutableLong.

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object