bibliothek.util.container
Class Tuple<A,B>

java.lang.Object
  extended by bibliothek.util.container.Single<A>
      extended by bibliothek.util.container.Tuple<A,B>
Direct Known Subclasses:
Triple

public class Tuple<A,B>
extends Single<A>

Author:
Benjamin Sigg

Field Summary
private  B b
           
 
Constructor Summary
Tuple()
           
Tuple(A a, B b)
           
 
Method Summary
 Tuple<A,B> clone()
           
 boolean equals(java.lang.Object o)
           
 B getB()
           
 int hashCode()
           
 void setB(B b)
           
 java.lang.String toString()
           
 
Methods inherited from class bibliothek.util.container.Single
getA, setA
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

b

private B b
Constructor Detail

Tuple

public Tuple()

Tuple

public Tuple(A a,
             B b)
Method Detail

setB

public void setB(B b)

getB

public B getB()

clone

public Tuple<A,B> clone()
Overrides:
clone in class Single<A>

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class Single<A>

hashCode

public int hashCode()
Overrides:
hashCode in class Single<A>

toString

public java.lang.String toString()
Overrides:
toString in class Single<A>