Modifier and Type | Method and Description |
---|---|
String |
apply(V value) |
static TypeSerializer<Boolean> |
ofBoolean()
Serializer to convert the given boolean into the true/false string.
|
static TypeSerializer<javax.money.CurrencyUnit> |
ofCurrency()
Serializer to convert the given money currency into the accepted format.
|
static TypeSerializer<LocalDate> |
ofDate()
Serializer to convert the given local date into the accepted ISO format.
|
static TypeSerializer<ZonedDateTime> |
ofDateTime()
Serializer to convert the given local datetime into the accepted ISO format with UTC zone.
|
static TypeSerializer<Long> |
ofMoneyCentAmount()
Serializer to convert the given money cent amount into a plain string.
|
static TypeSerializer<BigDecimal> |
ofNumber()
Serializer to convert the given numerical value into a suitable string.
|
static <V> TypeSerializer<V> |
ofRawFunction(Function<V,String> serializer)
Serializer to convert the given element to a formatted string with escaped characters.
|
static TypeSerializer<String> |
ofRawString()
Serializer to convert the given text to a raw string without escaping characters or adding quotes.
|
static TypeSerializer<String> |
ofString()
Serializer to convert the given text to a formatted string with escaped characters.
|
static TypeSerializer<LocalTime> |
ofTime()
Serializer to convert the given local time into the accepted standard format.
|
public static <V> TypeSerializer<V> ofRawFunction(Function<V,String> serializer)
V
- type of the data to transform.serializer
- serializerpublic static TypeSerializer<String> ofString()
public static TypeSerializer<String> ofRawString()
public static TypeSerializer<Boolean> ofBoolean()
public static TypeSerializer<BigDecimal> ofNumber()
public static TypeSerializer<LocalDate> ofDate()
public static TypeSerializer<LocalTime> ofTime()
public static TypeSerializer<ZonedDateTime> ofDateTime()
public static TypeSerializer<Long> ofMoneyCentAmount()
public static TypeSerializer<javax.money.CurrencyUnit> ofCurrency()