public class AndChecker<T> extends java.lang.Object implements Predicate1<T>
true
when all wrapped
checkers return true
.
It is doing shortcut checking similar to the Java
&&
operator.Check.and(java.util.function.Predicate, java.util.function.Predicate)
ALWAYS_FALSE, ALWAYS_TRUE
Constructor and Description |
---|
AndChecker(java.util.Collection<? extends java.util.function.Predicate<T>> checkers)
Constructor.
|
AndChecker(java.util.function.Predicate<? super T> checker1,
java.util.function.Predicate<? super T> checker2)
Constructor.
|
AndChecker(java.util.function.Predicate<? super T> checker1,
java.util.function.Predicate<? super T> checker2,
java.util.function.Predicate<? super T>... more)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
test(T value)
Check a value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adapted, alwaysFalse, alwaysTrue, and_, and, and, from, isEqual, isNull, negate, notNull, or_, or, or, testNonNull, xor_, xor, xor
public AndChecker(@NotNull java.util.function.Predicate<? super T> checker1, @NotNull java.util.function.Predicate<? super T> checker2)
checker1
- first checkerchecker2
- second checker@SafeVarargs public AndChecker(@NotNull java.util.function.Predicate<? super T> checker1, @NotNull java.util.function.Predicate<? super T> checker2, @NotNull java.util.function.Predicate<? super T>... more)
checker1
- first checkerchecker2
- second checkermore
- more checkers