org.jbudget.util
Class Triplet<T,U,V>

java.lang.Object
  extended by org.jbudget.util.Pair<T,U>
      extended by 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

Field Summary
private  V thirdElement
           
 
Constructor Summary
Triplet(T first, U second, V third)
          Creates a new instance of Pair
 
Method Summary
 boolean equals(java.lang.Object o)
           
 V third()
           
 java.lang.String toString()
           
 
Methods inherited from class org.jbudget.util.Pair
first, hashCode, second
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

thirdElement

private final V thirdElement
Constructor Detail

Triplet

public Triplet(T first,
               U second,
               V third)
Creates a new instance of Pair

Method Detail

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>