Uses of Class
org.apache.tapestry5.func.Mapper

Uses of Mapper in org.apache.tapestry5.func
 

Methods in org.apache.tapestry5.func that return Mapper
static
<S,T> Mapper<S,T>
F.always(T fixedResult)
          Returns a Mapper that ignores its input value and always returns a predetermined result.
<X> Mapper<S,X>
Mapper.combine(Mapper<T,X> other)
          Combines this mapper (S -->T) with another mapper (T -->X) to form a composite mapper (S --> X).
static
<S> Mapper<S,S>
F.identity()
          The identity mapper simply returns the input unchanged.
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)
          Mapper factory that combines a Predicate with two Mappers; 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.
static
<T> Mapper<T,java.lang.String>
F.stringValueOf()
           
 

Methods in org.apache.tapestry5.func with parameters of type Mapper
<X> Mapper<S,X>
Mapper.combine(Mapper<T,X> other)
          Combines this mapper (S -->T) with another mapper (T -->X) to form a composite mapper (S --> X).
static
<T> Flow<T>
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.
<X> Flow<X>
Flow.map(Mapper<T,X> mapper)
          Maps a Flow into a new Flow with different type values.
<X> Flow<X>
Flow.mapcat(Mapper<T,Flow<X>> mapper)
          Given a Mapper that maps a T to a Flow, this method will lazily concatenate all the output flows into a single Flow.
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)
          Mapper factory that combines a Predicate with two Mappers; 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, Mapper<S,T> ifRejected)
          Mapper factory that combines a Predicate with two Mappers; 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.
static
<S> Predicate<S>
F.toPredicate(Mapper<S,java.lang.Boolean> mapper)
          Allows a Mapper that maps to boolean to be used as a Predicate.
 



Copyright © 2010 Apache Software Foundation. All Rights Reserved.