| Modifier and Type | Field and Description |
|---|---|
| private final InternalConverter | |
| private static final Map | |
| private static final Collection | |
| private volatile Object | |
| private volatile Class | |
| private volatile Class | |
| private volatile Type | |
| private volatile Type[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static Object | |
| private Collection | |
| private Collection | |
| private Object | |
| private Object | |
| pack-priv Object | |
| private Object | |
| private Object | |
| pack-priv Object | |
| private Object | |
| pack-priv Object | |
| private <T> T | |
| private <T> T | |
| private Collection | |
| private <T> T | |
| private Object | |
| private <T> T | |
| private Object | |
| private Object | |
| private Map | |
| private Map | |
| private Object | |
| private static Map | |
| private Map | |
| private static Map | |
| private static Object | |
| private Object | |
| private static Class | |
| private static Set | |
| private static Set | |
| private List | |
| private Map | |
| private static Set | |
| private static void | |
| private void | handleDTOField(Object obj, Field field, Set<String> handledFields, Map<K, V> result, InternalConverter converter)
|
| private static void | |
| private Object | |
| private boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private Map | |
| pack-priv static Type | |
| public <T> T | to(Class<T>
The class to convert to. cls)Implements org. Specify the target object type for the conversion as a class object. |
| public <T> T | to(TypeReference<T>
A type reference to the object being converted to. ref)Implements org. Specify the target object type as a |
| public <T> T | to(Type
A Type object to represent the target type to be converted
to. type)Implements org. Specify the target object type as a Java Reflection Type object. |
| public <T> T | to(Type
A Type object to represent the target type to be converted
to. type, InternalConverter Internal converter converter)Implements org. Invoke the conversion while passing the top-level converter. |
| private Object | |
| private <T> T |
| initialConverter | back to summary |
|---|---|
| private final InternalConverter initialConverter | |
| INTERFACE_IMPLS | back to summary |
|---|---|
| private static final Map<Class<?>, Class<?>> INTERFACE_IMPLS | |
| NO_MAP_VIEW_TYPES | back to summary |
|---|---|
| private static final Collection<Class<?>> NO_MAP_VIEW_TYPES | |
| object | back to summary |
|---|---|
| private volatile Object object | |
| sourceClass | back to summary |
|---|---|
| private volatile Class<?> sourceClass | |
| targetClass | back to summary |
|---|---|
| private volatile Class<?> targetClass | |
| targetType | back to summary |
|---|---|
| private volatile Type targetType | |
| typeArguments | back to summary |
|---|---|
| private volatile Type[] typeArguments | |
| ConvertingImpl | back to summary |
|---|---|
| pack-priv ConvertingImpl(InternalConverter converter, Object obj) | |
| addClassIfAvailable | back to summary |
|---|---|
| private static void addClassIfAvailable(String cls, Collection<Class<?>> collection) | |
| asBoxedArray | back to summary |
|---|---|
| private static Object asBoxedArray(Object obj) | |
| asCollection | back to summary |
|---|---|
| private Collection | |
| collectionView | back to summary |
|---|---|
| private Collection | |
| convertArrayToSingleValue | back to summary |
|---|---|
| private Object convertArrayToSingleValue(Class<?> cls, InternalConverter converter) | |
| convertCollectionToSingleValue | back to summary |
|---|---|
| private Object convertCollectionToSingleValue(Class<?> cls, InternalConverter converter) | |
| convertCollectionValue | back to summary |
|---|---|
| pack-priv Object convertCollectionValue(Object element, InternalConverter converter) | |
| convertMapElement | back to summary |
|---|---|
| private Object convertMapElement(Object element, int typeIdx, InternalConverter converter) | |
| convertMapEntryToSingleValue | back to summary |
|---|---|
private Object convertMapEntryToSingleValue(Class<?> cls, InternalConverter converter)
| |
| convertMapKey | back to summary |
|---|---|
| pack-priv Object convertMapKey(Object key, InternalConverter converter) | |
| convertMapToSingleValue | back to summary |
|---|---|
| private Object convertMapToSingleValue(Class<?> cls, InternalConverter converter) | |
| convertMapValue | back to summary |
|---|---|
| pack-priv Object convertMapValue(Object value, InternalConverter converter) | |
| convertToArray | back to summary |
|---|---|
private <T> T convertToArray(Class<?> componentClz, Type componentType, InternalConverter converter)
| |
| convertToCollection | back to summary |
|---|---|
private <T> T convertToCollection(InternalConverter converter)
| |
| convertToCollectionDelegate | back to summary |
|---|---|
| private Collection | |
| convertToCollectionType | back to summary |
|---|---|
private <T> T convertToCollectionType(InternalConverter converter)
| |
| convertToDictionary | back to summary |
|---|---|
private Object convertToDictionary(InternalConverter converter)
| |
| convertToDTO | back to summary |
|---|---|
private <T> T convertToDTO(Class<?> sourceCls, Class<?> targetAsCls, InternalConverter converter)
| |
| convertToInterface | back to summary |
|---|---|
private Object convertToInterface(Class<?> sourceCls, final Class<?> targetCls, InternalConverter converter)
| |
| convertToJavaBean | back to summary |
|---|---|
| private Object convertToJavaBean(Class<?> sourceCls, Class<?> targetCls, InternalConverter converter) | |
| convertToMap | back to summary |
|---|---|
private Map
| |
| convertToMapDelegate | back to summary |
|---|---|
private Map
| |
| convertToMapType | back to summary |
|---|---|
private Object convertToMapType(InternalConverter converter)
| |
| createMapFromBeanAccessors | back to summary |
|---|---|
private static Map
| |
| createMapFromDTO | back to summary |
|---|---|
private Map
| |
| createMapFromInterface | back to summary |
|---|---|
private static Map
| |
| createMapOrCollection | back to summary |
|---|---|
| private static Object createMapOrCollection(Class<?> cls, int initialSize) | |
| createProxy | back to summary |
|---|---|
| private Object createProxy(final Class<?> cls, final Map<?, ?> data, final InternalConverter converter) | |
| getConstructableType | back to summary |
|---|---|
| private static Class | |
| getInterfaces | back to summary |
|---|---|
| private static Set | |
| getInterfaces0 | back to summary |
|---|---|
| private static Set | |
| getNames | back to summary |
|---|---|
| private List | |
| getPropertiesDelegate | back to summary |
|---|---|
| private Map | |
| getSetters | back to summary |
|---|---|
| private static Set | |
| handleBeanMethod | back to summary |
|---|---|
private static void handleBeanMethod(Object obj, Method md, Set<String> invokedMethods, Map<K, V> res)
| |
| handleDTOField | back to summary |
|---|---|
private void handleDTOField(Object obj, Field field, Set<String> handledFields, Map<K, V> result, InternalConverter converter)
| |
| handleInterfaceMethod | back to summary |
|---|---|
private static void handleInterfaceMethod(Object obj, Class<?> intf, Method md, Set<String> invokedMethods, Map<K, V> res)
| |
| handleNull | back to summary |
|---|---|
| private Object handleNull(Class<?> cls, InternalConverter converter) | |
| hasGetProperties | back to summary |
|---|---|
| private boolean hasGetProperties(Class<?> cls) | |
| isCopyRequiredType | back to summary |
|---|---|
| private static boolean isCopyRequiredType(Class<?> cls) | |
| isMapType | back to summary |
|---|---|
| private static boolean isMapType(Class<?> cls, boolean asJavaBean, boolean asDTO) | |
| isMarkerAnnotation | back to summary |
|---|---|
| private static boolean isMarkerAnnotation(Class<?> annClass) | |
| isWriteableJavaBean | back to summary |
|---|---|
| private static boolean isWriteableJavaBean(Class<?> cls) | |
| mapView | back to summary |
|---|---|
| private Map | |
| reifyType | back to summary |
|---|---|
| pack-priv static Type reifyType(Type typeToReify, Class<?> ownerClass, Type[] typeArgs) | |
| to | back to summary |
|---|---|
| public <T> T to(Class<T> cls) Implements org. Doc from org. Specify the target object type for the conversion as a class object. | |
| to | back to summary |
|---|---|
| public <T> T to(TypeReference<T> ref) Implements org. Doc from org. Specify the target object type as a
List<String> result = converter.convert(Arrays.asList(1, 2, 3))
.to(new TypeReference<List<String>>() {
});
| |
| to | back to summary |
|---|---|
| public <T> T to(Type type) Implements org. Doc from org. Specify the target object type as a Java Reflection Type object. | |
| to | back to summary |
|---|---|
| public <T> T to(Type type, InternalConverter converter) Implements org. Doc from org. Invoke the conversion while passing the top-level converter. The top-level converter is needed when performing embedded conversions such as in map elements. When using a custom converter, the top converter must be used for this.
| |
| trySpecialCases | back to summary |
|---|---|
| private Object trySpecialCases(InternalConverter converter) | |
| tryStandardMethods | back to summary |
|---|---|
private <T> T tryStandardMethods()
| |