java.lang.Object
org.springframework.shell.test.jediterm.terminal.util.Pair<A,B>

public class Pair<A,B> extends Object
  • Field Details

    • first

      public final A first
    • second

      public final B second
  • Constructor Details

    • Pair

      public Pair(A first, B second)
  • Method Details

    • create

      public static <A, B> Pair<A,B> create(A first, B second)
    • getFirst

      public static <T> T getFirst(Pair<T,?> pair)
    • getSecond

      public static <T> T getSecond(Pair<?,T> pair)
    • empty

      public static <A, B> Pair<A,B> empty()
    • getFirst

      public final A getFirst()
    • getSecond

      public final B getSecond()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object