Class ImmutableValueSetId
java.lang.Object
io.dialob.session.engine.session.model.ImmutableValueSetId
- All Implemented Interfaces:
ItemId,ValueSetId,Serializable
@Generated(from="ValueSetId",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableValueSetId
extends Object
implements ValueSetId
Immutable implementation of
ValueSetId.
Use the builder to create immutable instances:
ImmutableValueSetId.builder().
Use the static factory method to create immutable instances:
ImmutableValueSetId.of().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableValueSetId. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableValueSetId.Builderbuilder()Creates a builder forImmutableValueSetId.static ImmutableValueSetIdcopyOf(ValueSetId instance) Creates an immutable copy of aValueSetIdvalue.booleanThis instance is equal to all instances ofImmutableValueSetIdthat have equal attribute values.inthashCode()Computes a hash code from attributes:valueSetId.static ImmutableValueSetIdConstruct a new immutableValueSetIdinstance.toString()Prints the immutable valueValueSetIdwith attribute values.final ImmutableValueSetIdwithValueSetId(String value) Copy the current immutable object by setting a value for thevalueSetIdattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.dialob.session.engine.session.model.ItemId
isPartial, withParent, withParentMethods inherited from interface io.dialob.session.engine.session.model.ValueSetId
getParent, getValue
-
Method Details
-
getValueSetId
- Specified by:
getValueSetIdin interfaceValueSetId- Returns:
- The value of the
valueSetIdattribute
-
withValueSetId
Copy the current immutable object by setting a value for thevalueSetIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for valueSetId- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutableValueSetIdthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:valueSetId. -
toString
Prints the immutable valueValueSetIdwith attribute values. -
of
Construct a new immutableValueSetIdinstance.- Parameters:
valueSetId- The value for thevalueSetIdattribute- Returns:
- An immutable ValueSetId instance
-
copyOf
Creates an immutable copy of aValueSetIdvalue. 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 ValueSetId instance
-
builder
Creates a builder forImmutableValueSetId.ImmutableValueSetId.builder() .valueSetId(String) // requiredvalueSetId.build();- Returns:
- A new ImmutableValueSetId builder
-