Class ImmutableActivityTagForm
java.lang.Object
io.jenkins.plugins.trunk.model.event.ImmutableActivityTagForm
- All Implemented Interfaces:
ActivityTagForm
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableActivityTagForm
extends Object
implements ActivityTagForm
Immutable implementation of
ActivityTagForm.
Use the builder to create immutable instances:
ImmutableActivityTagForm.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableActivityTagForm. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableActivityTagForm.static ImmutableActivityTagFormcopyOf(ActivityTagForm instance) Creates an immutable copy of aActivityTagFormvalue.booleanThis instance is equal to all instances ofImmutableActivityTagFormthat have equal attribute values.inthashCode()Computes a hash code from attributes:k,v.k()toString()Prints the immutable valueActivityTagFormwith attribute values.v()final ImmutableActivityTagFormCopy the current immutable object by setting a value for thekattribute.final ImmutableActivityTagFormCopy the current immutable object by setting a value for thevattribute.
-
Method Details
-
k
- Specified by:
kin interfaceActivityTagForm- Returns:
- The value of the
kattribute
-
v
- Specified by:
vin interfaceActivityTagForm- Returns:
- The value of the
vattribute
-
withK
Copy the current immutable object by setting a value for thekattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for k- Returns:
- A modified copy of the
thisobject
-
withV
Copy the current immutable object by setting a value for thevattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for v- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableActivityTagFormthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:k,v. -
toString
Prints the immutable valueActivityTagFormwith attribute values. -
copyOf
Creates an immutable copy of aActivityTagFormvalue. 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 ActivityTagForm instance
-
builder
Creates a builder forImmutableActivityTagForm.ImmutableActivityTagForm.builder() .k(String) // requiredk.v(String) // requiredv.build();- Returns:
- A new ImmutableActivityTagForm builder
-