public static class

Kind.AdaptableHelper

extends Object
implements Kind.Adaptable
java.lang.Object
   ↳ com.google.gdata.data.Kind.AdaptableHelper

Class Overview

A simple helper class implementation of the Kind.Adaptable interface. Classes that need to implement Adaptable can construct an instance of this class and delegate to it.

Summary

Fields
private List<Kind.Adaptor> adaptors
Public Constructors
Kind.AdaptableHelper()
Public Methods
void addAdaptor(Kind.Adaptor adaptor)
Associates a new Kind.Adaptor with this Adaptable instance.
<E extends Kind.Adaptor> E getAdaptor(Class<E> adaptorClass)
Returns a Kind.Adaptor instance associated with this Adaptable instance of the specified type, or {code null} if none is available..
Collection<Kind.Adaptor> getAdaptors()
Returns the collection of Kind.Adaptor instances associated with the this Adaptable instance.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gdata.data.Kind.Adaptable

Fields

private List<Kind.Adaptor> adaptors

Public Constructors

public Kind.AdaptableHelper ()

Public Methods

public void addAdaptor (Kind.Adaptor adaptor)

Associates a new Kind.Adaptor with this Adaptable instance.

Parameters
adaptor

public E getAdaptor (Class<E> adaptorClass)

Returns a Kind.Adaptor instance associated with this Adaptable instance of the specified type, or {code null} if none is available..

Parameters
adaptorClass

public Collection<Kind.Adaptor> getAdaptors ()

Returns the collection of Kind.Adaptor instances associated with the this Adaptable instance.