S - the source typeT - the target typepublic interface AdapterProvider<S,T>
| Modifier and Type | Method and Description |
|---|---|
T |
adapt(S sourceObject,
@NonNull java.lang.Class<T> targetType,
AdapterService.ValueAccess... valueAccess)
Adapt the source object to the target type
|
boolean |
canAdapt(S sourceObject,
@NonNull java.lang.Class<T> targetType)
Check if the instance can really be adapted
|
@NonNull java.lang.Class<S> |
getSourceType() |
@NonNull java.lang.Class<T> |
getTargetType() |
@NonNull java.lang.Class<S> getSourceType()
@NonNull java.lang.Class<T> getTargetType()
boolean canAdapt(S sourceObject, @NonNull java.lang.Class<T> targetType)
sourceObject - the source objecttargetType - the target typetrue if adaption is possible, else falseT adapt(S sourceObject, @NonNull java.lang.Class<T> targetType, AdapterService.ValueAccess... valueAccess)
sourceObject - the source objecttargetType - the target typevalueAccess - the value accessnull if adaption was not possible