- java.lang.Object
-
- org.github.gestalt.config.utils.Triple<A,B,C>
-
public final class Triple<A,B,C> 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 Triple.BgetSecond()Get the second of the Triple.CgetThird()Get the third of the Triple.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getFirst
public A getFirst()
Get the first of the Triple.- Returns:
- first of the Triple
-
getSecond
public B getSecond()
Get the second of the Triple.- Returns:
- second of the Triple
-
getThird
public C getThird()
Get the third of the Triple.- Returns:
- third of the Triple
-
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
-
-