public static final class ImmutableDsFlag.Builder extends Object
ImmutableDsFlag.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableDsFlag.Builder |
addAllSources(Iterable<String> elements)
Adds elements to
sources list. |
ImmutableDsFlag.Builder |
addSources(String... elements)
Adds elements to
sources list. |
ImmutableDsFlag.Builder |
addSources(String element)
Adds one element to
sources list. |
ImmutableDsFlag |
build()
Builds a new
ImmutableDsFlag. |
ImmutableDsFlag.Builder |
darkskyUnavailable(Object darkskyUnavailable)
Initializes the value for the
darkskyUnavailable attribute. |
ImmutableDsFlag.Builder |
from(DsFlag instance)
Fill a builder with attribute values from the provided
DsFlag instance. |
ImmutableDsFlag.Builder |
metnoLicense(String metnoLicense)
Initializes the value for the
metnoLicense attribute. |
ImmutableDsFlag.Builder |
sources(Iterable<String> elements)
Sets or replaces all elements for
sources list. |
ImmutableDsFlag.Builder |
units(DsUnit units)
Initializes the value for the
units attribute. |
public final ImmutableDsFlag.Builder from(DsFlag instance)
DsFlag instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableDsFlag.Builder darkskyUnavailable(Object darkskyUnavailable)
darkskyUnavailable attribute.darkskyUnavailable - The value for darkskyUnavailable (can be null)this builder for use in a chained invocationpublic final ImmutableDsFlag.Builder metnoLicense(String metnoLicense)
metnoLicense attribute.metnoLicense - The value for metnoLicense (can be null)this builder for use in a chained invocationpublic final ImmutableDsFlag.Builder addSources(String element)
sources list.element - A sources elementthis builder for use in a chained invocationpublic final ImmutableDsFlag.Builder addSources(String... elements)
sources list.elements - An array of sources elementsthis builder for use in a chained invocationpublic final ImmutableDsFlag.Builder sources(Iterable<String> elements)
sources list.elements - An iterable of sources elementsthis builder for use in a chained invocationpublic final ImmutableDsFlag.Builder addAllSources(Iterable<String> elements)
sources list.elements - An iterable of sources elementsthis builder for use in a chained invocationpublic final ImmutableDsFlag.Builder units(DsUnit units)
units attribute.units - The value for units (can be null)this builder for use in a chained invocationpublic ImmutableDsFlag build()
ImmutableDsFlag.IllegalStateException - if any required attributes are missingCopyright © 2016. All rights reserved.