@Generated(value="org.immutables.processor.ProxyProcessor") public final class Metric extends Object
_Metric.
Use the builder to create immutable instances:
Metric.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
Metric.Builder
Builds instances of type
Metric. |
| Modifier and Type | Method and Description |
|---|---|
static Metric.Builder |
builder()
Creates a builder for
Metric. |
boolean |
equals(Object another)
This instance is equal to all instances of
Metric that have equal attribute values. |
String |
getUnit()
The metric unit
|
Double |
getValue()
The metric value
|
int |
hashCode()
Computes a hash code from attributes:
unit, value. |
String |
toString()
Prints the immutable value
Metric with attribute values. |
public String getUnit()
public Double getValue()
public boolean equals(Object another)
Metric that have equal attribute values.public int hashCode()
unit, value.public String toString()
Metric with attribute values.public static Metric.Builder builder()
Metric.
Metric.builder()
.unit(String | null) // nullable unit
.value(Double | null) // nullable value
.build();
Copyright © 2021. All rights reserved.