| Modifier and Type | Method and Description |
|---|---|
Counter |
build()
Builds a new
Counter. |
Counter.Builder |
delta(Long delta)
Initializes the value for the
delta attribute. |
Counter.Builder |
from(Counter instance)
Fill a builder with attribute values from the provided
Counter instance. |
Counter.Builder |
name(String name)
Initializes the value for the
name attribute. |
Counter.Builder |
total(Long total)
Initializes the value for the
total attribute. |
public final Counter.Builder from(Counter instance)
Counter instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final Counter.Builder delta(Long delta)
delta attribute.delta - The value for delta (can be null)this builder for use in a chained invocationpublic final Counter.Builder name(String name)
name attribute.name - The value for name (can be null)this builder for use in a chained invocationpublic final Counter.Builder total(Long total)
total attribute.total - The value for total (can be null)this builder for use in a chained invocationpublic Counter build()
Counter.IllegalStateException - if any required attributes are missingCopyright © 2022. All rights reserved.