Module com.github.rvesse.airline
Class AbstractChildBuilder<T,TParent,TBuilder extends AbstractBuilder<TParent>>
- java.lang.Object
-
- com.github.rvesse.airline.builder.AbstractBuilder<T>
-
- com.github.rvesse.airline.builder.AbstractChildBuilder<T,TParent,TBuilder>
-
- Type Parameters:
T
- Child type being builtTParent
- Parent type being builtTBuilder
- Parent builder type
- Direct Known Subclasses:
AliasBuilder
,GroupBuilder
,PromptFormatBuilder
,UserAliasSourceBuilder
public abstract class AbstractChildBuilder<T,TParent,TBuilder extends AbstractBuilder<TParent>> extends AbstractBuilder<T>
A builder that is a child of another builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractChildBuilder(TBuilder parentBuilder)
Creates a child builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TBuilder
parent()
Gets the parent builder-
Methods inherited from class com.github.rvesse.airline.builder.AbstractBuilder
build, checkNotBlank, checkNotEmpty, checkNotNull
-
-
-
-
Field Detail
-
parent
private final TBuilder extends AbstractBuilder<TParent> parent
-
-
Constructor Detail
-
AbstractChildBuilder
protected AbstractChildBuilder(TBuilder parentBuilder)
Creates a child builder- Parameters:
parentBuilder
- Parent builder
-
-
Method Detail
-
parent
public TBuilder parent()
Gets the parent builder- Returns:
- Parent builder
-
-