@Generated(value={"Immutables.generator","DsResponse"}) public final class ImmutableDsResponse extends Object implements DsResponse
DsResponse.
Use the builder to create immutable instances:
ImmutableDsResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableDsResponse.Builder
Builds instances of type
ImmutableDsResponse. |
| Modifier and Type | Method and Description |
|---|---|
List<DsAlert> |
alerts()
A collection of
DsAlert instances, which, if present, contains any severe
weather alerts, issued by a governmental weather authority, pertinent to the
requested location. |
static ImmutableDsResponse.Builder |
builder()
Creates a builder for
ImmutableDsResponse. |
static ImmutableDsResponse |
copyOf(DsResponse instance)
Creates an immutable copy of a
DsResponse value. |
DsDataPoint |
currently()
An instance of
DsDataPoint containing the current weather conditions at the
requested location. |
DsDataBlock |
daily()
An instance of
DsDataPoint containing the weather conditions day-by-day for
the next week. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDsResponse that have equal attribute values. |
DsFlag |
flags()
An instance of
DsFlag containing miscellaneous metadata about the request. |
int |
hashCode()
Computes a hash code from attributes:
latitude, longitude, timezone, offset, currently, minutely, hourly, daily, alerts, flags. |
DsDataBlock |
hourly()
An instance of
DsDataPoint containing the weather conditions hour-by-hour
for the next two days. |
BigDecimal |
latitude()
The requested latitude.
|
BigDecimal |
longitude()
The requested longitude.
|
DsDataBlock |
minutely()
An instance of
DsDataPoint containing the weather conditions
minute-by-minute for the next hour. |
int |
offset()
The current timezone offset in hours.
|
String |
timezone()
The IANA timezone name for the requested location.
|
String |
toString()
Prints the immutable value
DsResponse with attribute values. |
ImmutableDsResponse |
withAlerts(DsAlert... elements)
Copy the current immutable object with elements that replace the content of
alerts. |
ImmutableDsResponse |
withAlerts(Iterable<? extends DsAlert> elements)
Copy the current immutable object with elements that replace the content of
alerts. |
ImmutableDsResponse |
withCurrently(DsDataPoint value)
Copy the current immutable object by setting a value for the
currently attribute. |
ImmutableDsResponse |
withDaily(DsDataBlock value)
Copy the current immutable object by setting a value for the
daily attribute. |
ImmutableDsResponse |
withFlags(DsFlag value)
Copy the current immutable object by setting a value for the
flags attribute. |
ImmutableDsResponse |
withHourly(DsDataBlock value)
Copy the current immutable object by setting a value for the
hourly attribute. |
ImmutableDsResponse |
withLatitude(BigDecimal value)
Copy the current immutable object by setting a value for the
latitude attribute. |
ImmutableDsResponse |
withLongitude(BigDecimal value)
Copy the current immutable object by setting a value for the
longitude attribute. |
ImmutableDsResponse |
withMinutely(DsDataBlock value)
Copy the current immutable object by setting a value for the
minutely attribute. |
ImmutableDsResponse |
withOffset(int value)
Copy the current immutable object by setting a value for the
offset attribute. |
ImmutableDsResponse |
withTimezone(String value)
Copy the current immutable object by setting a value for the
timezone attribute. |
public BigDecimal latitude()
latitude in interface DsResponsepublic BigDecimal longitude()
longitude in interface DsResponsepublic String timezone()
DsDataPoint.summary() text and for determining when hourly() and
daily() data block objects begin.timezone in interface DsResponsepublic int offset()
offset in interface DsResponsepublic DsDataPoint currently()
DsDataPoint containing the current weather conditions at the
requested location.currently in interface DsResponsepublic DsDataBlock minutely()
DsDataPoint containing the weather conditions
minute-by-minute for the next hour.minutely in interface DsResponsepublic DsDataBlock hourly()
DsDataPoint containing the weather conditions hour-by-hour
for the next two days.hourly in interface DsResponsepublic DsDataBlock daily()
DsDataPoint containing the weather conditions day-by-day for
the next week.daily in interface DsResponsepublic List<DsAlert> alerts()
DsAlert instances, which, if present, contains any severe
weather alerts, issued by a governmental weather authority, pertinent to the
requested location.alerts in interface DsResponsepublic DsFlag flags()
DsFlag containing miscellaneous metadata about the request.flags in interface DsResponsepublic final ImmutableDsResponse withLatitude(BigDecimal value)
latitude attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for latitudethis objectpublic final ImmutableDsResponse withLongitude(BigDecimal value)
longitude attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for longitudethis objectpublic final ImmutableDsResponse withTimezone(String value)
timezone attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for timezonethis objectpublic final ImmutableDsResponse withOffset(int value)
offset attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for offsetthis objectpublic final ImmutableDsResponse withCurrently(DsDataPoint value)
currently attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for currently (can be null)this objectpublic final ImmutableDsResponse withMinutely(DsDataBlock value)
minutely attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for minutely (can be null)this objectpublic final ImmutableDsResponse withHourly(DsDataBlock value)
hourly attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for hourly (can be null)this objectpublic final ImmutableDsResponse withDaily(DsDataBlock value)
daily attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for daily (can be null)this objectpublic final ImmutableDsResponse withAlerts(DsAlert... elements)
alerts.elements - The elements to setthis objectpublic final ImmutableDsResponse withAlerts(Iterable<? extends DsAlert> elements)
alerts.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of alerts elements to setthis objectpublic final ImmutableDsResponse withFlags(DsFlag value)
flags attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for flags (can be null)this objectpublic boolean equals(Object another)
ImmutableDsResponse that have equal attribute values.public int hashCode()
latitude, longitude, timezone, offset, currently, minutely, hourly, daily, alerts, flags.public String toString()
DsResponse with attribute values.public static ImmutableDsResponse copyOf(DsResponse instance)
DsResponse 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 ImmutableDsResponse.Builder builder()
ImmutableDsResponse.Copyright © 2016. All rights reserved.