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.Object
An 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:
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
-
-