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
public class Tuple2<T1,T2> extends java.lang.ObjectSimple tuple container that holds two elements.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)T1getFirst()Get the first element.T2getSecond()Get the second element.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getFirst
public T1 getFirst()
Get the first element.- Returns:
- the first element
-
getSecond
public T2 getSecond()
Get the second element.- Returns:
- the second element
-
equals
public boolean equals(java.lang.Object obj)
Note, that in case current class is overridden, equals should also be overridden.
- Overrides:
equalsin classjava.lang.Object- Parameters:
obj-- Returns:
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-