public class Pair<A,B>
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares this pair to another pair
|
A |
getFirst()
Get the first parameter.
|
B |
getSecond()
Get the second parameter.
|
int |
hashCode()
Calculate a hashcode.
|
static <T,V> Pair<T,V> |
makePair(T first,
V second)
CT. creates a Pair for the given values.
|
java.lang.String |
toString()
Provide a text representation.
|
public static <T,V> Pair<T,V> makePair(T first, V second)
first
- the first parametersecond
- the second parameterpublic A getFirst()
public B getSecond()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the other pair.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object