Package io.dialob.program.model
Class ImmutableValueSet.Entry.Builder
- java.lang.Object
-
- io.dialob.program.model.ImmutableValueSet.Entry.Builder
-
- Enclosing class:
- ImmutableValueSet.Entry
@NotThreadSafe public static final class ImmutableValueSet.Entry.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableValueSet.Entrybuild()Builds a newEntry.ImmutableValueSet.Entry.Builderfrom(ValueSet.Entry instance)Fill a builder with attribute values from the providedEntryinstance.ImmutableValueSet.Entry.Builderkey(String key)Initializes the value for thekeyattribute.ImmutableValueSet.Entry.Builderlabel(Expression label)Initializes the value for thelabelattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableValueSet.Entry.Builder from(ValueSet.Entry instance)
Fill a builder with attribute values from the providedEntryinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
key
@CanIgnoreReturnValue public final ImmutableValueSet.Entry.Builder key(String key)
Initializes the value for thekeyattribute.- Parameters:
key- The value for key- Returns:
thisbuilder for use in a chained invocation
-
label
@CanIgnoreReturnValue public final ImmutableValueSet.Entry.Builder label(Expression label)
Initializes the value for thelabelattribute.- Parameters:
label- The value for label- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableValueSet.Entry build()
Builds a newEntry.- Returns:
- An immutable instance of Entry
- Throws:
IllegalStateException- if any required attributes are missing
-
-