Uses of Interface
org.apache.tapestry5.func.Predicate
Packages that use Predicate
Package
Description
A Document Object Model, a tree of nodes representing elements, attributes
and text within a document.
Light-weight functional programming for Flows of values
[INTERNAL USE ONLY] utility classes for Tapestry IOC services; API subject to change
-
Uses of Predicate in org.apache.tapestry5.dom
Methods in org.apache.tapestry5.dom with parameters of type PredicateModifier and TypeMethodDescriptionElement.getElement
(Predicate<Element> predicate) Tries to find an element under this element (including itself) accepted by the given predicate. -
Uses of Predicate in org.apache.tapestry5.func
Fields in org.apache.tapestry5.func declared as PredicateModifier and TypeFieldDescriptionF.IS_BLANK
Predicate that returns true if the provided string is blank (null or all whitespace).Methods in org.apache.tapestry5.func that return PredicateModifier and TypeMethodDescriptionstatic <T> Predicate<T>
Combines any number of delegates as a logical and operation.A Predicate factory for matching String elements with a given suffix.F.endsWithIgnoringCase
(String suffix) As withF.endsWith(String)
but ignores case.static <T extends Comparable<T>>
Predicate<T>F.eq
(T value) A Predicate factory for comparison of a Comparable element from a flow against a fixed value.static <T> Predicate<T>
F.eql
(T value) A Predicate factory for equality of an element from a flow against a specified value.static <T extends Comparable<T>>
Predicate<T>F.gt
(T value) A Predicate factory for comparison of a Comparable against a fixed value; true if the flow element is greater than the provided value.static <T extends Comparable<T>>
Predicate<T>F.gteq
(T value) A Predicate factory for comparison of a Comparable against a fixed value; true if the flow element is greater than or equal to the value.static <T> Predicate<T>
F.isNull()
A Predicate factory; returns true if the value from the Flow is null.static <T extends Comparable<T>>
Predicate<T>F.lt
(T value) A Predicate factory for comparison of a Comparable against a fixed value; true if the element is less than the value.static <T extends Comparable<T>>
Predicate<T>F.lteq
(T value) A Predicate factory for comparison of a Comprable element against a fixed value; true if the element is less than or equal to the value.static <T extends Comparable<T>>
Predicate<T>F.neq
(T value) A Predicate factory for comparison of a Comparable element against a fixed value.static <T> Predicate<T>
Inverts a predicate.static <T> Predicate<T>
F.notNull()
A Predicate factory; returns true if the value from the Flow is not null.static <T> Predicate<T>
Combines any number of delegates as a logical or operation.F.startsWith
(String prefix) A Predicate factory for matching String elements with a given prefix.F.startsWithIgnoringCase
(String prefix) AsF.startsWith(String)
, but ignores case.static <S> Predicate<S>
F.toPredicate
(Mapper<S, Boolean> mapper) Allows a Mapper that maps to boolean to be used as a Predicate.Methods in org.apache.tapestry5.func with parameters of type PredicateModifier and TypeMethodDescriptionstatic <T> Predicate<T>
Combines any number of delegates as a logical and operation.Filters values, keeping only values where the predicate is true, returning a new Flow with just the retained values.ZippedFlow<A,
B> ZippedFlow.filterOnFirst
(Predicate<? super A> predicate) Filters the tuples in the zipped flow by applying a predicate to the first value in each tuple.ZippedFlow<A,
B> ZippedFlow.filterOnSecond
(Predicate<? super B> predicate) Filters the tuples in the zipped flow by applying a predicate to the second value in each tuple.static <T> Predicate<T>
Inverts a predicate.static <T> Predicate<T>
Combines any number of delegates as a logical or operation.Removes values where the predicate returns true, returning a new Flow with just the remaining values.ZippedFlow<A,
B> ZippedFlow.removeOnFirst
(Predicate<? super A> predicate) Removes tuples from the zipped flow by applying a predicate to the first value in each tuple.ZippedFlow<A,
B> ZippedFlow.removeOnSecond
(Predicate<? super B> predicate) Removes tuples from the zipped flow by applying a predicate to the second value in each tuple.static <S,
T> Mapper<S, T> Override ofF.select(Predicate, Mapper, Mapper)
where rejected values are replaced with null.static <S,
T> Mapper<S, T> A Mapper factory that combines a Predicate with twoMapper
s; evaluating the predicate selects one of the two mappers.static <S,
T> Mapper<S, T> Override ofF.select(Predicate, Mapper)
where rejected values are replaced with a fixed value. -
Uses of Predicate in org.apache.tapestry5.ioc.internal.util
Methods in org.apache.tapestry5.ioc.internal.util with parameters of type PredicateModifier and TypeMethodDescriptionstatic <T extends Comparable<T>>
List<T>InternalUtils.matchAndSort
(Collection<? extends T> collection, Predicate<T> predicate)