@FunctionalInterface public interface ValueConverter
Modifier and Type | Method and Description |
---|---|
default ValueConverter |
and(ValueConverter delegate)
Return a new converter that calls this converter and passes the result to the specified converter.
|
Object |
convert(Object data)
Convert the column's data value.
|
default ValueConverter |
nullOr()
Return a new converter that will call this converter only when the input is not
null . |
default ValueConverter |
or(ValueConverter fallback)
Adapt this converter to call the specified fallback converter when this converter returns
null for
a non-null input. |
static ValueConverter |
passthrough()
Obtain a
ValueConverter that passes through values. |
Object convert(Object data)
data
- the column data valuedefault ValueConverter or(ValueConverter fallback)
null
for
a non-null input.fallback
- the converter to fall back to when this converter returns null
for a non-null inputfallback
is null
default ValueConverter and(ValueConverter delegate)
delegate
- the converter to call after this converterdelegate
is null
default ValueConverter nullOr()
null
.static ValueConverter passthrough()
ValueConverter
that passes through values.ValueConverter
; never nullCopyright © 2018 JBoss by Red Hat. All rights reserved.