Class Tuple2T2>

java.lang.Object
com.itextpdf.commons.datastructures.Tuple2T2>
Type Parameters:
T1 - type of the first element
T2 - type of the second element

public class Tuple2T2> extends Object
Simple tuple container that holds two elements.
  • Constructor Details

    • Tuple2

      public Tuple2 (T1 first, T2 second)
      Creates a new instance of Tuple2 with given elements.
      Parameters:
      first - the first element
      second - the second element
  • Method Details

    • getFirst

      public T1 getFirst()
      Get the first element.
      Returns:
      the first element
    • getSecond

      public T2 getSecond()
      Get the second element.
      Returns:
      the second element
    • toString

      public String toString()
      Overrides:
      toString in class Object