Class ImmutableActivityEventParent
java.lang.Object
io.jenkins.plugins.trunk.model.event.ImmutableActivityEventParent
- All Implemented Interfaces:
ActivityEventParent
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableActivityEventParent
extends Object
implements ActivityEventParent
Immutable implementation of
ActivityEventParent.
Use the builder to create immutable instances:
ImmutableActivityEventParent.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableActivityEventParent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableActivityEventParent.static ImmutableActivityEventParentcopyOf(ActivityEventParent instance) Creates an immutable copy of aActivityEventParentvalue.booleanThis instance is equal to all instances ofImmutableActivityEventParentthat have equal attribute values.eventId()inthashCode()Computes a hash code from attributes:eventId,sequenceKey.toString()Prints the immutable valueActivityEventParentwith attribute values.withEventId(String value) Copy the current immutable object by setting a value for theeventIdattribute.withSequenceKey(String value) Copy the current immutable object by setting a value for thesequenceKeyattribute.
-
Method Details
-
eventId
- Specified by:
eventIdin interfaceActivityEventParent- Returns:
- The value of the
eventIdattribute
-
sequenceKey
- Specified by:
sequenceKeyin interfaceActivityEventParent- Returns:
- The value of the
sequenceKeyattribute
-
withEventId
Copy the current immutable object by setting a value for theeventIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for eventId- Returns:
- A modified copy of the
thisobject
-
withSequenceKey
Copy the current immutable object by setting a value for thesequenceKeyattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sequenceKey- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableActivityEventParentthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:eventId,sequenceKey. -
toString
Prints the immutable valueActivityEventParentwith attribute values. -
copyOf
Creates an immutable copy of aActivityEventParentvalue. 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 ActivityEventParent instance
-
builder
Creates a builder forImmutableActivityEventParent.ImmutableActivityEventParent.builder() .eventId(String) // requiredeventId.sequenceKey(String) // requiredsequenceKey.build();- Returns:
- A new ImmutableActivityEventParent builder
-