javatools.datatypes
Class Triple<F,S,T>
java.lang.Object
javatools.datatypes.Pair<F,S>
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 |
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 java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
third
public T third
- Holds the second component
Triple
public Triple(F first,
S second,
T third)
- Constructs a Pair
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>