|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Uses of Mapper in org.apache.tapestry5.func |
|---|
| Methods in org.apache.tapestry5.func that return Mapper | ||
|---|---|---|
static
|
F.always(T fixedResult)
Returns a Mapper that ignores its input value and always returns a predetermined result. |
|
|
Mapper.combine(Mapper<T,X> other)
Combines this mapper (S -->T) with another mapper (T -->X) to form a composite mapper (S --> X). |
|
static
|
F.identity()
The identity mapper simply returns the input unchanged. |
|
static
|
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
|
F.select(Predicate<? super S> predicate,
Mapper<S,T> ifAccepted,
Mapper<S,T> ifRejected)
Mapper factory that combines a Predicate with two Mappers; evaluating the predicate selects one of the
two mappers. |
|
static
|
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. |
|
static
|
F.stringValueOf()
|
|
| Methods in org.apache.tapestry5.func with parameters of type Mapper | ||
|---|---|---|
|
Mapper.combine(Mapper<T,X> other)
Combines this mapper (S -->T) with another mapper (T -->X) to form a composite mapper (S --> X). |
|
static
|
F.iterate(T initial,
Mapper<T,T> mapper)
Creates a lazy, infinte Flow consisting of the initial value, then the result of passing the initial value through the Mapper, and so forth, which each step value passed through the mapper to form the next step value. |
|
|
Flow.map(Mapper<T,X> mapper)
Maps a Flow into a new Flow with different type values. |
|
|
Flow.mapcat(Mapper<T,Flow<X>> mapper)
Given a Mapper that maps a T to a Flow |
|
static
|
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
|
F.select(Predicate<? super S> predicate,
Mapper<S,T> ifAccepted,
Mapper<S,T> ifRejected)
Mapper factory that combines a Predicate with two Mappers; evaluating the predicate selects one of the
two mappers. |
|
static
|
F.select(Predicate<? super S> predicate,
Mapper<S,T> ifAccepted,
Mapper<S,T> ifRejected)
Mapper factory that combines a Predicate with two Mappers; evaluating the predicate selects one of the
two mappers. |
|
static
|
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. |
|
static
|
F.toPredicate(Mapper<S,java.lang.Boolean> mapper)
Allows a Mapper that maps to boolean to be used as a Predicate. |
|
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||