Class ImmutableActivityTimestampForm
java.lang.Object
io.jenkins.plugins.trunk.model.event.ImmutableActivityTimestampForm
- All Implemented Interfaces:
ActivityTimestampForm
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableActivityTimestampForm
extends Object
implements ActivityTimestampForm
Immutable implementation of
ActivityTimestampForm.
Use the builder to create immutable instances:
ImmutableActivityTimestampForm.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableActivityTimestampForm. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableActivityTimestampForm.copyOf(ActivityTimestampForm instance) Creates an immutable copy of aActivityTimestampFormvalue.booleanThis instance is equal to all instances ofImmutableActivityTimestampFormthat have equal attribute values.inthashCode()Computes a hash code from attributes:k,v.k()toString()Prints the immutable valueActivityTimestampFormwith attribute values.v()Copy the current immutable object by setting a value for thekattribute.Copy the current immutable object by setting a value for thevattribute.
-
Method Details
-
k
- Specified by:
kin interfaceActivityTimestampForm- Returns:
- The value of the
kattribute
-
v
- Specified by:
vin interfaceActivityTimestampForm- 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 ofImmutableActivityTimestampFormthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:k,v. -
toString
Prints the immutable valueActivityTimestampFormwith attribute values. -
copyOf
Creates an immutable copy of aActivityTimestampFormvalue. 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 ActivityTimestampForm instance
-
builder
Creates a builder forImmutableActivityTimestampForm.ImmutableActivityTimestampForm.builder() .k(String) // requiredk.v(Long) // requiredv.build();- Returns:
- A new ImmutableActivityTimestampForm builder
-