Package io.dialob.executor.command.event
Class ImmutableLabelUpdatedEvent
- java.lang.Object
-
- io.dialob.executor.command.event.ImmutableLabelUpdatedEvent
-
- All Implemented Interfaces:
AttributeEvent,Event,LabelUpdatedEvent,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableLabelUpdatedEvent extends Object implements LabelUpdatedEvent
Immutable implementation ofLabelUpdatedEvent.Use the builder to create immutable instances:
ImmutableLabelUpdatedEvent.builder(). Use the static factory method to create immutable instances:ImmutableLabelUpdatedEvent.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableLabelUpdatedEvent.BuilderBuilds instances of typeImmutableLabelUpdatedEvent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableLabelUpdatedEvent.Builderbuilder()Creates a builder forImmutableLabelUpdatedEvent.static ImmutableLabelUpdatedEventcopyOf(LabelUpdatedEvent instance)Creates an immutable copy of aLabelUpdatedEventvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableLabelUpdatedEventthat have equal attribute values.TargetEventgetTarget()inthashCode()Computes a hash code from attributes:target.static ImmutableLabelUpdatedEventof(TargetEvent target)Construct a new immutableLabelUpdatedEventinstance.StringtoString()Prints the immutable valueLabelUpdatedEventwith attribute values.ImmutableLabelUpdatedEventwithTarget(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 ImmutableLabelUpdatedEvent 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 ofImmutableLabelUpdatedEventthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:target.
-
toString
public String toString()
Prints the immutable valueLabelUpdatedEventwith attribute values.
-
of
public static ImmutableLabelUpdatedEvent of(TargetEvent target)
Construct a new immutableLabelUpdatedEventinstance.- Parameters:
target- The value for thetargetattribute- Returns:
- An immutable LabelUpdatedEvent instance
-
copyOf
public static ImmutableLabelUpdatedEvent copyOf(LabelUpdatedEvent instance)
Creates an immutable copy of aLabelUpdatedEventvalue. 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 LabelUpdatedEvent instance
-
builder
public static ImmutableLabelUpdatedEvent.Builder builder()
Creates a builder forImmutableLabelUpdatedEvent.ImmutableLabelUpdatedEvent.builder() .target(io.dialob.executor.command.event.TargetEvent) // requiredtarget.build();- Returns:
- A new ImmutableLabelUpdatedEvent builder
-
-