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.Object
Simple tuple container that holds two elements.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
T1
getFirst()
Get the first element.T2
getSecond()
Get the second element.int
hashCode()
java.lang.String
toString()
-
-
-
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:
equals
in classjava.lang.Object
- Parameters:
obj
-- Returns:
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-