Package io.dialob.executor.model
Class ImmutableItemIdPartial
- java.lang.Object
-
- io.dialob.executor.model.ImmutableItemIdPartial
-
- All Implemented Interfaces:
ItemId,ItemIdPartial,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableItemIdPartial extends Object implements ItemIdPartial
Immutable implementation ofItemIdPartial.Use the builder to create immutable instances:
ImmutableItemIdPartial.builder(). Use the static factory method to create immutable instances:ImmutableItemIdPartial.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableItemIdPartial.BuilderBuilds instances of typeImmutableItemIdPartial.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableItemIdPartial.Builderbuilder()Creates a builder forImmutableItemIdPartial.static ImmutableItemIdPartialcopyOf(ItemIdPartial instance)Creates an immutable copy of aItemIdPartialvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableItemIdPartialthat have equal attribute values.Optional<ItemId>getParent()inthashCode()Computes a hash code from attributes:parent.static ImmutableItemIdPartialof(Optional<? extends ItemId> parent)Construct a new immutableItemIdPartialinstance.StringtoString()Prints the immutable valueItemIdPartialwith attribute values.ImmutableItemIdPartialwithParent(ItemId value)Copy the current immutable object by setting a present value for the optionalparentattribute.ImmutableItemIdPartialwithParent(Optional<? extends ItemId> optional)Copy the current immutable object by setting an optional value for theparentattribute.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.dialob.executor.model.ItemIdPartial
getValue, isPartial
-
-
-
-
Method Detail
-
withParent
public final ImmutableItemIdPartial withParent(ItemId value)
Copy the current immutable object by setting a present value for the optionalparentattribute.- Specified by:
withParentin interfaceItemId- Parameters:
value- The value for parent- Returns:
- A modified copy of
thisobject
-
withParent
public final ImmutableItemIdPartial withParent(Optional<? extends ItemId> optional)
Copy the current immutable object by setting an optional value for theparentattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Specified by:
withParentin interfaceItemId- Parameters:
optional- A value for parent- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableItemIdPartialthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:parent.
-
toString
public String toString()
Prints the immutable valueItemIdPartialwith attribute values.
-
of
public static ImmutableItemIdPartial of(Optional<? extends ItemId> parent)
Construct a new immutableItemIdPartialinstance.- Parameters:
parent- The value for theparentattribute- Returns:
- An immutable ItemIdPartial instance
-
copyOf
public static ImmutableItemIdPartial copyOf(ItemIdPartial instance)
Creates an immutable copy of aItemIdPartialvalue. 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 ItemIdPartial instance
-
builder
public static ImmutableItemIdPartial.Builder builder()
Creates a builder forImmutableItemIdPartial.ImmutableItemIdPartial.builder() .parent(io.dialob.executor.model.ItemId) // optionalparent.build();- Returns:
- A new ImmutableItemIdPartial builder
-
-