Class ApiCollection<E extends Enum<E> & ApiName,​T>


  • public abstract class ApiCollection<E extends Enum<E> & ApiName,​T>
    extends Object
    Base class for a collection of ApiMethods. Meant to be extended by Components to create the api name map.
    • Constructor Detail

      • ApiCollection

        public ApiCollection()
    • Method Detail

      • getApiNames

        public final Set<String> getApiNames()
        Returns a list of API name strings.
        Returns:
        list of API names.
      • getApiName

        public final E getApiName​(Class<? extends ApiMethod> apiMethod)
      • getEndpointConfiguration

        public abstract T getEndpointConfiguration​(E apiName)
        Creates an endpoint configuration for a particular API
        Parameters:
        apiName - name of the API.
        Returns:
        Endpoint configuration object for the API.
      • setApiMethods

        protected final void setApiMethods​(Map<Class<? extends ApiMethod>,​E> apiMethods)