Class Tuple2T2>
java.lang.Object
com.itextpdf.commons.datastructures.Tuple2T2>
- Type Parameters:
-
T1
- type of the first element -
T2
- type of the second element
Simple tuple container that holds two elements.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Tuple2
Creates a new instance ofTuple2
with given elements.- Parameters:
-
first
- the first element -
second
- the second element
-
-
Method Details
-
getFirst
Get the first element.- Returns:
- the first element
-
getSecond
Get the second element.- Returns:
- the second element
-
equals
Note, that in case current class is overridden, equals should also be overridden.
-
hashCode
public int hashCode() -
toString
-