T1
- type of the first object in the pairT2
- type of the second object in the pairpublic class Pair<T1,T2> extends Object
Constructor and Description |
---|
Pair(T1 newFirst,
T2 newSecond)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
T1 |
getFirst()
Gets the first object in the pair.
|
T2 |
getSecond()
Gets the second object in the pair.
|
int |
hashCode() |
void |
setFirst(T1 newFirst)
Sets the first object in the pair.
|
void |
setSecond(T2 newSecond)
Sets the second object in the pair.
|
String |
toString() |
public T1 getFirst()
public void setFirst(T1 newFirst)
newFirst
- first object in the pairpublic T2 getSecond()
public void setSecond(T2 newSecond)
newSecond
- second object in the pairCopyright © 2018 JBoss by Red Hat. All rights reserved.