public class OverCaringTypeConverter<T,S> extends java.lang.Object implements FragileTypeConverter<T,S>
Constructor and Description |
---|
OverCaringTypeConverter(java.util.function.Function<S,T> typeConverter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
T |
convert(S object)
Convert an object to another type.
|
public T convert(S object) throws TypeConverterException
convert
in interface FragileTypeConverter<T,S>
object
- object to convertTypeConverterException
- if an exception was thrown during conversion