| Modifier and Type | Method and Description |
|---|---|
Metadata |
build()
Builds a new
Metadata. |
Metadata.Builder |
count(Long count)
Initializes the value for the
count attribute. |
Metadata.Builder |
expired(long expired)
Initializes the optional value
expired to expired. |
Metadata.Builder |
expired(Optional<Long> expired)
Initializes the optional value
expired to expired. |
Metadata.Builder |
from(Metadata instance)
Fill a builder with attribute values from the provided
Metadata instance. |
Metadata.Builder |
newestTimestamp(Long newestTimestamp)
Initializes the value for the
newestTimestamp attribute. |
Metadata.Builder |
oldestTimestamp(Long oldestTimestamp)
Initializes the value for the
oldestTimestamp attribute. |
public final Metadata.Builder from(Metadata instance)
Metadata 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 Metadata.Builder count(Long count)
count attribute.count - The value for countthis builder for use in a chained invocationpublic final Metadata.Builder expired(long expired)
expired to expired.expired - The value for expiredthis builder for chained invocationpublic final Metadata.Builder expired(Optional<Long> expired)
expired to expired.expired - The value for expiredthis builder for use in a chained invocationpublic final Metadata.Builder newestTimestamp(Long newestTimestamp)
newestTimestamp attribute.newestTimestamp - The value for newestTimestampthis builder for use in a chained invocationpublic final Metadata.Builder oldestTimestamp(Long oldestTimestamp)
oldestTimestamp attribute.oldestTimestamp - The value for oldestTimestampthis builder for use in a chained invocationpublic Metadata build()
Metadata.IllegalStateException - if any required attributes are missingCopyright © 2021. All rights reserved.