bibliothek.util.container
Class Tuple<A,B>
java.lang.Object
bibliothek.util.container.Single<A>
bibliothek.util.container.Tuple<A,B>
- Type Parameters:
A
- type of the first fieldB
- type of the second field
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- Triple
public class Tuple<A,B>
- extends Single<A>
An object containing two generic fields.
- Author:
- Benjamin Sigg
Methods inherited from class bibliothek.util.container.Single |
getA, setA |
Tuple
public Tuple()
Tuple
public Tuple(A a,
B b)
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(Object o)
- Overrides:
equals
in class Single<A>
hashCode
public int hashCode()
- Overrides:
hashCode
in class Single<A>
toString
public String toString()
- Overrides:
toString
in class Single<A>