public class Pair<First,Second>
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private First |
first |
private Second |
second |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
Pair() |
Pair(First first,
Second second) |
| Modifier and Type | Method and Description |
|---|---|
static <F,S> Pair<F,S> |
create(F first,
S second)
Create a new pair with the given values
|
boolean |
equals(java.lang.Object obj) |
First |
getFirst() |
Second |
getSecond() |
int |
hashCode() |
void |
setFirst(First first) |
void |
setSecond(Second second) |
java.lang.String |
toString() |
private static final long serialVersionUID
private First first
private Second second
public static <F,S> Pair<F,S> create(F first, S second)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic First getFirst()
public Second getSecond()
public int hashCode()
hashCode in class java.lang.Objectpublic void setFirst(First first)
public void setSecond(Second second)
public java.lang.String toString()
toString in class java.lang.Object