edu.cmu.cs.crystal.util
Class Box<T>
java.lang.Object
edu.cmu.cs.crystal.util.Box<T>
public class Box<T>
- extends Object
Holds a boxed value. A boxed value is one that can be changed and
read.
- Author:
- Nels E. Beckman
Constructor Summary |
Box(T t)
|
Box
public Box(T t)
box
public static <T> Box<T> box(T t)
getValue
public T getValue()
setValue
public void setValue(T t)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object