Class AbstractBuilder<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractBuilder()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract T build()
      Builds the type
      protected void checkNotBlank​(java.lang.String value, java.lang.String paramName)
      Checks a value given for a parameter is not blank i.e.
      protected void checkNotEmpty​(java.lang.String value, java.lang.String paramName)
      Checks a value given for a parameter is not null/empty
      protected void checkNotNull​(java.lang.String value, java.lang.String paramName)
      Checks a value given for a parameter is not null
      • Methods inherited from class java.lang.Object

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

      • AbstractBuilder

        public AbstractBuilder()
    • Method Detail

      • checkNotNull

        protected final void checkNotNull​(java.lang.String value,
                                          java.lang.String paramName)
        Checks a value given for a parameter is not null
        Parameters:
        value - Value
        paramName - Parameter
      • checkNotEmpty

        protected final void checkNotEmpty​(java.lang.String value,
                                           java.lang.String paramName)
        Checks a value given for a parameter is not null/empty
        Parameters:
        value - Value
        paramName - Parameter
      • checkNotBlank

        protected final void checkNotBlank​(java.lang.String value,
                                           java.lang.String paramName)
        Checks a value given for a parameter is not blank i.e. not null, empty or all whitespace
        Parameters:
        value - Value
        paramName - Parameter
      • build

        public abstract T build()
        Builds the type
        Returns:
        Type instance