fulmine.util.reference
Class Value<T>

java.lang.Object
  extended by fulmine.util.reference.Value<T>

public final class Value<T>
extends Object

Provides a reference to a value. The reference is passed around and can 'point' to a new value via the set(Object) method.

Author:
Ramon Servadei

Constructor Summary
Value()
           
Value(T value)
           
 
Method Summary
 boolean equals(Object obj)
           
 T get()
           
 int hashCode()
           
 T set(T value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Value

public Value()

Value

public Value(T value)
Method Detail

set

public T set(T value)

get

public T get()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2007-2009. All Rights Reserved.