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
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableSequenceForm. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableSequenceForm.static ImmutableSequenceFormcopyOf(SequenceForm instance) Creates an immutable copy of aSequenceFormvalue.booleanThis instance is equal to all instances ofImmutableSequenceFormthat have equal attribute values.inthashCode()Computes a hash code from attributes:platform,kind,key,name,payload.key()kind()name()payload()platform()toString()Prints the immutable valueSequenceFormwith attribute values.final ImmutableSequenceFormCopy the current immutable object by setting a value for thekeyattribute.final ImmutableSequenceFormCopy the current immutable object by setting a value for thekindattribute.final ImmutableSequenceFormCopy the current immutable object by setting a value for thenameattribute.final ImmutableSequenceFormwithPayload(SequencePayloadForm value) Copy the current immutable object by setting a value for thepayloadattribute.final ImmutableSequenceFormwithPlatform(String value) Copy the current immutable object by setting a value for theplatformattribute.
-
Method Details
-
platform
- Specified by:
platformin interfaceSequenceForm- Returns:
- The value of the
platformattribute
-
kind
- Specified by:
kindin interfaceSequenceForm- Returns:
- The value of the
kindattribute
-
key
- Specified by:
keyin interfaceSequenceForm- Returns:
- The value of the
keyattribute
-
name
- Specified by:
namein interfaceSequenceForm- Returns:
- The value of the
nameattribute
-
payload
- Specified by:
payloadin interfaceSequenceForm- Returns:
- The value of the
payloadattribute
-
withPlatform
Copy the current immutable object by setting a value for theplatformattribute. 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
thisobject
-
withKind
Copy the current immutable object by setting a value for thekindattribute. 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
thisobject
-
withKey
Copy the current immutable object by setting a value for thekeyattribute. 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
thisobject
-
withName
Copy the current immutable object by setting a value for thenameattribute. 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
thisobject
-
withPayload
Copy the current immutable object by setting a value for thepayloadattribute. 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
thisobject
-
equals
This instance is equal to all instances ofImmutableSequenceFormthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:platform,kind,key,name,payload. -
toString
Prints the immutable valueSequenceFormwith attribute values. -
copyOf
Creates an immutable copy of aSequenceFormvalue. 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) // requiredplatform.kind(String) // requiredkind.key(String) // requiredkey.name(String) // requiredname.payload(io.jenkins.plugins.trunk.model.event.SequencePayloadForm) // requiredpayload.build();- Returns:
- A new ImmutableSequenceForm builder
-