at.tuwien.ifs.commons.util.collection
Class Triple<S,T,U>
java.lang.Object
at.tuwien.ifs.commons.util.collection.Pair<S,T>
at.tuwien.ifs.commons.util.collection.Triple<S,T,U>
- Direct Known Subclasses:
- Quadruple
public class Triple<S,T,U>
- extends Pair<S,T>
A class that holds three typed objects together, similar to the Pair
.
- Version:
- $Id: Triple.java 4263 2012-04-02 11:45:05Z mayer $
- Author:
- Rudolf Mayer
Constructor Summary |
Triple(S first,
T second,
U third)
|
third
private U third
Triple
public Triple(S first,
T second,
U third)
getThird
public U getThird()
- Returns:
- Returns the third element.
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Pair<S,T>
hashCode
public int hashCode()
- Overrides:
hashCode
in class Pair<S,T>
setThird
public void setThird(U third)