T
- Type of compared entity@FunctionalInterface
public interface UnaryEquator<T>
extends java.util.function.BiPredicate<T,T>
Modifier and Type | Method and Description |
---|---|
default UnaryEquator<T> |
and(UnaryEquator<? super T> other)
Returns a composed equator that represents a short-circuiting logical AND of this equator and another.
|
static <T> UnaryEquator<T> |
comparing(java.util.Comparator<? super T> c)
|
static <T> UnaryEquator<T> |
defaultEquality() |
static <T> UnaryEquator<T> |
falsum() |
static <T> boolean |
isSameReference(T o1,
T o2) |
default UnaryEquator<T> |
negate() |
default UnaryEquator<T> |
or(UnaryEquator<? super T> other)
Returns a composed equator that represents a short-circuiting logical AND of this equator and another.
|
static <T> UnaryEquator<T> |
referenceEquality() |
static <T> UnaryEquator<T> |
verum() |
default UnaryEquator<T> and(UnaryEquator<? super T> other)
false
, then the other
equator is not
evaluated.other
- The other (never null
equatordefault UnaryEquator<T> or(UnaryEquator<? super T> other)
true
, then the other
equator is not
evaluated.other
- The other (never null
equatordefault UnaryEquator<T> negate()
static <T> boolean isSameReference(T o1, T o2)
static <T> UnaryEquator<T> defaultEquality()
T
- Type of entityObjects.equals(Object, Object)
static <T> UnaryEquator<T> referenceEquality()
T
- Type of entityisSameReference(Object, Object)
static <T> UnaryEquator<T> comparing(java.util.Comparator<? super T> c)
T
- Type of entityc
- The (never null
) comparatorstatic <T> UnaryEquator<T> verum()
T
- Type of evaluated entityUnaryEquator
that returns always true
static <T> UnaryEquator<T> falsum()
T
- Type of evaluated entityUnaryEquator
that returns always false