Package uk.co.rafilevy.utils.Pair
Class Pair<A>
- java.lang.Object
-
- uk.co.rafilevy.utils.Pair.Pair<A>
-
- Type Parameters:
A- the type of the items being stored
public class Pair<A> extends java.lang.ObjectAn ordered pair storing two items of typeA
-
-
Method Detail
-
getFirst
public A getFirst()
Gets the first item from the pair- Returns:
- the first item from the pair
-
getSecond
public A getSecond()
Gets the second item from the pair- Returns:
- the second item from the pair
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-