public class ConcatenatedConverter<V> extends Object implements ValueConverter<V>
| Constructor and Description |
|---|
ConcatenatedConverter(ValueConverter<?> sourceConverter,
ValueConverter<V> targetConverter) |
| Modifier and Type | Method and Description |
|---|---|
static <V> ConcatenatedConverter<V> |
concat(ValueConverter<?> first,
ValueConverter<V> second) |
<N> ConcatenatedConverter<N> |
concat(ValueConverter<N> next) |
V |
convert(Object value)
Converts the given value into the target type
V if it is not null
and if such a conversion is supported by this converter. |
public ConcatenatedConverter(ValueConverter<?> sourceConverter, ValueConverter<V> targetConverter)
public static <V> ConcatenatedConverter<V> concat(ValueConverter<?> first, ValueConverter<V> second)
public <N> ConcatenatedConverter<N> concat(ValueConverter<N> next)
public V convert(Object value) throws IllegalArgumentException
ValueConverterV if it is not null
and if such a conversion is supported by this converter. Returns null if
the specified value is null or if the value cannot be converted.convert in interface ValueConverter<V>value - the unconverted valueIllegalArgumentExceptionCopyright © 2017. All Rights Reserved.