T1 - type of first objectT2 - type of second objectpublic class Pair<T1,T2> extends Object implements Externalizable
| Constructor and Description |
|---|
Pair()
Deprecated.
Do not use directly. This is public for serialization purpose only.
|
Pair(T1 value1,
T2 value2)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
T1 |
getValue1() |
T2 |
getValue2() |
int |
hashCode() |
void |
readExternal(ObjectInput in) |
void |
setValue1(T1 value) |
void |
setValue2(T2 value) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
@Deprecated public Pair()
public T1 getValue1()
public T2 getValue2()
public void setValue1(T1 value)
public void setValue2(T2 value)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2018. All rights reserved.