edu.rice.cs.javalanglevels
Class Triple<T,U,V>
java.lang.Object
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)
|
Triple
public Triple(T first,
U second,
V third)
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