Package io.dialob.executor.command.event
Class ImmutableItemRemovedEvent
- java.lang.Object
-
- io.dialob.executor.command.event.ImmutableItemRemovedEvent
-
- All Implemented Interfaces:
Event,ItemRemovedEvent,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableItemRemovedEvent extends Object implements ItemRemovedEvent
Immutable implementation ofItemRemovedEvent.Use the builder to create immutable instances:
ImmutableItemRemovedEvent.builder(). Use the static factory method to create immutable instances:ImmutableItemRemovedEvent.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableItemRemovedEvent.BuilderBuilds instances of typeImmutableItemRemovedEvent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableItemRemovedEvent.Builderbuilder()Creates a builder forImmutableItemRemovedEvent.static ImmutableItemRemovedEventcopyOf(ItemRemovedEvent instance)Creates an immutable copy of aItemRemovedEventvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableItemRemovedEventthat have equal attribute values.ItemIdgetRemoveItemId()inthashCode()Computes a hash code from attributes:removeItemId.static ImmutableItemRemovedEventof(ItemId removeItemId)Construct a new immutableItemRemovedEventinstance.StringtoString()Prints the immutable valueItemRemovedEventwith attribute values.ImmutableItemRemovedEventwithRemoveItemId(ItemId value)Copy the current immutable object by setting a value for theremoveItemIdattribute.
-
-
-
Method Detail
-
getRemoveItemId
public ItemId getRemoveItemId()
- Specified by:
getRemoveItemIdin interfaceItemRemovedEvent- Returns:
- The value of the
removeItemIdattribute
-
withRemoveItemId
public final ImmutableItemRemovedEvent withRemoveItemId(ItemId value)
Copy the current immutable object by setting a value for theremoveItemIdattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for removeItemId- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableItemRemovedEventthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:removeItemId.
-
toString
public String toString()
Prints the immutable valueItemRemovedEventwith attribute values.
-
of
public static ImmutableItemRemovedEvent of(ItemId removeItemId)
Construct a new immutableItemRemovedEventinstance.- Parameters:
removeItemId- The value for theremoveItemIdattribute- Returns:
- An immutable ItemRemovedEvent instance
-
copyOf
public static ImmutableItemRemovedEvent copyOf(ItemRemovedEvent instance)
Creates an immutable copy of aItemRemovedEventvalue. 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 ItemRemovedEvent instance
-
builder
public static ImmutableItemRemovedEvent.Builder builder()
Creates a builder forImmutableItemRemovedEvent.ImmutableItemRemovedEvent.builder() .removeItemId(io.dialob.executor.model.ItemId) // requiredremoveItemId.build();- Returns:
- A new ImmutableItemRemovedEvent builder
-
-