Pairpublic class Pair extends Object Simple data structure for grouping two values together. Required by some API calls. |
Fields Summary |
---|
public N | firstThe first element in the pair. | public V | secondThe second element in the pair. |
Constructors Summary |
---|
public Pair(N name, V value)Constructor.
this.first = name;
this.second = value;
|
Methods Summary |
---|
public N | getFirst()
return first;
| public V | getSecond()
return second;
| public void | setFirst(N first)Set the first element in the pair
this.first = first;
| public void | setSecond(V second)Set the second element in the pair
this.second = second;
|
|