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
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableActivityEventParent
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableActivityEventParent
.static ImmutableActivityEventParent
copyOf
(ActivityEventParent instance) Creates an immutable copy of aActivityEventParent
value.boolean
This instance is equal to all instances ofImmutableActivityEventParent
that have equal attribute values.eventId()
int
hashCode()
Computes a hash code from attributes:eventId
,sequenceKey
.toString()
Prints the immutable valueActivityEventParent
with attribute values.withEventId
(String value) Copy the current immutable object by setting a value for theeventId
attribute.withSequenceKey
(String value) Copy the current immutable object by setting a value for thesequenceKey
attribute.
-
Method Details
-
eventId
- Specified by:
eventId
in interfaceActivityEventParent
- Returns:
- The value of the
eventId
attribute
-
sequenceKey
- Specified by:
sequenceKey
in interfaceActivityEventParent
- Returns:
- The value of the
sequenceKey
attribute
-
withEventId
Copy the current immutable object by setting a value for theeventId
attribute. 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
this
object
-
withSequenceKey
Copy the current immutable object by setting a value for thesequenceKey
attribute. 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
this
object
-
equals
This instance is equal to all instances ofImmutableActivityEventParent
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:eventId
,sequenceKey
. -
toString
Prints the immutable valueActivityEventParent
with attribute values. -
copyOf
Creates an immutable copy of aActivityEventParent
value. 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) // required
eventId
.sequenceKey(String) // requiredsequenceKey
.build();- Returns:
- A new ImmutableActivityEventParent builder
-