Interface EqualityComparator<T>

  • All Superinterfaces:
    java.io.Serializable
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface EqualityComparator<T>
    extends java.io.Serializable
    • Field Detail

      • EQUALS

        @Deprecated
        static final EqualityComparator<java.lang.Object> EQUALS
        Deprecated.
    • Method Detail

      • fromComparator

        static <T> EqualityComparator<T> fromComparator​(java.util.Comparator<T> comparator)
      • equals

        boolean equals​(T o1,
                       T o2)
      • toComparator

        @Deprecated
        default java.util.Comparator<T> toComparator()
        Deprecated.