Modifier and Type | Field and Description |
---|---|
static TypeArg<TupleMapper> |
__TYPE_ARG |
TypeArg<T> |
__typeArg_0 |
Constructor and Description |
---|
TupleMapper(Object delegate,
TypeArg<T> typeArg_0) |
TupleMapper(TupleMapper delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
TupleMapper |
getDelegate() |
int |
hashCode() |
static TupleMapper<JsonObject> |
jsonObject()
Map a to a .
|
Tuple |
map(Function<Integer,String> mapping,
int size,
T params)
The internal mapper contract that builds a tuple.
|
static <T> TupleMapper<T> |
mapper(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> |
newInstance(TupleMapper arg) |
static <T> TupleMapper<T> |
newInstance(TupleMapper arg,
TypeArg<T> __typeArg_T) |
String |
toString() |
public static final TypeArg<TupleMapper> __TYPE_ARG
public TupleMapper(TupleMapper delegate)
public TupleMapper getDelegate()
public static <T> TupleMapper<T> mapper(Function<T,Map<String,Object>> fn)
fn
- the function turning a parameters object into a mappublic static TupleMapper<JsonObject> jsonObject()
public Tuple map(Function<Integer,String> mapping, int size, T params)
mapping
- associates an index to template parameter namesize
- the tuple sizeparams
- the parameters objectpublic static <T> TupleMapper<T> newInstance(TupleMapper arg)
public static <T> TupleMapper<T> newInstance(TupleMapper arg, TypeArg<T> __typeArg_T)
Copyright © 2020 Eclipse. All rights reserved.