Class Pair<A,​B>

  • Type Parameters:
    A - first item of pair
    B - second item of pair

    public final class Pair<A,​B>
    extends Object
    A simple Pair class
    • Field Detail

      • first

        public final A first
      • second

        public final B second
    • Method Detail

      • getFirst

        @Nullable
        public A getFirst()
      • getSecond

        @Nullable
        public B getSecond()
      • compareTo

        public int compareTo​(Pair obj)
      • hashCode

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

        @NotNull
        public static <A,​B> @NotNull Pair<A,​B> make​(@Nullable
                                                                A first,
                                                                @Nullable
                                                                B second)