Package jline.util

Class Pair<T,U>

java.lang.Object
jline.util.Pair<T,U>
All Implemented Interfaces:
Serializable, Comparable<Pair<T,U>>

public class Pair<T,U> extends Object implements Comparable<Pair<T,U>>, Serializable
A pair of objects of different classes.
See Also:
  • Constructor Details

    • Pair

      public Pair(T left, U right)
    • Pair

      public Pair(Pair<T,U> other)
  • Method Details

    • getLeft

      public T getLeft()
    • setLeft

      public void setLeft(T left)
    • getRight

      public U getRight()
    • setRight

      public void setRight(U right)
    • compareTo

      public int compareTo(Pair<T,U> other)
      Specified by:
      compareTo in interface Comparable<T>