Class Pair<A,​B>

    • Field Detail

      • first

        public final A first
      • second

        public final B second
    • Constructor Detail

      • Pair

        public Pair​(A first,
                    B second)
    • Method Detail

      • 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()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object