Uses of Interface
org.apache.tapestry5.func.Mapper
-
Packages that use Mapper Package Description org.apache.tapestry5.func Light-weight functional programming for Flows of valuesorg.apache.tapestry5.internal [INTERNAL USE ONLY] internal support classes; API subject to change.org.apache.tapestry5.ioc.internal.util [INTERNAL USE ONLY] utility classes for Tapestry IOC services; API subject to change -
-
Uses of Mapper in org.apache.tapestry5.func
Methods in org.apache.tapestry5.func that return Mapper Modifier and Type Method Description static <S,T>
Mapper<S,T>F. always(T fixedResult)
A Mapper factory; the returned Mapper ignores its input value and always returns a predetermined result.static <A,B,C>
Mapper<A,C>F. combine(Mapper<A,B> abMapper, Mapper<B,C> bcMapper)
Combines two mappers into a composite mapping from type A to type C via type B.static <S> Mapper<S,S>
F. identity()
A Mapper factory; the Mapper returns the the flow value unchanged.static <S,T>
Mapper<S,T>F. select(Predicate<? super S> predicate, Mapper<S,T> ifAccepted)
Override ofF.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 twoMapper
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 ofF.select(Predicate, Mapper)
where rejected values are replaced with a fixed value.static <T> Mapper<T,java.lang.String>
F. stringValueOf()
A Mapper factory that gets the string value of the flow value usingString.valueOf(Object)
.Methods in org.apache.tapestry5.func with parameters of type Mapper Modifier and Type Method Description static <A,B,C>
Mapper<A,C>F. combine(Mapper<A,B> abMapper, Mapper<B,C> bcMapper)
Combines two mappers into a composite mapping from type A to type C via type B.static <T> Flow<T>
F. iterate(T initial, Mapper<T,T> function)
Creates an infinite lazy flow from an initial value and a function to map from the current value to the next 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 aMapper
that maps a T to aFlow<X>
, this method will lazily concatenate all the output flows into a singleFlow<X>
.<X,Y>
ZippedFlow<X,Y>ZippedFlow. mapTuples(Mapper<Tuple<A,B>,Tuple<X,Y>> mapper)
Mapping for zipped flows; a mapper is used to map tuples of this zipped flow into new tuples with a new type, forming the resulting zipped flow.static <S,T>
Mapper<S,T>F. select(Predicate<? super S> predicate, Mapper<S,T> ifAccepted)
Override ofF.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 twoMapper
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 ofF.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. -
Uses of Mapper in org.apache.tapestry5.internal
Fields in org.apache.tapestry5.internal declared as Mapper Modifier and Type Field Description static Mapper<Asset,StylesheetLink>
TapestryInternalUtils. assetToStylesheetLink
Common mapper, used primarily withFlow.map(org.apache.tapestry5.func.Mapper)
-
Uses of Mapper in org.apache.tapestry5.ioc.internal.util
Fields in org.apache.tapestry5.ioc.internal.util declared as Mapper Modifier and Type Field Description static Mapper<java.lang.Class,AnnotationProvider>
InternalUtils. CLASS_TO_AP_MAPPER
static Mapper<ObjectCreator,java.lang.Object>
InternalUtils. CREATE_OBJECT
static Mapper<java.lang.reflect.Method,AnnotationProvider>
InternalUtils. METHOD_TO_AP_MAPPER
Methods in org.apache.tapestry5.ioc.internal.util that return Mapper Modifier and Type Method Description static <S,T>
Mapper<S,T>InternalUtils. toMapper(Coercion<S,T> coercion)
-