Class ImmutableItemIdPartial
java.lang.Object
io.dialob.session.engine.session.model.ImmutableItemIdPartial
- All Implemented Interfaces:
ItemId,ItemIdPartial,Serializable
@Generated(from="ItemIdPartial",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableItemIdPartial
extends Object
implements ItemIdPartial
Immutable implementation of
ItemIdPartial.
Use the builder to create immutable instances:
ImmutableItemIdPartial.builder().
Use the static factory method to create immutable instances:
ImmutableItemIdPartial.of().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableItemIdPartial. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableItemIdPartial.static ImmutableItemIdPartialcopyOf(ItemIdPartial instance) Creates an immutable copy of aItemIdPartialvalue.booleanThis instance is equal to all instances ofImmutableItemIdPartialthat have equal attribute values.inthashCode()Computes a hash code from attributes:parent.static ImmutableItemIdPartialConstruct a new immutableItemIdPartialinstance.toString()Prints the immutable valueItemIdPartialwith attribute values.final ImmutableItemIdPartialwithParent(ItemId value) Copy the current immutable object by setting a present value for the optionalparentattribute.final 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, waitMethods inherited from interface io.dialob.session.engine.session.model.ItemIdPartial
getValue, isPartial
-
Method Details
-
getParent
-
withParent
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 or
thisif not changed
-
withParent
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- An optional value for parent- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofImmutableItemIdPartialthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:parent. -
toString
Prints the immutable valueItemIdPartialwith attribute values. -
of
Construct a new immutableItemIdPartialinstance.- Parameters:
parent- The value for theparentattribute- Returns:
- An immutable ItemIdPartial instance
-
copyOf
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
Creates a builder forImmutableItemIdPartial.ImmutableItemIdPartial.builder() .parent(Optional<io.dialob.session.engine.session.model.ItemId>) // optionalparent.build();- Returns:
- A new ImmutableItemIdPartial builder
-