Class ImmutableSequenceForm
java.lang.Object
io.jenkins.plugins.trunk.model.event.ImmutableSequenceForm
- All Implemented Interfaces:
SequenceForm
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableSequenceForm
extends Object
implements SequenceForm
Immutable implementation of
SequenceForm
.
Use the builder to create immutable instances:
ImmutableSequenceForm.builder()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableSequenceForm
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableSequenceForm
.static ImmutableSequenceForm
copyOf
(SequenceForm instance) Creates an immutable copy of aSequenceForm
value.boolean
This instance is equal to all instances ofImmutableSequenceForm
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:platform
,kind
,key
,name
,payload
.key()
kind()
name()
payload()
platform()
toString()
Prints the immutable valueSequenceForm
with attribute values.final ImmutableSequenceForm
Copy the current immutable object by setting a value for thekey
attribute.final ImmutableSequenceForm
Copy the current immutable object by setting a value for thekind
attribute.final ImmutableSequenceForm
Copy the current immutable object by setting a value for thename
attribute.final ImmutableSequenceForm
withPayload
(SequencePayloadForm value) Copy the current immutable object by setting a value for thepayload
attribute.final ImmutableSequenceForm
withPlatform
(String value) Copy the current immutable object by setting a value for theplatform
attribute.
-
Method Details
-
platform
- Specified by:
platform
in interfaceSequenceForm
- Returns:
- The value of the
platform
attribute
-
kind
- Specified by:
kind
in interfaceSequenceForm
- Returns:
- The value of the
kind
attribute
-
key
- Specified by:
key
in interfaceSequenceForm
- Returns:
- The value of the
key
attribute
-
name
- Specified by:
name
in interfaceSequenceForm
- Returns:
- The value of the
name
attribute
-
payload
- Specified by:
payload
in interfaceSequenceForm
- Returns:
- The value of the
payload
attribute
-
withPlatform
Copy the current immutable object by setting a value for theplatform
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for platform- Returns:
- A modified copy of the
this
object
-
withKind
Copy the current immutable object by setting a value for thekind
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for kind- Returns:
- A modified copy of the
this
object
-
withKey
Copy the current immutable object by setting a value for thekey
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for key- Returns:
- A modified copy of the
this
object
-
withName
Copy the current immutable object by setting a value for thename
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for name- Returns:
- A modified copy of the
this
object
-
withPayload
Copy the current immutable object by setting a value for thepayload
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for payload- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableSequenceForm
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:platform
,kind
,key
,name
,payload
. -
toString
Prints the immutable valueSequenceForm
with attribute values. -
copyOf
Creates an immutable copy of aSequenceForm
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 SequenceForm instance
-
builder
Creates a builder forImmutableSequenceForm
.ImmutableSequenceForm.builder() .platform(String) // required
platform
.kind(String) // requiredkind
.key(String) // requiredkey
.name(String) // requiredname
.payload(io.jenkins.plugins.trunk.model.event.SequencePayloadForm) // requiredpayload
.build();- Returns:
- A new ImmutableSequenceForm builder
-