public class TupleBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TupleBuilder.ConversionServiceBuilder
Provides the ability to inject a
ConfigurableConversionService as a way to
customize conversion behavior in the built Tuple . |
Constructor and Description |
---|
TupleBuilder() |
Modifier and Type | Method and Description |
---|---|
Tuple |
build() |
static Tuple |
fromString(java.lang.String source) |
protected Tuple |
newTuple(java.util.List<java.lang.String> names,
java.util.List<java.lang.Object> values) |
Tuple |
of(java.lang.String k1,
java.lang.Object v1) |
Tuple |
of(java.lang.String k1,
java.lang.Object v1,
java.lang.String k2,
java.lang.Object v2) |
Tuple |
of(java.lang.String k1,
java.lang.Object v1,
java.lang.String k2,
java.lang.Object v2,
java.lang.String k3,
java.lang.Object v3) |
Tuple |
of(java.lang.String k1,
java.lang.Object v1,
java.lang.String k2,
java.lang.Object v2,
java.lang.String k3,
java.lang.Object v3,
java.lang.String k4,
java.lang.Object v4) |
Tuple |
ofNamesAndValues(java.util.List<java.lang.String> names,
java.util.List<java.lang.Object> values) |
TupleBuilder |
put(java.lang.String k1,
java.lang.Object v1) |
TupleBuilder |
putAll(Tuple tuple)
Add all names and values of the tuple to the built tuple.
|
TupleBuilder |
setConfigurableConversionService(org.springframework.core.convert.support.ConfigurableConversionService formattingConversionService) |
TupleBuilder.ConversionServiceBuilder |
setFormats(java.util.Locale locale,
java.text.DateFormat dateFormat) |
static TupleBuilder |
tuple() |
public static TupleBuilder tuple()
public Tuple of(java.lang.String k1, java.lang.Object v1)
public Tuple of(java.lang.String k1, java.lang.Object v1, java.lang.String k2, java.lang.Object v2)
public Tuple of(java.lang.String k1, java.lang.Object v1, java.lang.String k2, java.lang.Object v2, java.lang.String k3, java.lang.Object v3)
public Tuple of(java.lang.String k1, java.lang.Object v1, java.lang.String k2, java.lang.Object v2, java.lang.String k3, java.lang.Object v3, java.lang.String k4, java.lang.Object v4)
public Tuple ofNamesAndValues(java.util.List<java.lang.String> names, java.util.List<java.lang.Object> values)
public TupleBuilder put(java.lang.String k1, java.lang.Object v1)
public TupleBuilder putAll(Tuple tuple)
tuple
- names and value to add to the tuple being builtpublic Tuple build()
public static Tuple fromString(java.lang.String source)
public TupleBuilder setConfigurableConversionService(org.springframework.core.convert.support.ConfigurableConversionService formattingConversionService)
public TupleBuilder.ConversionServiceBuilder setFormats(java.util.Locale locale, java.text.DateFormat dateFormat)
protected Tuple newTuple(java.util.List<java.lang.String> names, java.util.List<java.lang.Object> values)