@Generated(value={"Immutables.generator","AbstractLatency"}) public final class Latency extends Object implements AbstractLatency
AbstractLatency.
Use the builder to create immutable instances: Latency.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
Latency.Builder
Builds instances of type
Latency. |
| Modifier and Type | Method and Description |
|---|---|
static Latency.Builder |
builder()
Creates a builder for
Latency. |
static Latency |
copyOf(AbstractLatency instance)
Creates an immutable copy of a
AbstractLatency value. |
boolean |
equals(Object another)
This instance is equal to all instances of
Latency that have equal attribute values. |
long |
getMax() |
double |
getMean() |
double |
getMedian() |
long |
getMin() |
double |
getPercentile98th() |
double |
getPercentile999th() |
double |
getPercentile99th() |
int |
hashCode()
Computes a hash code from attributes:
median, percentile98th, percentile99th, percentile999th, mean, min, max. |
String |
toString()
Prints the immutable value
Latency... with all non-generated and non-auxiliary
attribute values. |
Latency |
withMax(long value)
Copy the current immutable object by setting a value for the
max attribute. |
Latency |
withMean(double value)
Copy the current immutable object by setting a value for the
mean attribute. |
Latency |
withMedian(double value)
Copy the current immutable object by setting a value for the
median attribute. |
Latency |
withMin(long value)
Copy the current immutable object by setting a value for the
min attribute. |
Latency |
withPercentile98th(double value)
Copy the current immutable object by setting a value for the
percentile98th attribute. |
Latency |
withPercentile999th(double value)
Copy the current immutable object by setting a value for the
percentile999th attribute. |
Latency |
withPercentile99th(double value)
Copy the current immutable object by setting a value for the
percentile99th attribute. |
public double getMedian()
getMedian in interface AbstractLatencypublic double getPercentile98th()
getPercentile98th in interface AbstractLatencypublic double getPercentile99th()
getPercentile99th in interface AbstractLatencypublic double getPercentile999th()
getPercentile999th in interface AbstractLatencypublic double getMean()
getMean in interface AbstractLatencypublic long getMin()
getMin in interface AbstractLatencypublic long getMax()
getMax in interface AbstractLatencypublic final Latency withMedian(double value)
median attribute.value - A new value for medianthis objectpublic final Latency withPercentile98th(double value)
percentile98th attribute.value - A new value for percentile98ththis objectpublic final Latency withPercentile99th(double value)
percentile99th attribute.value - A new value for percentile99ththis objectpublic final Latency withPercentile999th(double value)
percentile999th attribute.value - A new value for percentile999ththis objectpublic final Latency withMean(double value)
mean attribute.value - A new value for meanthis objectpublic final Latency withMin(long value)
min attribute. A value equality check is used to prevent copying of the same value by
returning this.value - A new value for minthis objectpublic final Latency withMax(long value)
max attribute. A value equality check is used to prevent copying of the same value by
returning this.value - A new value for maxthis objectpublic boolean equals(Object another)
Latency that have equal attribute values.public int hashCode()
median, percentile98th, percentile99th, percentile999th, mean, min, max.public String toString()
Latency... with all non-generated and non-auxiliary
attribute values.public static Latency copyOf(AbstractLatency instance)
AbstractLatency value. Uses accessors to get values to
initialize the new immutable instance. If an instance is already immutable, it is returned as
is.instance - The instance to copypublic static Latency.Builder builder()
Latency.