- java.lang.Object
-
- org.github.gestalt.config.utils.Pair<A,B>
-
public final class Pair<A,B> extends java.lang.ObjectA simple class that holds a pair of values. There are many implementations of this but i didnt want to pull in another library only for a simple class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)AgetFirst()Get the first of the pair.BgetSecond()Get the second of the pair.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getFirst
public A getFirst()
Get the first of the pair.- Returns:
- first of the pair
-
getSecond
public B getSecond()
Get the second of the pair.- Returns:
- second of the pair
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-