Class ImmutableErrorActiveUpdatedEvent
java.lang.Object
io.dialob.session.engine.session.command.event.ImmutableErrorActiveUpdatedEvent
- All Implemented Interfaces:
ErrorActiveUpdatedEvent,ErrorEvent,Event,Serializable
@Generated(from="ErrorActiveUpdatedEvent",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableErrorActiveUpdatedEvent
extends Object
implements ErrorActiveUpdatedEvent
Immutable implementation of
ErrorActiveUpdatedEvent.
Use the builder to create immutable instances:
ImmutableErrorActiveUpdatedEvent.builder().
Use the static factory method to create immutable instances:
ImmutableErrorActiveUpdatedEvent.of().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableErrorActiveUpdatedEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableErrorActiveUpdatedEvent.copyOf(ErrorActiveUpdatedEvent instance) Creates an immutable copy of aErrorActiveUpdatedEventvalue.booleanThis instance is equal to all instances ofImmutableErrorActiveUpdatedEventthat have equal attribute values.inthashCode()Computes a hash code from attributes:errorId.Construct a new immutableErrorActiveUpdatedEventinstance.toString()Prints the immutable valueErrorActiveUpdatedEventwith attribute values.withErrorId(ErrorId value) Copy the current immutable object by setting a value for theerrorIdattribute.
-
Method Details
-
getErrorId
- Specified by:
getErrorIdin interfaceErrorEvent- Returns:
- The value of the
errorIdattribute
-
withErrorId
Copy the current immutable object by setting a value for theerrorIdattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for errorId- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutableErrorActiveUpdatedEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:errorId. -
toString
Prints the immutable valueErrorActiveUpdatedEventwith attribute values. -
of
Construct a new immutableErrorActiveUpdatedEventinstance.- Parameters:
errorId- The value for theerrorIdattribute- Returns:
- An immutable ErrorActiveUpdatedEvent instance
-
copyOf
Creates an immutable copy of aErrorActiveUpdatedEventvalue. 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 ErrorActiveUpdatedEvent instance
-
builder
Creates a builder forImmutableErrorActiveUpdatedEvent.ImmutableErrorActiveUpdatedEvent.builder() .errorId(io.dialob.session.engine.session.model.ErrorId) // requirederrorId.build();- Returns:
- A new ImmutableErrorActiveUpdatedEvent builder
-