|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Adaptable
Implemented by a class to support different adapters to its instances.
Method Summary | ||
---|---|---|
|
as(Class<? extends T> type) Returns the adapter of the requested type. |
|
boolean |
isAdaptable(Class<?> type) Checks if the instance provides an adapter for the desired type. |
Method Detail |
---|
<T> T as(Class<? extends T> type) throws AdaptableException
T
- the type of the requested adapter.
type
- the type of the requested adapter.
AdaptableException
- if this instance does not provide an adapter of the requested type.
boolean isAdaptable(Class<?> type)
type
- the type of the requested adapter.
true
if the instance provides the requested adapter,
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |