Package io.digiexpress.eveli.envir.api
Class ImmutableEveliSources.Builder
java.lang.Object
io.digiexpress.eveli.envir.api.ImmutableEveliSources.Builder
- Enclosing class:
- ImmutableEveliSources
Builds instances of type
ImmutableEveliSources.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllDialob(Iterable<? extends io.dialob.api.form.Form> elements) Adds elements todialoblist.addDialob(io.dialob.api.form.Form element) Adds one element todialoblist.addDialob(io.dialob.api.form.Form... elements) Adds elements todialoblist.build()Builds a newImmutableEveliSources.Sets or replaces all elements fordialoblist.from(EveliEnvirClient.EveliSources instance) Fill a builder with attribute values from the providedEveliSourcesinstance.stencil(StencilComposer.SiteState stencil) Initializes the value for thestencilattribute.Initializes the value for thewrenchattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableEveliSources.Builder from(EveliEnvirClient.EveliSources instance) Fill a builder with attribute values from the providedEveliSourcesinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
stencil
@CanIgnoreReturnValue public final ImmutableEveliSources.Builder stencil(StencilComposer.SiteState stencil) Initializes the value for thestencilattribute.- Parameters:
stencil- The value for stencil- Returns:
thisbuilder for use in a chained invocation
-
wrench
Initializes the value for thewrenchattribute.- Parameters:
wrench- The value for wrench- Returns:
thisbuilder for use in a chained invocation
-
addDialob
@CanIgnoreReturnValue public final ImmutableEveliSources.Builder addDialob(io.dialob.api.form.Form element) Adds one element todialoblist.- Parameters:
element- A dialob element- Returns:
thisbuilder for use in a chained invocation
-
addDialob
@CanIgnoreReturnValue public final ImmutableEveliSources.Builder addDialob(io.dialob.api.form.Form... elements) Adds elements todialoblist.- Parameters:
elements- An array of dialob elements- Returns:
thisbuilder for use in a chained invocation
-
dialob
@CanIgnoreReturnValue public final ImmutableEveliSources.Builder dialob(Iterable<? extends io.dialob.api.form.Form> elements) Sets or replaces all elements fordialoblist.- Parameters:
elements- An iterable of dialob elements- Returns:
thisbuilder for use in a chained invocation
-
addAllDialob
@CanIgnoreReturnValue public final ImmutableEveliSources.Builder addAllDialob(Iterable<? extends io.dialob.api.form.Form> elements) Adds elements todialoblist.- Parameters:
elements- An iterable of dialob elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableEveliSources.- Returns:
- An immutable instance of EveliSources
- Throws:
IllegalStateException- if any required attributes are missing
-