Uses of Interface
org.apache.tapestry5.func.Mapper
Packages that use Mapper
Package
Description
Light-weight functional programming for Flows of values
[INTERNAL USE ONLY] internal support classes; API subject to change.
[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 MapperModifier and TypeMethodDescriptionstatic <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> 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> 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 twoMappers; 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.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 MapperModifier and TypeMethodDescriptionstatic <A,B, C> Mapper<A, C> Combines two mappers into a composite mapping from type A to type C via type B.static <T> Flow<T>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>Maps a Flow into a new Flow with different type values.<X> Flow<X>Given aMapperthat maps a T to aFlow<X>, this method will lazily concatenate all the output flows into a singleFlow<X>.<X,Y> ZippedFlow<X, Y> 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> 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 twoMappers; 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.static <S> Predicate<S>F.toPredicate(Mapper<S, 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 MapperModifier and TypeFieldDescriptionstatic Mapper<Asset,StylesheetLink> TapestryInternalUtils.assetToStylesheetLinkCommon 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 MapperModifier and TypeFieldDescriptionstatic final Mapper<Class,AnnotationProvider> InternalUtils.CLASS_TO_AP_MAPPERstatic final Mapper<ObjectCreator,Object> InternalUtils.CREATE_OBJECTstatic final Mapper<Method,AnnotationProvider> InternalUtils.METHOD_TO_AP_MAPPERMethods in org.apache.tapestry5.ioc.internal.util that return Mapper