A C D E F G I L M N O P R S T W

A

accept(T) - Method in class org.apache.tapestry5.func.Predicate
This method is overridden in subclasses to define which objects the Predicate will accept and which it will reject.
ADD_INTS - Static variable in class org.apache.tapestry5.func.F
 
addToCollection(Collection<T>) - Static method in class org.apache.tapestry5.func.F
 
always(T) - Static method in class org.apache.tapestry5.func.F
Returns a Mapper that ignores its input value and always returns a predetermined result.
and(Predicate<? super T>) - Method in class org.apache.tapestry5.func.Predicate
Combines this Predicate with another compatible Predicate to form a new Predicate, which is returned.
append(V...) - Method in interface org.apache.tapestry5.func.Flow
Appends any number of type compatible values to the end of this Flow.

C

combine(Mapper<T, X>) - Method in class org.apache.tapestry5.func.Mapper
Combines this mapper (S -->T) with another mapper (T -->X) to form a composite mapper (S --> X).
combine(Worker<? super T>) - Method in class org.apache.tapestry5.func.Worker
Combines this worker with the other worker, forming a new composite worker.
concat(Flow<? extends T>) - Method in interface org.apache.tapestry5.func.Flow
Returns a new Flow with the other Flow's elements appended to this Flow's.
concat(List<? extends T>) - Method in interface org.apache.tapestry5.func.Flow
Returns a new Flow with the values in the list appended to this Flow.
count() - Method in interface org.apache.tapestry5.func.Flow
Returns the number of values in the Flow.

D

drop(int) - Method in interface org.apache.tapestry5.func.Flow
Returns a new Flow with the first values omitted.

E

each(Worker<? super T>) - Method in interface org.apache.tapestry5.func.Flow
Applies the worker to each value in the Flow, then returns the flow for further behaviors.
eq(long) - Static method in class org.apache.tapestry5.func.F
 
eql(T) - Static method in class org.apache.tapestry5.func.F
 

F

F - Class in org.apache.tapestry5.func
Functional operations on collections with generics support.
F() - Constructor for class org.apache.tapestry5.func.F
 
filter(Predicate<? super T>) - Method in interface org.apache.tapestry5.func.Flow
Filters values, keeping only values where the predicate is true, returning a new Flow with just the retained values.
first() - Method in interface org.apache.tapestry5.func.Flow
Returns the first value in the Flow.
flow(Collection<T>) - Static method in class org.apache.tapestry5.func.F
Extracts the values from the collection to form a Flow.
flow(T...) - Static method in class org.apache.tapestry5.func.F
Creates a new Flow from the values.
flow(Iterable<T>) - Static method in class org.apache.tapestry5.func.F
Creates a lazy Flow from the Iterator obtained from the iterable.
Flow<T> - Interface in org.apache.tapestry5.func
A Flow is a a functional interface for working with an ordered collection of values.

G

get() - Method in interface org.apache.tapestry5.func.LazyValue
Compute and return the value.
gt(long) - Static method in class org.apache.tapestry5.func.F
 
gteq(long) - Static method in class org.apache.tapestry5.func.F
 

I

identity() - Static method in class org.apache.tapestry5.func.F
The identity mapper simply returns the input unchanged.
invert() - Method in class org.apache.tapestry5.func.Predicate
Inverts this Predicate, returning a new Predicate that inverts the value returned from Predicate.accept(T).
isEmpty() - Method in interface org.apache.tapestry5.func.Flow
Returns true if the Flow contains no values.
isNull() - Static method in class org.apache.tapestry5.func.F
 
iterate(T, Mapper<T, T>) - Static method in class org.apache.tapestry5.func.F
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.

L

lazy(LazyFunction<T>) - Static method in class org.apache.tapestry5.func.F
Creates a Flow from a lazy function.
LazyContinuation<T> - Class in org.apache.tapestry5.func
The result of the evaluation of a LazyFunction.
LazyContinuation(T, LazyFunction<T>) - Constructor for class org.apache.tapestry5.func.LazyContinuation
 
LazyContinuation(LazyValue<T>, LazyFunction<T>) - Constructor for class org.apache.tapestry5.func.LazyContinuation
 
LazyFunction<T> - Interface in org.apache.tapestry5.func
A lazy function is used to populate a Flow incrementally.
LazyValue<T> - Interface in org.apache.tapestry5.func
A function that returns a value, allowing the computation of that value to be deferred as late as possible.
lt(long) - Static method in class org.apache.tapestry5.func.F
 
lteq(long) - Static method in class org.apache.tapestry5.func.F
 

M

