Interface Eq<T>

Type Parameters:
T - type to verify
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 Eq<T>

This interface represents a function that verify if two instances of a type are equivalent.

Eq instances can be composed using and() method

  • Method Details

    • eqv

      boolean eqv(T a, T b)
    • and

      default Eq<T> and(Eq<T> other)
    • any

      static <T> Eq<T> any()
    • always

      static <T> Eq<T> always()
    • throwable

      static Eq<Throwable> throwable()
    • comparing

      static <T, V> Eq<T> comparing(Function1<? super T,? extends V> getter)
    • comparingArray

      static <T, V> Eq<T> comparingArray(Function1<? super T,? extends V[]> getter)