| Package | Description |
|---|---|
| com.hammurapi.convert |
| Modifier and Type | Method and Description |
|---|---|
static <S,T> T |
ConvertingService.convert(S source,
Class<T> targetType)
Converts source to target type using Java 6 service loading for AtomicConverterBundle, AtomicConverter, and Converter services
If no converter is found, this method performs converter discovery through
constructors if target type is a class and through duck conversion if target
type is an interface.
|
static <S,T> T |
ConvertingService.convert(S source,
Class<T> targetType,
ClassLoader classLoader)
Converts source to target type using Java 6 service loading for AtomicConverterBundle, AtomicConverter, and Converter services
If no converter is found, this method performs converter discovery through
constructors if target type is a class and through duck conversion if target
type is an interface.
|
static <S,T> T |
ConvertingService.convert(S source,
Class<T> targetType,
Context context)
Converts source to target type using Java 6 service loading for AtomicConverterBundle, AtomicConverter, and Converter services
If no converter is found, this method performs converter discovery through
constructors if target type is a class and through duck conversion if target
type is an interface.
|
<S,T> T |
Converter.convert(S source,
Class<T> targetType,
Context context)
Converts object to requested target type.
|
static <S,T> T |
ConvertingService.convert(S source,
Class<T> targetType,
Context context,
ClassLoader classLoader)
Converts source to target type using Java 6 service loading for AtomicConverterBundle, AtomicConverter, and Converter services
If no converter is found, this method performs converter discovery through
constructors if target type is a class and through duck conversion if target
type is an interface.
|
<S,T> T |
SingletonConverterPart.convert(S source,
Class<T> targetType,
Context context,
Converter master) |
<S,T> T |
FutureConverterPart.convert(S source,
Class<T> targetType,
Context context,
Converter master) |
<S,T> T |
ConverterPart.convert(S source,
Class<T> targetType,
Context context,
Converter master)
Converts object to requested target type.
|
<S,T> T |
CallableConverterPart.convert(S source,
Class<T> targetType,
Context context,
Converter master) |