Class AbstractBuilder<T>

java.lang.Object
com.github.rvesse.airline.builder.AbstractBuilder<T>
Type Parameters:
T - Type that the builder will produce
Direct Known Subclasses:
AbstractChildBuilder, CliBuilder, ParserBuilder, PromptBuilder

public abstract class AbstractBuilder<T> extends Object
Abstract base class for builders
  • Constructor Details

    • AbstractBuilder

      public AbstractBuilder()
  • Method Details

    • checkNotNull

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

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

      protected final void checkNotBlank(String value, 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