Package org.osgi.util.converter
Class FunctioningImpl
- All Implemented Interfaces:
Functioning
,Specifying<Functioning>
-
Field Summary
FieldsFields inherited from class org.osgi.util.converter.AbstractSpecifying
defaultValue, hasDefault, keysIgnoreCase, liveView, sourceAsClass, sourceAsDTO, sourceAsJavaBean, targetAsClass, targetAsDTO, targetAsJavaBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) InternalConverting
Specify the target object type for the conversion as a class object.Specify the target object type as a Java Reflection Type object.to
(TypeReference<T> ref) Specify the target object type as aTypeReference
.Methods inherited from class org.osgi.util.converter.AbstractSpecifying
defaultValue, keysIgnoreCase, sourceAs, sourceAsBean, sourceAsDTO, targetAs, targetAsBean, targetAsDTO, view
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.osgi.util.converter.Specifying
defaultValue, keysIgnoreCase, sourceAs, sourceAsBean, sourceAsDTO, targetAs, targetAsBean, targetAsDTO, view
-
Field Details
-
converter
InternalConverter converter
-
-
Constructor Details
-
FunctioningImpl
FunctioningImpl(InternalConverter converterImpl)
-
-
Method Details
-
to
Description copied from interface:Functioning
Specify the target object type for the conversion as a class object.- Specified by:
to
in interfaceFunctioning
- Parameters:
cls
- The class to convert to.- Returns:
- A function that can perform the conversion.
-
to
Description copied from interface:Functioning
Specify the target object type as aTypeReference
. 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>>() {});
- Specified by:
to
in interfaceFunctioning
- Parameters:
ref
- A type reference to the object being converted to.- Returns:
- A function that can perform the conversion.
-
to
Description copied from interface:Functioning
Specify the target object type as a Java Reflection Type object.- Specified by:
to
in interfaceFunctioning
- Parameters:
type
- A Type object to represent the target type to be converted to.- Returns:
- A function that can perform the conversion.
-
applyModifiers
-