Class ImmutableSequencePayloadForm
java.lang.Object
io.jenkins.plugins.trunk.model.event.ImmutableSequencePayloadForm
- All Implemented Interfaces:
SequencePayloadForm
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableSequencePayloadForm
extends Object
implements SequencePayloadForm
Immutable implementation of
SequencePayloadForm
.
Use the builder to create immutable instances:
ImmutableSequencePayloadForm.builder()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableSequencePayloadForm
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableSequencePayloadForm
.static ImmutableSequencePayloadForm
copyOf
(SequencePayloadForm instance) Creates an immutable copy of aSequencePayloadForm
value.boolean
This instance is equal to all instances ofImmutableSequencePayloadForm
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:tags
.com.google.common.collect.ImmutableList<ActivityTagForm>
tags()
toString()
Prints the immutable valueSequencePayloadForm
with attribute values.withTags
(ActivityTagForm... elements) Copy the current immutable object with elements that replace the content oftags
.withTags
(Iterable<? extends ActivityTagForm> elements) Copy the current immutable object with elements that replace the content oftags
.
-
Method Details
-
tags
- Specified by:
tags
in interfaceSequencePayloadForm
- Returns:
- The value of the
tags
attribute
-
withTags
Copy the current immutable object with elements that replace the content oftags
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withTags
public final ImmutableSequencePayloadForm withTags(@Nullable Iterable<? extends ActivityTagForm> elements) Copy the current immutable object with elements that replace the content oftags
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of tags elements to set- Returns:
- A modified copy of
this
object
-
equals
This instance is equal to all instances ofImmutableSequencePayloadForm
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:tags
. -
toString
Prints the immutable valueSequencePayloadForm
with attribute values. -
copyOf
Creates an immutable copy of aSequencePayloadForm
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 SequencePayloadForm instance
-
builder
Creates a builder forImmutableSequencePayloadForm
.ImmutableSequencePayloadForm.builder() .tags(List<io.jenkins.plugins.trunk.model.event.ActivityTagForm> | null) // nullable
tags
.build();- Returns:
- A new ImmutableSequencePayloadForm builder
-