Class ImmutableActivityMetricForm
java.lang.Object
io.jenkins.plugins.trunk.model.event.ImmutableActivityMetricForm
- All Implemented Interfaces:
ActivityMetricForm
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableActivityMetricForm
extends Object
implements ActivityMetricForm
Immutable implementation of
ActivityMetricForm
.
Use the builder to create immutable instances:
ImmutableActivityMetricForm.builder()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableActivityMetricForm
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableActivityMetricForm
.static ImmutableActivityMetricForm
copyOf
(ActivityMetricForm instance) Creates an immutable copy of aActivityMetricForm
value.boolean
This instance is equal to all instances ofImmutableActivityMetricForm
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:k
,v
.k()
toString()
Prints the immutable valueActivityMetricForm
with attribute values.double
v()
Copy the current immutable object by setting a value for thek
attribute.withV
(double value) Copy the current immutable object by setting a value for thev
attribute.
-
Method Details
-
k
- Specified by:
k
in interfaceActivityMetricForm
- Returns:
- The value of the
k
attribute
-
v
public double v()- Specified by:
v
in interfaceActivityMetricForm
- Returns:
- The value of the
v
attribute
-
withK
Copy the current immutable object by setting a value for thek
attribute. 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
this
object
-
withV
Copy the current immutable object by setting a value for thev
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for v- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableActivityMetricForm
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:k
,v
. -
toString
Prints the immutable valueActivityMetricForm
with attribute values. -
copyOf
Creates an immutable copy of aActivityMetricForm
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 ActivityMetricForm instance
-
builder
Creates a builder forImmutableActivityMetricForm
.ImmutableActivityMetricForm.builder() .k(String) // required
k
.v(double) // requiredv
.build();- Returns:
- A new ImmutableActivityMetricForm builder
-