public interface Adaptable
| Modifier and Type | Method and Description |
|---|---|
<A> A |
adaptTo(@NonNull java.lang.Class<A> adapt)
Adapts the type to the target type or
null if adapting is not possible |
boolean |
canAdaptTo(@NonNull java.lang.Class<?> adapt)
Test if the instance can be adapted to the target
|
<A> A adaptTo(@NonNull java.lang.Class<A> adapt)
null if adapting is not possibleadapt - the type to adapt toboolean canAdaptTo(@NonNull java.lang.Class<?> adapt)
adapt - the type to adapt totrue if adaption is possible, else false