Package io.activej.async.function
Interface AsyncPredicate<T>
-
- All Known Implementing Classes:
AsyncPredicates.AsyncPredicateWrapper
- 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 AsyncPredicate<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static <T> AsyncPredicate<T>alwaysFalse()static <T> AsyncPredicate<T>alwaysTrue()default AsyncPredicate<T>and(AsyncPredicate<? super T> other)static <T> AsyncPredicate<T>cast(AsyncPredicate<T> predicate)default AsyncPredicate<T>negate()static <T> AsyncPredicate<T>of(Predicate<T> predicate)default AsyncPredicate<T>or(AsyncPredicate<? super T> other)Promise<Boolean>test(T t)
-
-
-
Method Detail
-
cast
static <T> AsyncPredicate<T> cast(AsyncPredicate<T> predicate)
-
of
static <T> AsyncPredicate<T> of(Predicate<T> predicate)
-
negate
default AsyncPredicate<T> negate()
-
and
default AsyncPredicate<T> and(AsyncPredicate<? super T> other)
-
or
default AsyncPredicate<T> or(AsyncPredicate<? super T> other)
-
alwaysTrue
static <T> AsyncPredicate<T> alwaysTrue()
-
alwaysFalse
static <T> AsyncPredicate<T> alwaysFalse()
-
-