@Generated(value={"Immutables.generator","FioResponse"}) public final class ImmutableFioResponse extends Object implements FioResponse
FioResponse.
Use the builder to create immutable instances:
ImmutableFioResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableFioResponse.Builder
Builds instances of type
ImmutableFioResponse. |
| Modifier and Type | Method and Description |
|---|---|
List<FioAlert> |
alerts()
A collection of
FioAlert instances, which, if present, contains any severe
weather alerts, issued by a governmental weather authority, pertinent to the
requested location. |
static ImmutableFioResponse.Builder |
builder()
Creates a builder for
ImmutableFioResponse. |
static ImmutableFioResponse |
copyOf(FioResponse instance)
Creates an immutable copy of a
FioResponse value. |
FioDataPoint |
currently()
An instance of
FioDataPoint containing the current weather conditions at
the requested location. |
FioDataBlock |
daily()
An instance of
FioDataPoint containing the weather conditions day-by-day
for the next week. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableFioResponse that have equal attribute values. |
FioFlag |
flags()
An instance of
FioFlag containing miscellaneous metadata concerning this
request. |
int |
hashCode()
Computes a hash code from attributes:
latitude, longitude, timezone, offset, currently, minutely, hourly, daily, alerts, flags. |
FioDataBlock |
hourly()
An instance of
FioDataPoint containing the weather conditions hour-by-hour
for the next two days. |
BigDecimal |
latitude()
The requested latitude.
|
BigDecimal |
longitude()
The requested longitude.
|
FioDataBlock |
minutely()
An instance of
FioDataPoint containing the weather conditions
minute-by-minute for the next hour. |
int |
offset()
The current timezone offset in hours from GMT.
|
String |
timezone()
The IANA timezone name for the requested location (e.g.
|
String |
toString()
Prints the immutable value
FioResponse with attribute values. |
ImmutableFioResponse |
withAlerts(FioAlert... elements)
Copy the current immutable object with elements that replace the content of
alerts. |
ImmutableFioResponse |
withAlerts(Iterable<? extends FioAlert> elements)
Copy the current immutable object with elements that replace the content of
alerts. |
ImmutableFioResponse |
withCurrently(FioDataPoint value)
Copy the current immutable object by setting a value for the
currently attribute. |
ImmutableFioResponse |
withDaily(FioDataBlock value)
Copy the current immutable object by setting a value for the
daily attribute. |
ImmutableFioResponse |
withFlags(FioFlag value)
Copy the current immutable object by setting a value for the
flags attribute. |
ImmutableFioResponse |
withHourly(FioDataBlock value)
Copy the current immutable object by setting a value for the
hourly attribute. |
ImmutableFioResponse |
withLatitude(BigDecimal value)
Copy the current immutable object by setting a value for the
latitude attribute. |
ImmutableFioResponse |
withLongitude(BigDecimal value)
Copy the current immutable object by setting a value for the
longitude attribute. |
ImmutableFioResponse |
withMinutely(FioDataBlock value)
Copy the current immutable object by setting a value for the
minutely attribute. |
ImmutableFioResponse |
withOffset(int value)
Copy the current immutable object by setting a value for the
offset attribute. |
ImmutableFioResponse |
withTimezone(String value)
Copy the current immutable object by setting a value for the
timezone attribute. |
public BigDecimal latitude()
latitude in interface FioResponsepublic BigDecimal longitude()
longitude in interface FioResponsepublic String timezone()
timezone in interface FioResponsepublic int offset()
offset in interface FioResponsepublic FioDataPoint currently()
FioDataPoint containing the current weather conditions at
the requested location.currently in interface FioResponsepublic FioDataBlock minutely()
FioDataPoint containing the weather conditions
minute-by-minute for the next hour.minutely in interface FioResponsepublic FioDataBlock hourly()
FioDataPoint containing the weather conditions hour-by-hour
for the next two days.hourly in interface FioResponsepublic FioDataBlock daily()
FioDataPoint containing the weather conditions day-by-day
for the next week.daily in interface FioResponsepublic List<FioAlert> alerts()
FioAlert instances, which, if present, contains any severe
weather alerts, issued by a governmental weather authority, pertinent to the
requested location.alerts in interface FioResponsepublic FioFlag flags()
FioFlag containing miscellaneous metadata concerning this
request.flags in interface FioResponsepublic final ImmutableFioResponse 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 ImmutableFioResponse 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 ImmutableFioResponse 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 ImmutableFioResponse 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 ImmutableFioResponse withCurrently(FioDataPoint 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 ImmutableFioResponse withMinutely(FioDataBlock 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 ImmutableFioResponse withHourly(FioDataBlock 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 ImmutableFioResponse withDaily(FioDataBlock 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 ImmutableFioResponse withAlerts(FioAlert... elements)
alerts.elements - The elements to setthis objectpublic final ImmutableFioResponse withAlerts(Iterable<? extends FioAlert> 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 ImmutableFioResponse withFlags(FioFlag 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 flagsthis objectpublic boolean equals(Object another)
ImmutableFioResponse that have equal attribute values.public int hashCode()
latitude, longitude, timezone, offset, currently, minutely, hourly, daily, alerts, flags.public String toString()
FioResponse with attribute values.public static ImmutableFioResponse copyOf(FioResponse instance)
FioResponse 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 ImmutableFioResponse.Builder builder()
ImmutableFioResponse.Copyright © 2016. All rights reserved.