Class Pair<K,V>

java.lang.Object
com.itextpdf.commons.utils.Pair<K,V>
Type Parameters:
K - key parameter type.
V - value parameter type.

@Deprecated public class Pair<K,V> extends Object
Deprecated.
in favour of Tuple2
Class which represents a pair of key and value.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final K
    Deprecated.
     
    private final V
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Pair(K key, V value)
    Deprecated.
    Creates key-value pair.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Gets key parameter.
    Deprecated.
    Gets value parameter.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • key

      private final K key
      Deprecated.
    • value

      private final V value
      Deprecated.
  • Constructor Details

    • Pair

      public Pair(K key, V value)
      Deprecated.
      Creates key-value pair.
      Parameters:
      key - key parameter
      value - value parameter
  • Method Details

    • getKey

      public K getKey()
      Deprecated.
      Gets key parameter.
      Returns:
      key parameter.
    • getValue

      public V getValue()
      Deprecated.
      Gets value parameter.
      Returns:
      value parameter.