Interface Pair<A,​B>

  • Type Parameters:
    A -
    B -
    All Known Subinterfaces:
    MutablePair<A,​B>

    public interface Pair<A,​B>
    An immutable key-value tuple. Two instances are equal if both values in the first instance are equal to their counterpart in the other instance.
    • Method Detail

      • of

        static <A,​B> Pair<A,​B> of​(A key,
                                              B value)
      • getKey

        A getKey()
      • getValue

        B getValue()