Class BaseParams.BaseBuilder<T extends BaseParams,​B extends BaseParams.BaseBuilder>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected T mQueryParams  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseBuilder()
      Default constructor.
      protected BaseBuilder​(T parameter)
      Create a parameter builder class using an existing parameter
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      T build()  
      protected abstract T createQueryParams()
      Instantiates the implementation class
      B setId​(java.lang.String id)
      Set the module id or module internal name
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mQueryParams

        protected T extends BaseParams mQueryParams
    • Constructor Detail

      • BaseBuilder

        protected BaseBuilder()
        Default constructor. Instantiates the query parameters via createQueryParams()
      • BaseBuilder

        protected BaseBuilder​(T parameter)
        Create a parameter builder class using an existing parameter
        Parameters:
        parameter - the existing parameter you want to reuse
    • Method Detail

      • build

        public T build()
        Returns:
        the built parameter class
      • createQueryParams

        protected abstract T createQueryParams()
        Instantiates the implementation class
        Returns:
        implementation class of BaseParams.BaseBuilder
      • setId

        public B setId​(java.lang.String id)
        Set the module id or module internal name
        Parameters:
        id - the id or internal name of the module
        Returns:
        the current builder