Class ImmutableLabel
java.lang.Object
io.dialob.session.engine.program.model.ImmutableLabel
- All Implemented Interfaces:
Label,ProgramNode,Serializable
@Generated(from="Label",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableLabel
extends Object
implements Label
Immutable implementation of
Label.
Use the builder to create immutable instances:
ImmutableLabel.builder().
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableLabel.Builderbuilder()Creates a builder forImmutableLabel.static ImmutableLabelCreates an immutable copy of aLabelvalue.booleanThis instance is equal to all instances ofImmutableLabelthat have equal attribute values.inthashCode()Computes a hash code from attributes:labels.toString()Prints the immutable valueLabelwith attribute values.final ImmutableLabelwithLabels(Map<String, ? extends String> entries) Copy the current immutable object by replacing thelabelsmap with the specified map.
-
Method Details
-
getLabels
-
withLabels
Copy the current immutable object by replacing thelabelsmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to replace the labels map- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofImmutableLabelthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:labels. -
toString
Prints the immutable valueLabelwith attribute values. -
copyOf
Creates an immutable copy of aLabelvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable Label instance
-
builder
Creates a builder forImmutableLabel.ImmutableLabel.builder() .putLabels|putAllLabels(String => String) //labelsmappings .build();- Returns:
- A new ImmutableLabel builder
-