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
Abstract base class for builders
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Tbuild()Builds the typeprotected final voidcheckNotBlank(String value, String paramName) Checks a value given for a parameter is not blank i.e.protected final voidcheckNotEmpty(String value, String paramName) Checks a value given for a parameter is not null/emptyprotected final voidcheckNotNull(String value, String paramName) Checks a value given for a parameter is not null
-
Constructor Details
-
AbstractBuilder
public AbstractBuilder()
-
-
Method Details
-
checkNotNull
Checks a value given for a parameter is not null- Parameters:
value- ValueparamName- Parameter
-
checkNotEmpty
Checks a value given for a parameter is not null/empty- Parameters:
value- ValueparamName- Parameter
-
checkNotBlank
Checks a value given for a parameter is not blank i.e. not null, empty or all whitespace- Parameters:
value- ValueparamName- Parameter
-
build
Builds the type- Returns:
- Type instance
-