Uses of Interface
zone.lamprey.function.Predicate
| Package | Description |
|---|---|
| zone.lamprey.function |
Functional interfaces provide target types for lambda expressions
and method references.
|
-
Uses of Predicate in zone.lamprey.function
Subinterfaces of Predicate in zone.lamprey.function Modifier and Type Interface Description interfaceDoublePredicateRepresents a predicate (boolean-valued function) of onedouble-valued argument.interfaceIntPredicateRepresents a predicate (boolean-valued function) of oneint-valued argument.interfaceLongPredicateRepresents a predicate (boolean-valued function) of onelong-valued argument.Methods in zone.lamprey.function that return Predicate Modifier and Type Method Description static <T> Predicate<T>Predicate. alwaysFalse()Returns a predicate that is always false.static <T> Predicate<T>Predicate. alwaysTrue()Returns a predicate that is always true.default Predicate<T>Predicate. and(Predicate<? super T> other)Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.default Predicate<U>BiPredicate. applyPartialL(T t)Performs a partial application, resulting in a function that calls this with its argument and the argument given here.default Predicate<T>BiPredicate. applyPartialR(U u)Performs a partial application, resulting in a function that calls this with its argument and the argument given here.static <T> Predicate<T>Predicate. isEqual(Object targetRef)Returns a predicate that tests if two arguments are equal according toObjects.equals(Object, Object).default Predicate<T>Function. mapToPredicate(Predicate<? super R> functor)Lift a function.default Predicate<T>Predicate. mapToPredicate(Predicate<? super Boolean> functor)Lift a function.default Predicate<T>ToDoubleFunction. mapToPredicate(DoublePredicate functor)Lift a function.default Predicate<T>ToIntFunction. mapToPredicate(IntPredicate functor)Lift a function.default Predicate<T>ToLongFunction. mapToPredicate(LongPredicate functor)Lift a function.default Predicate<T>Predicate. negate()Returns a predicate that represents the logical negation of this predicate.static <T> Predicate<T>Predicate. not(Predicate<? super T> target)Returns a predicate that is the negation of the supplied predicate.default Predicate<T>Predicate. or(Predicate<? super T> other)Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.Methods in zone.lamprey.function with parameters of type Predicate Modifier and Type Method Description default Predicate<T>Predicate. and(Predicate<? super T> other)Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.default DoublePredicateDoubleFunction. mapToPredicate(Predicate<? super R> functor)Lift a function.default DoublePredicateDoublePredicate. mapToPredicate(Predicate<? super Boolean> functor)Lift a function.default Predicate<T>Function. mapToPredicate(Predicate<? super R> functor)Lift a function.default IntPredicateIntFunction. mapToPredicate(Predicate<? super R> functor)Lift a function.default IntPredicateIntPredicate. mapToPredicate(Predicate<? super Boolean> functor)Lift a function.default LongPredicateLongFunction. mapToPredicate(Predicate<? super R> functor)Lift a function.default LongPredicateLongPredicate. mapToPredicate(Predicate<? super Boolean> functor)Lift a function.default Predicate<T>Predicate. mapToPredicate(Predicate<? super Boolean> functor)Lift a function.static <T> Predicate<T>Predicate. not(Predicate<? super T> target)Returns a predicate that is the negation of the supplied predicate.default Predicate<T>Predicate. or(Predicate<? super T> other)Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.default BiPredicate<T,U>BiFunction. predicate(Predicate<? super R> functor)Lift a function.default BooleanSupplierSupplier. predicate(Predicate<T> functor)Lift a supplier.default TUnaryOperator. recurse(T value, Predicate<T> terminalCondition)A method that tells a function to call itself with its own result.default TUnaryOperator. recurse(T value, Predicate<T> terminalCondition, int maxDepth)A method that tells a function to call itself with its own result.default UnaryOperator<T>UnaryOperator. recursive(Predicate<T> terminalCondition)A method that creates a function which calls a function with its own result until some condition is met.default UnaryOperator<T>UnaryOperator. recursive(Predicate<T> terminalCondition, int maxDepth)A method that creates a function which calls a function with its own result some amount of times or until some condition is met.