class CustomConverterImpl extends java.lang.Object implements InternalConverter
Modifier and Type | Class and Description |
---|---|
private class |
CustomConverterImpl.ConvertingWrapper |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<ConverterFunction> |
allRules |
private InternalConverter |
delegate |
(package private) java.util.List<ConverterFunction> |
errorHandlers |
(package private) java.util.Map<java.lang.reflect.Type,java.util.List<ConverterFunction>> |
typeRules |
Constructor and Description |
---|
CustomConverterImpl(InternalConverter converter,
java.util.Map<java.lang.reflect.Type,java.util.List<ConverterFunction>> rules,
java.util.List<ConverterFunction> catchAllRules,
java.util.List<ConverterFunction> errHandlers) |
Modifier and Type | Method and Description |
---|---|
InternalConverting |
convert(java.lang.Object obj)
Start a conversion for the given object.
|
Functioning |
function()
Start defining a function that can perform given conversions.
|
ConverterBuilder |
newConverterBuilder()
Obtain a builder to create a modified converter based on this converter.
|
private final InternalConverter delegate
final java.util.Map<java.lang.reflect.Type,java.util.List<ConverterFunction>> typeRules
final java.util.List<ConverterFunction> allRules
final java.util.List<ConverterFunction> errorHandlers
CustomConverterImpl(InternalConverter converter, java.util.Map<java.lang.reflect.Type,java.util.List<ConverterFunction>> rules, java.util.List<ConverterFunction> catchAllRules, java.util.List<ConverterFunction> errHandlers)
public InternalConverting convert(java.lang.Object obj)
Converter
convert
in interface Converter
convert
in interface InternalConverter
obj
- The object that should be converted.Converting
object to complete the conversion.public Functioning function()
Converter
function
in interface Converter
Functioning
object to complete the definition.public ConverterBuilder newConverterBuilder()
Converter
ConverterBuilder
interface.newConverterBuilder
in interface Converter