First - the first element of the Pair.Second - the second element of the Pair.public class Pair<First,Second> extends Object
| Constructor and Description |
|---|
Pair(First first,
Second second)
Constructs and initializes a Pair specified by the two input elements.
|
public First getFirst()
public Second getSecond()
public void setFirst(First first)
first - the value to be set.public void setSecond(Second second)
second - the value to be set.Copyright © 2014. All rights reserved.