## 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 values
  org.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 and 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 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.
    `static <T> Mapper<T,String>` | F.`stringValueOf()` A Mapper factory that gets the string value of the flow value using `String.valueOf(Object)`.

    Methods in org.apache.tapestry5.func with parameters of type Mapper
    Modifier and Type | Method and 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 <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 a `Mapper` that maps a T to a `Flow<X>`, this method will lazily concatenate all the output flows into a single `Flow<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 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, 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.
    `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 Mapper
    Modifier and Type | Field and Description
    --- | ---
    `static Mapper<Asset,StylesheetLink>` | TapestryInternalUtils.`assetToStylesheetLink` Common mapper, used primarily with `Flow.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 and Description
    --- | ---
    `static Mapper<Class,AnnotationProvider>` | InternalUtils.`CLASS_TO_AP_MAPPER`
    `static Mapper<ObjectCreator,Object>` | InternalUtils.`CREATE_OBJECT`
    `static Mapper<Method,AnnotationProvider>` | InternalUtils.`METHOD_TO_AP_MAPPER`

    Methods in org.apache.tapestry5.ioc.internal.util that return Mapper
    Modifier and Type | Method and Description
    --- | ---
    `static <S,T> Mapper<S,T>` | InternalUtils.`toMapper(Coercion<S,T> coercion)` Wraps a `Coercion` as a `Mapper`.

5.6.0 - Copyright © 2003-2020 The Apache Software Foundation.