Class ImmutableValueSetUpdatedEvent
java.lang.Object
io.dialob.session.engine.session.command.event.ImmutableValueSetUpdatedEvent
- All Implemented Interfaces:
Event,ValueSetEvent,ValueSetUpdatedEvent,Serializable
@Generated(from="ValueSetUpdatedEvent",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableValueSetUpdatedEvent
extends Object
implements ValueSetUpdatedEvent
Immutable implementation of
ValueSetUpdatedEvent.
Use the builder to create immutable instances:
ImmutableValueSetUpdatedEvent.builder().
Use the static factory method to create immutable instances:
ImmutableValueSetUpdatedEvent.of().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableValueSetUpdatedEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableValueSetUpdatedEvent.copyOf(ValueSetUpdatedEvent instance) Creates an immutable copy of aValueSetUpdatedEventvalue.booleanThis instance is equal to all instances ofImmutableValueSetUpdatedEventthat have equal attribute values.inthashCode()Computes a hash code from attributes:valueSetId.of(ValueSetId valueSetId) Construct a new immutableValueSetUpdatedEventinstance.toString()Prints the immutable valueValueSetUpdatedEventwith attribute values.withValueSetId(ValueSetId value) Copy the current immutable object by setting a value for thevalueSetIdattribute.
-
Method Details
-
getValueSetId
- Specified by:
getValueSetIdin interfaceValueSetEvent- Returns:
- The value of the
valueSetIdattribute
-
withValueSetId
Copy the current immutable object by setting a value for thevalueSetIdattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for valueSetId- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutableValueSetUpdatedEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:valueSetId. -
toString
Prints the immutable valueValueSetUpdatedEventwith attribute values. -
of
Construct a new immutableValueSetUpdatedEventinstance.- Parameters:
valueSetId- The value for thevalueSetIdattribute- Returns:
- An immutable ValueSetUpdatedEvent instance
-
copyOf
Creates an immutable copy of aValueSetUpdatedEventvalue. 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 ValueSetUpdatedEvent instance
-
builder
Creates a builder forImmutableValueSetUpdatedEvent.ImmutableValueSetUpdatedEvent.builder() .valueSetId(io.dialob.session.engine.session.model.ValueSetId) // requiredvalueSetId.build();- Returns:
- A new ImmutableValueSetUpdatedEvent builder
-