ecologylab.generic
Class IntSlot

java.lang.Object
  extended by ecologylab.generic.IntSlot

public class IntSlot
extends java.lang.Object

Reference version of an int type. Re-writable, unlike java.lang.Integer.

Object wrapper for int primitive values. Useful for storing in HashMaps, and anywhere else that a reference type is needed.


Field Summary
 int value
           
 
Constructor Summary
IntSlot()
           
IntSlot(int b)
           
 
Method Summary
 int hashCode()
          Returns a hashcode for this Integer.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public int value
Constructor Detail

IntSlot

public IntSlot(int b)

IntSlot

public IntSlot()
Method Detail

hashCode

public int hashCode()
Returns a hashcode for this Integer.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this object.
Since:
JDK1.0

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object