@Generated(value="org.immutables.processor.ProxyProcessor") public final class Counter extends Object
_Counter.
Use the builder to create immutable instances:
Counter.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
Counter.Builder
Builds instances of type
Counter. |
| Modifier and Type | Method and Description |
|---|---|
static Counter.Builder |
builder()
Creates a builder for
Counter. |
boolean |
equals(Object another)
This instance is equal to all instances of
Counter that have equal attribute values. |
Long |
getDelta()
The amount by which to increment the counter
|
String |
getName()
The name of the counter.
|
Long |
getTotal()
The total value of the counter.
|
int |
hashCode()
Computes a hash code from attributes:
delta, name, total. |
String |
toString()
Prints the immutable value
Counter with attribute values. |
public Long getDelta()
public String getName()
public Long getTotal()
public boolean equals(Object another)
Counter that have equal attribute values.public int hashCode()
delta, name, total.public String toString()
Counter with attribute values.public static Counter.Builder builder()
Counter.
Counter.builder()
.delta(Long | null) // nullable delta
.name(String | null) // nullable name
.total(Long | null) // nullable total
.build();
Copyright © 2021. All rights reserved.