Class ImmutableItemIndex.Builder
java.lang.Object
io.dialob.session.engine.session.model.ImmutableItemIndex.Builder
- Enclosing class:
ImmutableItemIndex
@Generated(from="ItemIndex",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableItemIndex.Builder
extends Object
Builds instances of type
ImmutableItemIndex.
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 TypeMethodDescriptionbuild()Builds a newImmutableItemIndex.Fill a builder with attribute values from the providedio.dialob.session.engine.session.model.ItemIdinstance.Fill a builder with attribute values from the providedio.dialob.session.engine.session.model.ItemIndexinstance.Initializes the value for theindexattribute.Initializes the optional valueparentto parent.Initializes the optional valueparentto parent.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.dialob.session.engine.session.model.ItemIndexinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.dialob.session.engine.session.model.ItemIdinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
parent
Initializes the optional valueparentto parent.- Parameters:
parent- The value for parent- Returns:
thisbuilder for chained invocation
-
parent
@CanIgnoreReturnValue public final ImmutableItemIndex.Builder parent(Optional<? extends ItemId> parent) Initializes the optional valueparentto parent.- Parameters:
parent- The value for parent- Returns:
thisbuilder for use in a chained invocation
-
index
Initializes the value for theindexattribute.- Parameters:
index- The value for index- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableItemIndex.- Returns:
- An immutable instance of ItemIndex
- Throws:
IllegalStateException- if any required attributes are missing
-