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 T
build()
Builds the typeprotected final void
checkNotBlank
(String value, String paramName) Checks a value given for a parameter is not blank i.e.protected final void
checkNotEmpty
(String value, String paramName) Checks a value given for a parameter is not null/emptyprotected final void
checkNotNull
(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
-