Class Pair<A,B>

java.lang.Object
com.intellij.openapi.util.Pair<A,B>
Direct Known Subclasses:
Couple, Pair.NonNull

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

      @NotNull public static <A, B> Pair<A,B> create(A first, B second)
    • createNonNull

      @NotNull public static <A, B> Pair.NonNull<A,B> createNonNull(@NotNull A first, @NotNull B second)
    • pair

      @NotNull public static <A, B> Pair<A,B> pair(A first, B second)
    • createFunction

      @NotNull public static <A, B> Function<A,Pair<A,B>> createFunction(B value)
    • getFirst

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

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

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

      public final A getFirst()
    • getSecond

      public final B getSecond()
    • equals

      public final 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