|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IAdaptable
This is the interface of an adaptable object. It defines only one method providing access to adapters.
IAdapter,
getAdapter(Class)| Method Summary | ||
|---|---|---|
|
getAdapter(java.lang.Class<A> adapterType)
The method parameter sets a type of the adapter, which instance we want to get. |
|
| Method Detail |
|---|
<A extends IAdapter> A getAdapter(java.lang.Class<A> adapterType)
Therefore, if it is necessary to bind several objects of the same type and an adaptable object, its adapter has to "wrap up" all these the same-type objects in it and provide access to them.
A - type of the adapter, which instance we want to get.adapterType - type of the adapter, which instance we want to get.
IAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||