public class CompositeValueConverter<V> extends java.lang.Object implements ValueConverter<V>
| Constructor and Description |
|---|
CompositeValueConverter() |
CompositeValueConverter(java.util.Collection<? extends ValueConverter<? extends V>> converters) |
| Modifier and Type | Method and Description |
|---|---|
protected CompositeValueConverter<V> |
add(ValueConverter<? extends V> converter) |
protected CompositeValueConverter<V> |
addAll(java.util.Collection<? extends ValueConverter<? extends V>> converters) |
V |
convert(java.lang.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 CompositeValueConverter()
public CompositeValueConverter(java.util.Collection<? extends ValueConverter<? extends V>> converters)
protected CompositeValueConverter<V> add(ValueConverter<? extends V> converter)
protected CompositeValueConverter<V> addAll(java.util.Collection<? extends ValueConverter<? extends V>> converters)
public V convert(java.lang.Object value) throws java.lang.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 valuejava.lang.IllegalArgumentExceptionCopyright © 2021. All Rights Reserved.