class FunctioningImpl extends AbstractSpecifying<Functioning> implements Functioning
Modifier and Type | Field and Description |
---|---|
(package private) InternalConverter |
converter |
defaultValue, hasDefault, keysIgnoreCase, liveView, sourceAsClass, sourceAsDTO, sourceAsJavaBean, targetAsClass, targetAsDTO, targetAsJavaBean
Constructor and Description |
---|
FunctioningImpl(InternalConverter converterImpl) |
Modifier and Type | Method and Description |
---|---|
(package private) InternalConverting |
applyModifiers(InternalConverting ic) |
<T> Function<java.lang.Object,T> |
to(java.lang.Class<T> cls)
Specify the target object type for the conversion as a class object.
|
<T> Function<java.lang.Object,T> |
to(java.lang.reflect.Type type)
Specify the target object type as a Java Reflection Type object.
|
<T> Function<java.lang.Object,T> |
to(TypeReference<T> ref)
Specify the target object type as a
TypeReference . |
defaultValue, keysIgnoreCase, sourceAs, sourceAsBean, sourceAsDTO, targetAs, targetAsBean, targetAsDTO, view
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
defaultValue, keysIgnoreCase, sourceAs, sourceAsBean, sourceAsDTO, targetAs, targetAsBean, targetAsDTO, view
InternalConverter converter
FunctioningImpl(InternalConverter converterImpl)
public <T> Function<java.lang.Object,T> to(java.lang.Class<T> cls)
Functioning
to
in interface Functioning
cls
- The class to convert to.public <T> Function<java.lang.Object,T> to(TypeReference<T> ref)
Functioning
TypeReference
. If the target
class carries generics information a TypeReference should be used as this
preserves the generic information whereas a Class object has this
information erased. Example use:
List<String> result = converter.function() .to(new TypeReference<List<String>>() {});
to
in interface Functioning
ref
- A type reference to the object being converted to.public <T> Function<java.lang.Object,T> to(java.lang.reflect.Type type)
Functioning
to
in interface Functioning
type
- A Type object to represent the target type to be converted
to.InternalConverting applyModifiers(InternalConverting ic)