Package io.dialob.executor.command.event
Class ImmutableDescriptionUpdatedEvent
- java.lang.Object
-
- io.dialob.executor.command.event.ImmutableDescriptionUpdatedEvent
-
- All Implemented Interfaces:
AttributeEvent,DescriptionUpdatedEvent,Event,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDescriptionUpdatedEvent extends Object implements DescriptionUpdatedEvent
Immutable implementation ofDescriptionUpdatedEvent.Use the builder to create immutable instances:
ImmutableDescriptionUpdatedEvent.builder(). Use the static factory method to create immutable instances:ImmutableDescriptionUpdatedEvent.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableDescriptionUpdatedEvent.BuilderBuilds instances of typeImmutableDescriptionUpdatedEvent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableDescriptionUpdatedEvent.Builderbuilder()Creates a builder forImmutableDescriptionUpdatedEvent.static ImmutableDescriptionUpdatedEventcopyOf(DescriptionUpdatedEvent instance)Creates an immutable copy of aDescriptionUpdatedEventvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableDescriptionUpdatedEventthat have equal attribute values.TargetEventgetTarget()inthashCode()Computes a hash code from attributes:target.static ImmutableDescriptionUpdatedEventof(TargetEvent target)Construct a new immutableDescriptionUpdatedEventinstance.StringtoString()Prints the immutable valueDescriptionUpdatedEventwith attribute values.ImmutableDescriptionUpdatedEventwithTarget(TargetEvent value)Copy the current immutable object by setting a value for thetargetattribute.
-
-
-
Method Detail
-
getTarget
public TargetEvent getTarget()
- Specified by:
getTargetin interfaceAttributeEvent- Returns:
- The value of the
targetattribute
-
withTarget
public final ImmutableDescriptionUpdatedEvent withTarget(TargetEvent value)
Copy the current immutable object by setting a value for thetargetattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for target- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableDescriptionUpdatedEventthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:target.
-
toString
public String toString()
Prints the immutable valueDescriptionUpdatedEventwith attribute values.
-
of
public static ImmutableDescriptionUpdatedEvent of(TargetEvent target)
Construct a new immutableDescriptionUpdatedEventinstance.- Parameters:
target- The value for thetargetattribute- Returns:
- An immutable DescriptionUpdatedEvent instance
-
copyOf
public static ImmutableDescriptionUpdatedEvent copyOf(DescriptionUpdatedEvent instance)
Creates an immutable copy of aDescriptionUpdatedEventvalue. 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 DescriptionUpdatedEvent instance
-
builder
public static ImmutableDescriptionUpdatedEvent.Builder builder()
Creates a builder forImmutableDescriptionUpdatedEvent.ImmutableDescriptionUpdatedEvent.builder() .target(io.dialob.executor.command.event.TargetEvent) // requiredtarget.build();- Returns:
- A new ImmutableDescriptionUpdatedEvent builder
-
-