Class PairwiseEquivalence<T>

  • All Implemented Interfaces:
    java.io.Serializable

    @GwtCompatible(serializable=true)
    final class PairwiseEquivalence<T>
    extends Equivalence<java.lang.Iterable<T>>
    implements java.io.Serializable
    • Constructor Detail

      • PairwiseEquivalence

        PairwiseEquivalence​(Equivalence<? super T> elementEquivalence)
    • Method Detail

      • doEquivalent

        protected boolean doEquivalent​(java.lang.Iterable<T> iterableA,
                                       java.lang.Iterable<T> iterableB)
        Description copied from class: Equivalence
        Returns true if a and b are considered equivalent.

        Called by Equivalence.equivalent(T, T). a and b are not the same object and are not nulls.

        Specified by:
        doEquivalent in class Equivalence<java.lang.Iterable<T>>
      • doHash

        protected int doHash​(java.lang.Iterable<T> iterable)
        Description copied from class: Equivalence
        Returns a hash code for non-null object t.

        Called by Equivalence.hash(T).

        Specified by:
        doHash in class Equivalence<java.lang.Iterable<T>>
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object