Package io.dialob.executor.command.event
Class ImmutableErrorActiveUpdatedEvent
- java.lang.Object
-
- io.dialob.executor.command.event.ImmutableErrorActiveUpdatedEvent
-
- All Implemented Interfaces:
ErrorActiveUpdatedEvent,ErrorEvent,Event,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableErrorActiveUpdatedEvent extends Object implements ErrorActiveUpdatedEvent
Immutable implementation ofErrorActiveUpdatedEvent.Use the builder to create immutable instances:
ImmutableErrorActiveUpdatedEvent.builder(). Use the static factory method to create immutable instances:ImmutableErrorActiveUpdatedEvent.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableErrorActiveUpdatedEvent.BuilderBuilds instances of typeImmutableErrorActiveUpdatedEvent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableErrorActiveUpdatedEvent.Builderbuilder()Creates a builder forImmutableErrorActiveUpdatedEvent.static ImmutableErrorActiveUpdatedEventcopyOf(ErrorActiveUpdatedEvent instance)Creates an immutable copy of aErrorActiveUpdatedEventvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableErrorActiveUpdatedEventthat have equal attribute values.ErrorIdgetErrorId()inthashCode()Computes a hash code from attributes:errorId.static ImmutableErrorActiveUpdatedEventof(ErrorId errorId)Construct a new immutableErrorActiveUpdatedEventinstance.StringtoString()Prints the immutable valueErrorActiveUpdatedEventwith attribute values.ImmutableErrorActiveUpdatedEventwithErrorId(ErrorId value)Copy the current immutable object by setting a value for theerrorIdattribute.
-
-
-
Method Detail
-
getErrorId
public ErrorId getErrorId()
- Specified by:
getErrorIdin interfaceErrorEvent- Returns:
- The value of the
errorIdattribute
-
withErrorId
public final ImmutableErrorActiveUpdatedEvent withErrorId(ErrorId value)
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 of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableErrorActiveUpdatedEventthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:errorId.
-
toString
public String toString()
Prints the immutable valueErrorActiveUpdatedEventwith attribute values.
-
of
public static ImmutableErrorActiveUpdatedEvent of(ErrorId errorId)
Construct a new immutableErrorActiveUpdatedEventinstance.- Parameters:
errorId- The value for theerrorIdattribute- Returns:
- An immutable ErrorActiveUpdatedEvent instance
-
copyOf
public static ImmutableErrorActiveUpdatedEvent copyOf(ErrorActiveUpdatedEvent instance)
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
public static ImmutableErrorActiveUpdatedEvent.Builder builder()
Creates a builder forImmutableErrorActiveUpdatedEvent.ImmutableErrorActiveUpdatedEvent.builder() .errorId(io.dialob.executor.model.ErrorId) // requirederrorId.build();- Returns:
- A new ImmutableErrorActiveUpdatedEvent builder
-
-