Package uk.co.rafilevy.utils.Pair
Class Trip<A>
- java.lang.Object
-
- uk.co.rafilevy.utils.Pair.Trip<A>
-
- Type Parameters:
A
- the type of the stored items
public class Trip<A> extends java.lang.Object
An ordered triple storing three items of typeA
-
-
Method Detail
-
getFirst
public A getFirst()
Gets the first item in the triple- Returns:
- the first item in the triple
-
getSecond
public A getSecond()
Gets the second item in the triple- Returns:
- the second item in the triple
-
getThird
public A getThird()
Gets the third item in the triple- Returns:
- the third item in the triple
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-