Package org.apache.tapestry5.func


package org.apache.tapestry5.func
Light-weight functional programming for Flows of values
  • Class
    Description
    Functional operations on collections with generics support.
    Flow<T>
    A flow is a a functional interface for working with an ordered collection of elements.
     
    The result of the evaluation of a LazyFunction.
    A lazy function is used to populate a Flow incrementally.
    A function that returns a value, allowing the computation of that value to be deferred as late as possible.
     
    Mapper<S,T>
    Interface for operation Flow.map(Mapper) to define how Flow elements are mapped from one type to another (or otherwise transformed).
    Mapper2<A,B,C>
    A generalization of Mapper for a two-input function.
    Used when filtering a collection of objects of a given type; the predicate is passed each object in turn, and returns true to include the object in the result collection.
    Reducer<A,T>
    A reducer takes an accumulator value and a single value from a collection and computes a new accumulator value.
    Tuple<A,B>
    A Tuple holds two values of two different types.
    An operational function used with a Flow.
    The result of the Flow.zipWith(Flow) method (or created from a Map via F.zippedFlow(Map)), a Flow of combined Tuple values (that can be deconstructed, eventually, using ZippedFlow.unzip()).