Package | Description |
---|---|
org.apache.tapestry5.func |
Light-weight functional programming for Flows of values
|
Modifier and Type | Method and Description |
---|---|
<V extends T> |
Flow.append(V... values)
Appends any number of type compatible values to the end of this Flow.
|
Flow<T> |
Flow.concat(Flow<? extends T> other)
Returns a new Flow with the other Flow's elements appended to this Flow's.
|
Flow<A> |
ZippedFlow.firsts()
Returns a flow of the first values of the tuples of the zipped flow.
|
static <T> Flow<T> |
F.flow(Collection<T> values)
Extracts the values from the collection to form a
Flow . |
static <T> Flow<T> |
F.flow(Iterable<T> iterable)
Creates a lazy Flow from the
Iterator obtained from the iterable. |
static <T> Flow<T> |
F.flow(Iterator<T> iterator)
Creates a lazy Flow from the
Iterator . |
static <T> Flow<T> |
F.flow(T... values)
Creates a new Flow from the values.
|
Flow<T> |
Flow.interleave(Flow<T>... otherFlows)
"Stripes" together a group of flows.
|
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.
|
static <T> Flow<T> |
F.lazy(LazyFunction<T> function)
Creates a
Flow from a lazy function. |
<X> Flow<X> |
Flow.map(Mapper<T,X> mapper)
Maps a Flow into a new Flow with different type values.
|
<X,Y> Flow<Y> |
Flow.map(Mapper2<T,X,Y> mapper,
Flow<? extends X> flow)
Combines two Flows using a two-parameter Mapper.
|
<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> . |
static Flow<Integer> |
F.range(int lower,
int upper)
Creates a lazy Flow that returns integers in the given range.
|
Flow<B> |
ZippedFlow.seconds()
Returns a flow of the second values of the tuples of the zipped flow.
|
static Flow<Integer> |
F.series(int start,
int delta)
Creates an infinite series of numbers.
|
Flow<T> |
Flow.sort()
Sorts this Flow, forming a new Flow.
|
Modifier and Type | Method and Description |
---|---|
Tuple<Flow<A>,Flow<B>> |
ZippedFlow.unzip()
A ZippedFlow is a Flow of Tuples; this inverts that, splitting each Tuple into
a Flow of elements, then assembling the result as a Tuple of two values.
|
Tuple<Flow<A>,Flow<B>> |
ZippedFlow.unzip()
A ZippedFlow is a Flow of Tuples; this inverts that, splitting each Tuple into
a Flow of elements, then assembling the result as a Tuple of two values.
|
Modifier and Type | Method and Description |
---|---|
Flow<T> |
Flow.concat(Flow<? extends T> other)
Returns a new Flow with the other Flow's elements appended to this Flow's.
|
Flow<T> |
Flow.interleave(Flow<T>... otherFlows)
"Stripes" together a group of flows.
|
<X,Y> Flow<Y> |
Flow.map(Mapper2<T,X,Y> mapper,
Flow<? extends X> flow)
Combines two Flows using a two-parameter Mapper.
|
<X> ZippedFlow<T,X> |
Flow.zipWith(Flow<X> otherFlow)
Zips this Flow together with another flow to form a Flow of
Tuple s. |
Modifier and Type | Method and Description |
---|---|
<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> . |
Constructor and Description |
---|
LazyZipValue(Flow<A> aFlow,
Flow<B> bFlow) |
LazyZipValue(Flow<A> aFlow,
Flow<B> bFlow) |
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.