com.sun.electric.database.geometry
Class GenMath.MutableLong

java.lang.Object
  extended by com.sun.electric.database.geometry.GenMath.MutableLong
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
GenMath

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

Class to define a Long-like object that can be modified.

See Also:
Serialized Form

Constructor Summary
GenMath.MutableLong(long value)
          Constructor creates a MutableLong object with an initial value.
 
Method Summary
 void increment()
          Method to increment this MutableLong by 1.
 long longValue()
          Method to return the value of this MutableLong.
 void setValue(long value)
          Method to change the value of this MutableLong.
 java.lang.String toString()
          Returns a printable version of this MutableLong.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenMath.MutableLong

public GenMath.MutableLong(long value)
Constructor creates a MutableLong object with an initial value.

Parameters:
value - the initial value.
Method Detail

setValue

public void setValue(long value)
Method to change the value of this MutableLong.

Parameters:
value - the new value.

increment

public void increment()
Method to increment this MutableLong by 1.


longValue

public long longValue()
Method to return the value of this MutableLong.

Returns:
the current value of this MutableLong.

toString

public java.lang.String toString()
Returns a printable version of this MutableLong.

Overrides:
toString in class java.lang.Object
Returns:
a printable version of this MutableLong.