Class Pair<N,V>

java.lang.Object
com.sinch.sdk.core.utils.Pair<N,V>
Type Parameters:
N - Type of the left value
V - Type of the right value

public class Pair<N,V> extends Object
Utility class to manage a pair of information (tuple)
  • Constructor Details

    • Pair

      public Pair(N left, V right)
      Create a new pair
      Parameters:
      left - The left (key) value for this pair
      right - The right (value) value for this pair
  • Method Details

    • getLeft

      public N getLeft()
      Get the left value of this Pair
      Returns:
      Left value
    • getRight

      public V getRight()
      Get the right value of this Pair
      Returns:
      Right value
    • toString

      public String toString()
      Overrides:
      toString in class Object