tachyon
Class Pair<First,Second>
java.lang.Object
tachyon.Pair<First,Second>
- Type Parameters:
First
- the first element of the Pair.Second
- the second element of the Pair.
public class Pair<First,Second>
- extends Object
A pair representation defined by two elements (of type First and type Second).
Constructor Summary |
Pair(First first,
Second second)
Constructs and initializes a Pair specified by the two input elements. |
Pair
public Pair(First first,
Second second)
- Constructs and initializes a Pair specified by the two input elements.
- Parameters:
first
- the first element of the pair (of type First)second
- the second element of the pair (of type Second)
getFirst
public First getFirst()
- Returns:
- the first element of the pair.
getSecond
public Second getSecond()
- Returns:
- the second element of the pair.
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
Copyright © 2013. All Rights Reserved.