edu.rice.cs.javalanglevels
Class Triple<T,U,V>

java.lang.Object
  extended by edu.rice.cs.javalanglevels.Triple<T,U,V>

public class Triple<T,U,V>
extends Object

Utility class, allows us to store three things as a single object.


Constructor Summary
Triple(T first, U second, V third)
           
 
Method Summary
 boolean equals(Object o)
           
 T getFirst()
           
 U getSecond()
           
 V getThird()
           
 int hashCode()
          Define a hash code based on the first and second's hash code
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Triple

public Triple(T first,
              U second,
              V third)
Method Detail

getFirst

public T getFirst()

getSecond

public U getSecond()

getThird

public V getThird()

equals

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

hashCode

public int hashCode()
Define a hash code based on the first and second's hash code

Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object