org.jbudget.util
Class Triplet<T,U,V>
java.lang.Object
org.jbudget.util.Pair<T,U>
org.jbudget.util.Triplet<T,U,V>
public class Triplet<T,U,V>
- extends Pair<T,U>
A generic class that contains references to two objects of different
types.
- Author:
- petrov
|
Constructor Summary |
Triplet(T first,
U second,
V third)
Creates a new instance of Pair |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
thirdElement
private final V thirdElement
Triplet
public Triplet(T first,
U second,
V third)
- Creates a new instance of Pair
third
public V third()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class Pair<T,U>
toString
public java.lang.String toString()
- Overrides:
toString in class Pair<T,U>