Package | Description |
---|---|
org.apache.tapestry5.func |
Light-weight functional programming for Flows of values
|
Modifier and Type | Method and Description |
---|---|
static <X,Y> Tuple<X,Y> |
Tuple.create(X first,
Y second) |
Tuple<A,B> |
LazyZipValue.get() |
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 |
---|---|
static <A extends Comparable<A>,B> |
F.orderByFirst()
Creates a Comparator for the Tuples of a
ZippedFlow that sorts the Tuple elements based on the first
value in the Tuple. |
static <A,B extends Comparable<B>> |
F.orderBySecond()
Creates a Comparator for the Tuples of a
ZippedFlow that sorts the Tuple elements based on the first
value in the Tuple. |
Modifier and Type | Method and Description |
---|---|
<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.
|
<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.
|
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.