public class Pair<A,B>
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private A |
first |
private B |
second |
private static long |
serialVersionUID |
Modifier and Type | Method and Description |
---|---|
Pair<A,B> |
clone() |
boolean |
equals(java.lang.Object obj) |
A |
getFirst() |
B |
getSecond() |
int |
hashCode() |
static <A,B> Pair<A,B> |
newInstance(A first,
B second) |
java.lang.String |
toString() |
private static final long serialVersionUID
private final A first
private final B second
public static <A,B> Pair<A,B> newInstance(A first, B second)
public A getFirst()
public B getSecond()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object