Package io.dialob.executor.model
Class ImmutableValueSetId
- java.lang.Object
-
- io.dialob.executor.model.ImmutableValueSetId
-
- All Implemented Interfaces:
ItemId,ValueSetId,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableValueSetId extends Object implements ValueSetId
Immutable implementation ofValueSetId.Use the builder to create immutable instances:
ImmutableValueSetId.builder(). Use the static factory method to create immutable instances:ImmutableValueSetId.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableValueSetId.BuilderBuilds instances of typeImmutableValueSetId.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableValueSetId.Builderbuilder()Creates a builder forImmutableValueSetId.static ImmutableValueSetIdcopyOf(ValueSetId instance)Creates an immutable copy of aValueSetIdvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableValueSetIdthat have equal attribute values.StringgetValueSetId()inthashCode()Computes a hash code from attributes:valueSetId.static ImmutableValueSetIdof(String valueSetId)Construct a new immutableValueSetIdinstance.StringtoString()Prints the immutable valueValueSetIdwith attribute values.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, wait
-
Methods inherited from interface io.dialob.executor.model.ItemId
isPartial, withParent, withParent
-
Methods inherited from interface io.dialob.executor.model.ValueSetId
getParent, getValue
-
-
-
-
Method Detail
-
getValueSetId
public String getValueSetId()
- Specified by:
getValueSetIdin interfaceValueSetId- Returns:
- The value of the
valueSetIdattribute
-
withValueSetId
public final ImmutableValueSetId withValueSetId(String value)
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 of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableValueSetIdthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:valueSetId.
-
toString
public String toString()
Prints the immutable valueValueSetIdwith attribute values.
-
of
public static ImmutableValueSetId of(String valueSetId)
Construct a new immutableValueSetIdinstance.- Parameters:
valueSetId- The value for thevalueSetIdattribute- Returns:
- An immutable ValueSetId instance
-
copyOf
public static ImmutableValueSetId copyOf(ValueSetId instance)
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
public static ImmutableValueSetId.Builder builder()
Creates a builder forImmutableValueSetId.ImmutableValueSetId.builder() .valueSetId(String) // requiredvalueSetId.build();- Returns:
- A new ImmutableValueSetId builder
-
-