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.Adaptable
Kind.Adaptor
with this Adaptable
instance.addAdaptor
in interface Kind.Adaptable
public java.util.Collection<Kind.Adaptor> getAdaptors()
Kind.Adaptable
Kind.Adaptor
instances associated with the
this Adaptable
instance.getAdaptors
in interface Kind.Adaptable
public <E extends Kind.Adaptor> E getAdaptor(java.lang.Class<E> adaptorClass)
Kind.Adaptable
Kind.Adaptor
instance associated with this
Adaptable
instance of the specified type, or {code null}
if none is available..getAdaptor
in interface Kind.Adaptable