@FunctionalInterface public interface TupleMapper<T>
T
object to a Tuple
.Modifier and Type | Method and Description |
---|---|
static TupleMapper<JsonObject> |
jsonObject()
Map a
JsonObject to a Tuple . |
Tuple |
map(java.util.function.Function<Integer,String> mapping,
int size,
T params)
The internal mapper contract that builds a tuple.
|
static <T> TupleMapper<T> |
mapper(java.util.function.Function<T,Map<String,Object>> fn)
Create a mapper that associates a parameters object to a map of named parameters to
their respective value.
|
static <T> TupleMapper<T> mapper(java.util.function.Function<T,Map<String,Object>> fn)
fn
- the function turning a parameters object into a mapstatic TupleMapper<JsonObject> jsonObject()
JsonObject
to a Tuple
.Tuple map(java.util.function.Function<Integer,String> mapping, int size, T params)
mapping
- associates an index to template parameter namesize
- the tuple sizeparams
- the parameters objectCopyright © 2023 Eclipse. All rights reserved.