T - The type of the first elementT2 - The type of the second elementpublic class Pair<T,T2> extends Object
| Constructor and Description |
|---|
Pair()
Standard constructor, which initializes the two values to null.
|
Pair(T a,
T2 b)
Specific constructor, which initializes the two values to the two values
passed as parameters.
|
public Pair()
public T getA()
public void setA(T a)
a - New pointer for the first objectpublic T2 getB()
public void setB(T2 b)
b - New pointer for the second objectCopyright © 2014. All Rights Reserved.