javatools.datatypes
Class Triple<F,S,T>

java.lang.Object
  extended by javatools.datatypes.Pair<F,S>
      extended by javatools.datatypes.Triple<F,S,T>
All Implemented Interfaces:
java.lang.Comparable<Pair<F,S>>

public class Triple<F,S,T>
extends Pair<F,S>

Represents a triple


Field Summary
 T third
          Holds the second component
 
Fields inherited from class javatools.datatypes.Pair
first, second
 
Constructor Summary
Triple(F first, S second, T third)
          Constructs a Pair
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 T third()
          Returns the second
 java.lang.String toString()
          Returns "first/second"
 
Methods inherited from class javatools.datatypes.Pair
compareTo, first, second, setFirst, setSecond
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

third

public T third
Holds the second component

Constructor Detail

Triple

public Triple(F first,
              S second,
              T third)
Constructs a Pair

Method Detail

third

public T third()
Returns the second


hashCode

public int hashCode()
Overrides:
hashCode in class Pair<F,S>

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class Pair<F,S>

toString

public java.lang.String toString()
Returns "first/second"

Overrides:
toString in class Pair<F,S>