T1 - the first element of the Pair.T2 - the second element of the Pair.public final class Pair<T1,T2> extends Object
| Constructor and Description |
|---|
Pair(T1 first,
T2 second)
Constructs and initializes a Pair specified by the two input elements.
|
public T1 getFirst()
public T2 getSecond()
public void setFirst(T1 first)
first - the value to be set.public void setSecond(T2 second)
second - the value to be set.Copyright © 2015. All Rights Reserved.