public static class SegmentMap.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SegmentMap |
build()
Builds a new
SegmentMap. |
SegmentMap.Builder |
byteRange(ByteRange byteRange)
Initializes the optional value
byteRange to byteRange. |
SegmentMap.Builder |
byteRange(java.util.Optional<? extends ByteRange> byteRange)
Initializes the optional value
byteRange to byteRange. |
SegmentMap.Builder |
from(SegmentMap instance)
Fill a builder with attribute values from the provided
SegmentMap instance. |
SegmentMap.Builder |
uri(java.lang.String uri)
Initializes the value for the
uri attribute. |
public final SegmentMap.Builder from(SegmentMap instance)
SegmentMap 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 SegmentMap.Builder uri(java.lang.String uri)
uri attribute.uri - The value for urithis builder for use in a chained invocationpublic final SegmentMap.Builder byteRange(ByteRange byteRange)
byteRange to byteRange.byteRange - The value for byteRangethis builder for chained invocationpublic final SegmentMap.Builder byteRange(java.util.Optional<? extends ByteRange> byteRange)
byteRange to byteRange.byteRange - The value for byteRangethis builder for use in a chained invocationpublic SegmentMap build()
SegmentMap.java.lang.IllegalStateException - if any required attributes are missing