# Uses of Interface
org.apache.tapestry5.func.Predicate

Packages that use Predicate
Package
Description
org.apache.tapestry5.dom
A Document Object Model, a tree of nodes representing elements, attributes and text within a document.
org.apache.tapestry5.func
Light-weight functional programming for Flows of values
org.apache.tapestry5.ioc.internal.util
[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 Predicate
  Modifier and Type
  Method
  Description
  `Element`
  Element.`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 Predicate
  Modifier and Type
  Field
  Description
  `static Predicate<String>`
  F.`IS_BLANK`
  Predicate that returns true if the provided string is blank (null or all whitespace).
  Methods in org.apache.tapestry5.func that return Predicate
  Modifier and Type
  Method
  Description
  `static <T> Predicate<T>`
  F.`and(Predicate<? super T>... delegates)`
  Combines any number of delegates as a logical and operation.
  `static Predicate<String>`
  F.`endsWith(String suffix)`
  A Predicate factory for matching String elements with a given suffix.
  `static Predicate<String>`
  F.`endsWithIgnoringCase(String suffix)`
  As with `F.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>`
  F.`not(Predicate<? super T> delegate)`
  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>`
  F.`or(Predicate<? super T>... delegates)`
  Combines any number of delegates as a logical or operation.
  `static Predicate<String>`
  F.`startsWith(String prefix)`
  A Predicate factory for matching String elements with a given prefix.
  `static Predicate<String>`
  F.`startsWithIgnoringCase(String prefix)`
  As `F.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 Predicate
  Modifier and Type
  Method
  Description
  `static <T> Predicate<T>`
  F.`and(Predicate<? super T>... delegates)`
  Combines any number of delegates as a logical and operation.
  `FT`
  FlowOperations.`filter(Predicate<? super T> predicate)`
  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>`
  F.`not(Predicate<? super T> delegate)`
  Inverts a predicate.
  `static <T> Predicate<T>`
  F.`or(Predicate<? super T>... delegates)`
  Combines any number of delegates as a logical or operation.
  `FT`
  FlowOperations.`remove(Predicate<? super T> predicate)`
  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>`
  F.`select(Predicate<? super S> predicate, Mapper<S,T> ifAccepted)`
  Override of `F.select(Predicate, Mapper, Mapper)` where rejected values are replaced with null.
  `static <S, T> Mapper<S,T>`
  F.`select(Predicate<? super S> predicate, Mapper<S,T> ifAccepted, Mapper<S,T> ifRejected)`
  A Mapper factory that combines a Predicate with two `Mapper`s; evaluating the predicate selects one of the two mappers.
  `static <S, T> Mapper<S,T>`
  F.`select(Predicate<? super S> predicate, Mapper<S,T> ifAccepted, T ifRejectedValue)`
  Override of `F.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 Predicate
  Modifier and Type
  Method
  Description
  `static <T extends Comparable<T>>
  List<T>`
  InternalUtils.`matchAndSort(Collection<? extends T> collection, Predicate<T> predicate)`