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
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableSequencePayloadForm. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableSequencePayloadForm.static ImmutableSequencePayloadFormcopyOf(SequencePayloadForm instance) Creates an immutable copy of aSequencePayloadFormvalue.booleanThis instance is equal to all instances ofImmutableSequencePayloadFormthat have equal attribute values.inthashCode()Computes a hash code from attributes:tags.com.google.common.collect.ImmutableList<ActivityTagForm>tags()toString()Prints the immutable valueSequencePayloadFormwith 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:
tagsin interfaceSequencePayloadForm- Returns:
- The value of the
tagsattribute
-
withTags
Copy the current immutable object with elements that replace the content oftags.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
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
thisobject
-
equals
This instance is equal to all instances ofImmutableSequencePayloadFormthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:tags. -
toString
Prints the immutable valueSequencePayloadFormwith attribute values. -
copyOf
Creates an immutable copy of aSequencePayloadFormvalue. 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) // nullabletags.build();- Returns:
- A new ImmutableSequencePayloadForm builder
-