Package io.dialob.executor.command.event
Class ImmutableProtoTypeItemsAddedEventsProvider
- java.lang.Object
-
- io.dialob.executor.command.event.ImmutableProtoTypeItemsAddedEventsProvider
-
- All Implemented Interfaces:
ProtoTypeItemsAddedEventsProvider,Triggers.EventsProvider<ItemStates>,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableProtoTypeItemsAddedEventsProvider extends Object implements ProtoTypeItemsAddedEventsProvider
Immutable implementation ofProtoTypeItemsAddedEventsProvider.Use the builder to create immutable instances:
ImmutableProtoTypeItemsAddedEventsProvider.builder(). Use the static factory method to create immutable instances:ImmutableProtoTypeItemsAddedEventsProvider.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableProtoTypeItemsAddedEventsProvider.BuilderBuilds instances of typeImmutableProtoTypeItemsAddedEventsProvider.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableProtoTypeItemsAddedEventsProvider.Builderbuilder()Creates a builder forImmutableProtoTypeItemsAddedEventsProvider.static ImmutableProtoTypeItemsAddedEventsProvidercopyOf(ProtoTypeItemsAddedEventsProvider instance)Creates an immutable copy of aProtoTypeItemsAddedEventsProvidervalue.booleanequals(Object another)This instance is equal to all instances ofImmutableProtoTypeItemsAddedEventsProviderthat have equal attribute values.com.google.common.collect.ImmutableList<ItemId>getItemPrototypeIds()inthashCode()Computes a hash code from attributes:itemPrototypeIds.static ImmutableProtoTypeItemsAddedEventsProviderof(Iterable<? extends ItemId> itemPrototypeIds)Construct a new immutableProtoTypeItemsAddedEventsProviderinstance.static ImmutableProtoTypeItemsAddedEventsProviderof(List<ItemId> itemPrototypeIds)Construct a new immutableProtoTypeItemsAddedEventsProviderinstance.StringtoString()Prints the immutable valueProtoTypeItemsAddedEventsProviderwith attribute values.ImmutableProtoTypeItemsAddedEventsProviderwithItemPrototypeIds(ItemId... elements)Copy the current immutable object with elements that replace the content ofitemPrototypeIds.ImmutableProtoTypeItemsAddedEventsProviderwithItemPrototypeIds(Iterable<? extends ItemId> elements)Copy the current immutable object with elements that replace the content ofitemPrototypeIds.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.dialob.executor.command.event.ProtoTypeItemsAddedEventsProvider
createEvents
-
-
-
-
Method Detail
-
getItemPrototypeIds
public com.google.common.collect.ImmutableList<ItemId> getItemPrototypeIds()
- Specified by:
getItemPrototypeIdsin interfaceProtoTypeItemsAddedEventsProvider- Returns:
- The value of the
itemPrototypeIdsattribute
-
withItemPrototypeIds
public final ImmutableProtoTypeItemsAddedEventsProvider withItemPrototypeIds(ItemId... elements)
Copy the current immutable object with elements that replace the content ofitemPrototypeIds.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withItemPrototypeIds
public final ImmutableProtoTypeItemsAddedEventsProvider withItemPrototypeIds(Iterable<? extends ItemId> elements)
Copy the current immutable object with elements that replace the content ofitemPrototypeIds. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of itemPrototypeIds elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableProtoTypeItemsAddedEventsProviderthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:itemPrototypeIds.
-
toString
public String toString()
Prints the immutable valueProtoTypeItemsAddedEventsProviderwith attribute values.
-
of
public static ImmutableProtoTypeItemsAddedEventsProvider of(List<ItemId> itemPrototypeIds)
Construct a new immutableProtoTypeItemsAddedEventsProviderinstance.- Parameters:
itemPrototypeIds- The value for theitemPrototypeIdsattribute- Returns:
- An immutable ProtoTypeItemsAddedEventsProvider instance
-
of
public static ImmutableProtoTypeItemsAddedEventsProvider of(Iterable<? extends ItemId> itemPrototypeIds)
Construct a new immutableProtoTypeItemsAddedEventsProviderinstance.- Parameters:
itemPrototypeIds- The value for theitemPrototypeIdsattribute- Returns:
- An immutable ProtoTypeItemsAddedEventsProvider instance
-
copyOf
public static ImmutableProtoTypeItemsAddedEventsProvider copyOf(ProtoTypeItemsAddedEventsProvider instance)
Creates an immutable copy of aProtoTypeItemsAddedEventsProvidervalue. 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 ProtoTypeItemsAddedEventsProvider instance
-
builder
public static ImmutableProtoTypeItemsAddedEventsProvider.Builder builder()
Creates a builder forImmutableProtoTypeItemsAddedEventsProvider.ImmutableProtoTypeItemsAddedEventsProvider.builder() .addItemPrototypeIds|addAllItemPrototypeIds(io.dialob.executor.model.ItemId) //itemPrototypeIdselements .build();- Returns:
- A new ImmutableProtoTypeItemsAddedEventsProvider builder
-
-