| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableDsFlag.Builder
Builds instances of type
ImmutableDsFlag. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableDsFlag.Builder |
builder()
Creates a builder for
ImmutableDsFlag. |
static ImmutableDsFlag |
copyOf(DsFlag instance)
Creates an immutable copy of a
DsFlag value. |
Object |
darkskyUnavailable()
The presence of this property indicates that the Dark Sky data source supports the
given location, but a temporary error (such as a radar station being down for
maintenance) has made the data unavailable.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDsFlag that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
darkskyUnavailable, metnoLicense, sources, units. |
String |
metnoLicense()
The presence of this property indicates that data from
api.met.no was utilized in order to facilitate
this request (as per their license agreement).
|
List<String> |
sources()
This property contains list of IDs for each
data source utilized in
servicing this request.
|
String |
toString()
Prints the immutable value
DsFlag with attribute values. |
DsUnit |
units()
Indicates the units which were used for the data in this request.
|
ImmutableDsFlag |
withDarkskyUnavailable(Object value)
Copy the current immutable object by setting a value for the
darkskyUnavailable attribute. |
ImmutableDsFlag |
withMetnoLicense(String value)
Copy the current immutable object by setting a value for the
metnoLicense attribute. |
ImmutableDsFlag |
withSources(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
sources. |
ImmutableDsFlag |
withSources(String... elements)
Copy the current immutable object with elements that replace the content of
sources. |
ImmutableDsFlag |
withUnits(DsUnit value)
Copy the current immutable object by setting a value for the
units attribute. |
public Object darkskyUnavailable()
darkskyUnavailable in interface DsFlagpublic String metnoLicense()
metnoLicense in interface DsFlagpublic List<String> sources()
public DsUnit units()
public final ImmutableDsFlag withDarkskyUnavailable(Object value)
darkskyUnavailable attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for darkskyUnavailable (can be null)this objectpublic final ImmutableDsFlag withMetnoLicense(String value)
metnoLicense attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for metnoLicense (can be null)this objectpublic final ImmutableDsFlag withSources(String... elements)
sources.elements - The elements to setthis objectpublic final ImmutableDsFlag withSources(Iterable<String> elements)
sources.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of sources elements to setthis objectpublic final ImmutableDsFlag withUnits(DsUnit value)
units attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for units (can be null)this objectpublic boolean equals(Object another)
ImmutableDsFlag that have equal attribute values.public int hashCode()
darkskyUnavailable, metnoLicense, sources, units.public String toString()
DsFlag with attribute values.public static ImmutableDsFlag copyOf(DsFlag instance)
DsFlag value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableDsFlag.Builder builder()
ImmutableDsFlag.Copyright © 2016. All rights reserved.