public interface AdapterService
| Modifier and Type | Interface and Description |
|---|---|
static interface |
AdapterService.ValueAccess
Provides access to values
|
| Modifier and Type | Method and Description |
|---|---|
<A> A |
adapt(@Nullable java.lang.Object sourceObject,
@NonNull java.lang.Class<A> targetType,
AdapterService.ValueAccess... valueAccesses)
Adapt the source object to the target type
|
boolean |
canAdapt(@Nullable java.lang.Object sourceObject,
@NonNull java.lang.Class<?> targetType)
Check if the instance can be adapted to the target type
|
boolean canAdapt(@Nullable java.lang.Object sourceObject,
@NonNull java.lang.Class<?> targetType)
sourceObject - the source objecttargetType - the target typetrue if object can be adapted, else false<A> A adapt(@Nullable java.lang.Object sourceObject,
@NonNull java.lang.Class<A> targetType,
AdapterService.ValueAccess... valueAccesses)
sourceObject - the source objecttargetType - the target typevalueAccesses - value accessnull if adaption was not possible