bibliothek.util.container
Class Single<A>

java.lang.Object
  extended by bibliothek.util.container.Single<A>
Type Parameters:
A - type of the first field
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
Tuple

public class Single<A>
extends Object
implements Cloneable

An object containing one generic fields.

Author:
Benjamin Sigg

Constructor Summary
Single()
           
Single(A a)
           
 
Method Summary
 Single<A> clone()
           
 boolean equals(Object o)
           
 A getA()
           
 int hashCode()
           
 void setA(A a)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Single

public Single()

Single

public Single(A a)
Method Detail

setA

public void setA(A a)

getA

public A getA()

clone

public Single<A> clone()
Overrides:
clone in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object