Class AbstractBuilder<R,T extends AbstractBuilder<?,T>>
- java.lang.Object
-
- com._1c.g5.aef2.standard.definitions.builders.AbstractBuilder<R,T>
-
- Type Parameters:
R
- the building object type.T
- the type of the builder.
- Direct Known Subclasses:
AbstractContainerDefinitionBuilder
,DtGranularEditorPageActionBuilder
,DtGranularEditorPageBuilder
,DtGranularEditorPageTwoColumnBuilder
,SetupDefinitionBuilder
public abstract class AbstractBuilder<R,T extends AbstractBuilder<?,T>> extends Object
The basic class for definition builders.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBuilder(Supplier<R> provider)
Initializes a builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
apply(Consumer<R> action)
Applies the given action to object to build and returns the builder instance.protected R
build()
Actually just returns the object that is building with the current state.protected T
self()
Returns the self object.
-
-
-
Method Detail
-
apply
protected T apply(Consumer<R> action)
Applies the given action to object to build and returns the builder instance.- Parameters:
action
- the action to apply.- Returns:
- the builder instance.
-
build
protected R build()
Actually just returns the object that is building with the current state.- Returns:
- the built object.
-
self
protected final T self()
Returns the self object.- Returns:
- the self object.
-
-