Class Tuple2<T1,T2>
java.lang.Object
com.itextpdf.commons.datastructures.Tuple2<T1,T2>
- Type Parameters:
T1- type of the first elementT2- type of the second element
Simple tuple container that holds two elements.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
first
-
second
-
-
Constructor Details
-
Tuple2
Creates a new instance ofTuple2with given elements.- Parameters:
first- the first elementsecond- 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
-