| Modifier and Type | Method and Description |
|---|---|
Timer |
build()
Builds a new
Timer. |
Timer.Builder |
from(Timer instance)
Fill a builder with attribute values from the provided
Timer instance. |
Timer.Builder |
name(String name)
Initializes the value for the
name attribute. |
Timer.Builder |
start(Long start)
Initializes the value for the
start attribute. |
Timer.Builder |
stop(Long stop)
Initializes the value for the
stop attribute. |
public final Timer.Builder from(Timer instance)
Timer 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 Timer.Builder name(String name)
name attribute.name - The value for name (can be null)this builder for use in a chained invocationpublic final Timer.Builder start(Long start)
start attribute.start - The value for start (can be null)this builder for use in a chained invocationpublic final Timer.Builder stop(Long stop)
stop attribute.stop - The value for stop (can be null)this builder for use in a chained invocationpublic Timer build()
Timer.IllegalStateException - if any required attributes are missingCopyright © 2021. All rights reserved.