Class Internals.PairBox<A,​B>

  • Type Parameters:
    A - type of the first element
    B - type of the second element
    All Implemented Interfaces:
    java.util.function.Consumer<A>
    Enclosing interface:
    Internals

    public static final class Internals.PairBox<A,​B>
    extends Internals.Box<A>
    A box of two elements with special equality semantics: only the second element matters for equality.
    • Field Detail

      • b

        B b
    • Constructor Detail

      • PairBox

        PairBox​(A a,
                B b)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object