at.tuwien.ifs.commons.util.collection
Class Triple<S,T,U>

java.lang.Object
  extended by at.tuwien.ifs.commons.util.collection.Pair<S,T>
      extended by 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

Field Summary
private  U third
           
 
Constructor Summary
Triple(S first, T second, U third)
           
 
Method Summary
 boolean equals(Object obj)
           
 U getThird()
           
 int hashCode()
           
 void setThird(U third)
           
 
Methods inherited from class at.tuwien.ifs.commons.util.collection.Pair
getFirst, getSecond, setFirst, setSecond
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

third

private U third
Constructor Detail

Triple

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

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)