com.threerings.expr
Class MutableInteger

java.lang.Object
  extended by com.threerings.expr.MutableInteger

public class MutableInteger
extends Object

A mutable equivalent to Integer.


Field Summary
 int value
          The value of this variable.
 
Constructor Summary
MutableInteger()
          Creates a mutable integer with a value of zero.
MutableInteger(int value)
          Creates a mutable integer with the supplied value.
 
Method Summary
 boolean equals(Object other)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public int value
The value of this variable.

Constructor Detail

MutableInteger

public MutableInteger(int value)
Creates a mutable integer with the supplied value.


MutableInteger

public MutableInteger()
Creates a mutable integer with a value of zero.

Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.