map(Mapper<T, X>) - Method in interface org.apache.tapestry5.func.Flow
Maps a Flow into a new Flow with different type values.
map(Mapper2<T, X, Y>, Flow<? extends X>) - Method in interface org.apache.tapestry5.func.Flow
Combines two Flows using a two-parameter Mapper.
map(S) - Method in class org.apache.tapestry5.func.Mapper
Implemented in subclasses to map a source value to a target value.
map(A, B) - Method in class org.apache.tapestry5.func.Mapper2
Take, as input, two values (from two flows) and return a computed value of the third type.
mapcat(Mapper<T, Flow<X>>) - Method in interface org.apache.tapestry5.func.Flow
Given a Mapper that maps a T to a Flow, this method will lazily concatenate all the output flows into a single Flow.
Mapper<S,T> - Class in org.apache.tapestry5.func
Base class used with Flow.map(Mapper) to define how Flow values are mapped from one type to another (or otherwise transformed).
Mapper() - Constructor for class org.apache.tapestry5.func.Mapper
 
Mapper2<A,B,C> - Class in org.apache.tapestry5.func
A generalization of Mapper for a two-input function.
Mapper2() - Constructor for class org.apache.tapestry5.func.Mapper2
 

N

neq(long) - Static method in class org.apache.tapestry5.func.F
 
next() - Method in interface org.apache.tapestry5.func.LazyFunction
Calculates the next value for the function.
nextFunction() - Method in class org.apache.tapestry5.func.LazyContinuation
Returns a new lazy function that will return the next continuation.
nextValue() - Method in class org.apache.tapestry5.func.LazyContinuation
Returns, indirectly, the next value computed by the lazy function.
notNull() - Static method in class org.apache.tapestry5.func.F
 

O

or(Predicate<? super T>) - Method in class org.apache.tapestry5.func.Predicate
Combines this Predicate with another compatible Predicate to form a new Predicate, which is returned.
org.apache.tapestry5.func - package org.apache.tapestry5.func
 

P

Predicate<T> - Class in org.apache.tapestry5.func
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.
Predicate() - Constructor for class org.apache.tapestry5.func.Predicate
 

R

range(int, int) - Static method in class org.apache.tapestry5.func.F
Creates a lazy Flow that returns integers in the given range.
reduce(Reducer<A, T>, A) - Method in interface org.apache.tapestry5.func.Flow
Applies a Reducer to the values of the Flow.
reduce(A, T) - Method in interface org.apache.tapestry5.func.Reducer
 
Reducer<A,T> - Interface in org.apache.tapestry5.func
A reducer takes an accumulator value and a single value from a collection and computes a new accumulator value.
remove(Predicate<? super T>) - Method in interface org.apache.tapestry5.func.Flow
Removes values where the predicate returns true, returning a new Flow with just the remaining values.
rest() - Method in interface org.apache.tapestry5.func.Flow
Returns a new Flow containing all but the first value in this Flow.
reverse() - Method in interface org.apache.tapestry5.func.Flow
Returns a new flow with the same elements but in reverse order.

S

select(Predicate<? super S>, Mapper<S, T>, Mapper<S, T>) - Static method in class org.apache.tapestry5.func.F
Mapper factory that combines a Predicate with two Mappers; evaluating the predicate selects one of the two mappers.
select(Predicate<? super S>, Mapper<S, T>) - Static method in class org.apache.tapestry5.func.F
Override of select(Predicate, Mapper, Mapper) where rejected values are replaced with null.
select(Predicate<? super S>, Mapper<S, T>, T) - Static method in class org.apache.tapestry5.func.F
Override of select(Predicate, Mapper) where rejected values are replaced with a fixed value.
series(int, int) - Static method in class org.apache.tapestry5.func.F
Creates an infinite series of numbers.
sort() - Method in interface org.apache.tapestry5.func.Flow
Sorts this Flow, forming a new Flow.
sort(Comparator<? super T>) - Method in interface org.apache.tapestry5.func.Flow
Sorts this Flow using the comparator, forming a new Flow.
stringValueOf() - Static method in class org.apache.tapestry5.func.F
 
SUM_INTS - Static variable in class org.apache.tapestry5.func.F
 

T

take(int) - Method in interface org.apache.tapestry5.func.Flow
Returns a new Flow containing just the first values from this Flow.
toArray(Class<T>) - Method in interface org.apache.tapestry5.func.Flow
Converts the Flow into an array of values (due to type erasure, you have to remind the Flow about the type).
toList() - Method in interface org.apache.tapestry5.func.Flow
Converts the Flow into an unmodifiable list of values.
toPredicate(Mapper<S, Boolean>) - Static method in class org.apache.tapestry5.func.F
Allows a Mapper that maps to boolean to be used as a Predicate.
toSet() - Method in interface org.apache.tapestry5.func.Flow
Converts the Flow into an unmodifiable set of values.

W

work(T) - Method in class org.apache.tapestry5.func.Worker
Perform the operation on some object of type T.
Worker<T> - Class in org.apache.tapestry5.func
An operational function used with a Flow.
Worker() - Constructor for class org.apache.tapestry5.func.Worker
 

A C D E F G I L M N O P R S T W

Copyright © 2010-2011 Apache Software Foundation. All Rights Reserved.