Package com._1c.g5.v8.dt.common
Class Pair<O1,O2>
java.lang.Object
com._1c.g5.v8.dt.common.Pair<O1,O2>
A pair of values.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
first
The first element in the pair. -
second
The second element in the pair.
-
-
Constructor Details
-
Pair
Construct a Pair.- Parameters:
a
- The first element in the pair.b
- The second element in the pair.
-
-
Method Details
-
newPair
A factory method to create instance ofPair
.- Parameters:
o1
- - the first element in the pairo2
- - the second element in the pair- Returns:
- a instance of this class
-
getFirst
Gets first element of this pair.- Returns:
- First element of the pair.
-
getSecond
Gets second element of this pair.- Returns:
- Second element of the pair.
-
hashCode
public int hashCode() -
equals
-
toString
-