public static class Kind.AdaptableHelper extends java.lang.Object implements Kind.Adaptable
Kind.Adaptable interface.
Classes that need to implement Adaptable can construct an
instance of this class and delegate to it.| Constructor and Description |
|---|
Kind.AdaptableHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdaptor(Kind.Adaptor adaptor)
Associates a new
Kind.Adaptor with this Adaptable instance. |
<E extends Kind.Adaptor> |
getAdaptor(java.lang.Class<E> adaptorClass)
Returns a
Kind.Adaptor instance associated with this
Adaptable instance of the specified type, or {code null}
if none is available.. |
java.util.Collection<Kind.Adaptor> |
getAdaptors()
Returns the collection of
Kind.Adaptor instances associated with the
this Adaptable instance. |
public void addAdaptor(Kind.Adaptor adaptor)
Kind.AdaptableKind.Adaptor with this Adaptable instance.addAdaptor in interface Kind.Adaptablepublic java.util.Collection<Kind.Adaptor> getAdaptors()
Kind.AdaptableKind.Adaptor instances associated with the
this Adaptable instance.getAdaptors in interface Kind.Adaptablepublic <E extends Kind.Adaptor> E getAdaptor(java.lang.Class<E> adaptorClass)
Kind.AdaptableKind.Adaptor instance associated with this
Adaptable instance of the specified type, or {code null}
if none is available..getAdaptor in interface Kind.Adaptable