@Generated(value={"Immutables.generator","DsDataPoint"}) public final class ImmutableDsDataPoint extends DsDataPoint
DsDataPoint.
Use the builder to create immutable instances:
ImmutableDsDataPoint.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableDsDataPoint.Builder
Builds instances of type
ImmutableDsDataPoint. |
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
apparentTemperature()
The apparent (or "feels like") temperature in degrees Fahrenheit.
|
BigDecimal |
apparentTemperatureMax()
The maximum value of
apparentTemperature() during a given day. |
Long |
apparentTemperatureMaxTime()
The UNIX time of when
apparentTemperatureMax() occurs during a given day. |
BigDecimal |
apparentTemperatureMin()
The minimum value of
apparentTemperature() during a given day. |
Long |
apparentTemperatureMinTime()
The UNIX time of when
apparentTemperatureMin() occurs during a given day. |
static ImmutableDsDataPoint.Builder |
builder()
Creates a builder for
ImmutableDsDataPoint. |
BigDecimal |
cloudCover()
The percentage of sky occluded by clouds, between 0 and 1, inclusive.
|
static ImmutableDsDataPoint |
copyOf(DsDataPoint instance)
Creates an immutable copy of a
DsDataPoint value. |
BigDecimal |
dewPoint()
The dew point in degrees Fahrenheit.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDsDataPoint that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
apparentTemperature, apparentTemperatureMax, apparentTemperatureMaxTime, apparentTemperatureMin, apparentTemperatureMinTime, cloudCover, dewPoint, humidity, icon, moonPhase, nearestStormBearing, nearestStormDistance, ozone, precipAccumulation, precipIntensity, precipIntensityMax, precipIntensityMaxTime, precipProbability, precipType, pressure, summary, sunriseTime, sunsetTime, temperature, temperatureMax, temperatureMaxTime, temperatureMin, temperatureMinTime, time, visibility, windBearing, windSpeed. |
BigDecimal |
humidity()
The relative humidity, between 0 and 1, inclusive.
|
DsIcon |
icon()
A machine-readable text summary of this data point, suitable for selecting an icon
for display.
|
BigDecimal |
moonPhase()
The fractional part of the lunation number during the given day: a value of 0
corresponds to a new moon, 0.25 to a first quarter moon, 0.5 to a full moon, and
0.75 to a last quarter moon.
|
BigDecimal |
nearestStormBearing()
The approximate direction of the nearest storm in degrees, with true north at 0°
and progressing clockwise.
|
BigDecimal |
nearestStormDistance()
The approximate distance to the nearest storm in miles.
|
BigDecimal |
ozone()
The columnar density of total atmospheric ozone at the given time in Dobson units.
|
BigDecimal |
precipAccumulation()
The amount of snowfall accumulation expected to occur, in inches.
|
BigDecimal |
precipIntensity()
The intensity (in inches of liquid water per hour) of precipitation occurring at
the given time.
|
BigDecimal |
precipIntensityMax()
The maximum value of
precipIntensity() during a given day. |
Long |
precipIntensityMaxTime()
The UNIX time of when
precipIntensityMax() occurs during a given day. |
BigDecimal |
precipProbability()
The probability of precipitation occurring, between 0 and 1, inclusive.
|
DsPrecipType |
precipType()
The type of precipitation occurring at the given time.
|
BigDecimal |
pressure()
The sea-level air pressure in millibars.
|
String |
summary()
A human-readable text summary of this data point.
|
Long |
sunriseTime()
The UNIX time of when the sun will rise during a given day.
|
Long |
sunsetTime()
The UNIX time of when the sun will set during a given day.
|
BigDecimal |
temperature()
The air temperature in degrees Fahrenheit.
|
BigDecimal |
temperatureMax()
The maximum value of temperature during a given day.
|
Long |
temperatureMaxTime()
The UNIX time of when
temperatureMax() occurs during a given day. |
BigDecimal |
temperatureMin()
The minimum value of temperature during a given day.
|
Long |
temperatureMinTime()
The UNIX time of when
temperatureMin() occurs during a given day. |
long |
time()
The UNIX time (that is, seconds since midnight GMT on 1 Jan 1970) at which this
data point begins.
|
String |
toString()
Prints the immutable value
DsDataPoint with attribute values. |
BigDecimal |
visibility()
The average visibility in miles, capped at 10 miles.
|
BigDecimal |
windBearing()
The direction that the wind is coming from in degrees, with true north at 0° and
progressing clockwise.
|
BigDecimal |
windSpeed()
The wind speed in miles per hour.
|
ImmutableDsDataPoint |
withApparentTemperature(BigDecimal value)
Copy the current immutable object by setting a value for the
apparentTemperature attribute. |
ImmutableDsDataPoint |
withApparentTemperatureMax(BigDecimal value)
Copy the current immutable object by setting a value for the
apparentTemperatureMax attribute. |
ImmutableDsDataPoint |
withApparentTemperatureMaxTime(Long value)
Copy the current immutable object by setting a value for the
apparentTemperatureMaxTime attribute. |
ImmutableDsDataPoint |
withApparentTemperatureMin(BigDecimal value)
Copy the current immutable object by setting a value for the
apparentTemperatureMin attribute. |
ImmutableDsDataPoint |
withApparentTemperatureMinTime(Long value)
Copy the current immutable object by setting a value for the
apparentTemperatureMinTime attribute. |
ImmutableDsDataPoint |
withCloudCover(BigDecimal value)
Copy the current immutable object by setting a value for the
cloudCover attribute. |
ImmutableDsDataPoint |
withDewPoint(BigDecimal value)
Copy the current immutable object by setting a value for the
dewPoint attribute. |
ImmutableDsDataPoint |
withHumidity(BigDecimal value)
Copy the current immutable object by setting a value for the
humidity attribute. |
ImmutableDsDataPoint |
withIcon(DsIcon value)
Copy the current immutable object by setting a value for the
icon attribute. |
ImmutableDsDataPoint |
withMoonPhase(BigDecimal value)
Copy the current immutable object by setting a value for the
moonPhase attribute. |
ImmutableDsDataPoint |
withNearestStormBearing(BigDecimal value)
Copy the current immutable object by setting a value for the
nearestStormBearing attribute. |
ImmutableDsDataPoint |
withNearestStormDistance(BigDecimal value)
Copy the current immutable object by setting a value for the
nearestStormDistance attribute. |
ImmutableDsDataPoint |
withOzone(BigDecimal value)
Copy the current immutable object by setting a value for the
ozone attribute. |
ImmutableDsDataPoint |
withPrecipAccumulation(BigDecimal value)
Copy the current immutable object by setting a value for the
precipAccumulation attribute. |
ImmutableDsDataPoint |
withPrecipIntensity(BigDecimal value)
Copy the current immutable object by setting a value for the
precipIntensity attribute. |
ImmutableDsDataPoint |
withPrecipIntensityMax(BigDecimal value)
Copy the current immutable object by setting a value for the
precipIntensityMax attribute. |
ImmutableDsDataPoint |
withPrecipIntensityMaxTime(Long value)
Copy the current immutable object by setting a value for the
precipIntensityMaxTime attribute. |
ImmutableDsDataPoint |
withPrecipProbability(BigDecimal value)
Copy the current immutable object by setting a value for the
precipProbability attribute. |
ImmutableDsDataPoint |
withPrecipType(DsPrecipType value)
Copy the current immutable object by setting a value for the
precipType attribute. |
ImmutableDsDataPoint |
withPressure(BigDecimal value)
Copy the current immutable object by setting a value for the
pressure attribute. |
ImmutableDsDataPoint |
withSummary(String value)
Copy the current immutable object by setting a value for the
summary attribute. |
ImmutableDsDataPoint |
withSunriseTime(Long value)
Copy the current immutable object by setting a value for the
sunriseTime attribute. |
ImmutableDsDataPoint |
withSunsetTime(Long value)
Copy the current immutable object by setting a value for the
sunsetTime attribute. |
ImmutableDsDataPoint |
withTemperature(BigDecimal value)
Copy the current immutable object by setting a value for the
temperature attribute. |
ImmutableDsDataPoint |
withTemperatureMax(BigDecimal value)
Copy the current immutable object by setting a value for the
temperatureMax attribute. |
ImmutableDsDataPoint |
withTemperatureMaxTime(Long value)
Copy the current immutable object by setting a value for the
temperatureMaxTime attribute. |
ImmutableDsDataPoint |
withTemperatureMin(BigDecimal value)
Copy the current immutable object by setting a value for the
temperatureMin attribute. |
ImmutableDsDataPoint |
withTemperatureMinTime(Long value)
Copy the current immutable object by setting a value for the
temperatureMinTime attribute. |
ImmutableDsDataPoint |
withTime(long value)
Copy the current immutable object by setting a value for the
time attribute. |
ImmutableDsDataPoint |
withVisibility(BigDecimal value)
Copy the current immutable object by setting a value for the
visibility attribute. |
ImmutableDsDataPoint |
withWindBearing(BigDecimal value)
Copy the current immutable object by setting a value for the
windBearing attribute. |
ImmutableDsDataPoint |
withWindSpeed(BigDecimal value)
Copy the current immutable object by setting a value for the
windSpeed attribute. |
public BigDecimal apparentTemperature()
Not on DsResponse.daily() data points
apparentTemperature in class DsDataPointpublic BigDecimal apparentTemperatureMax()
apparentTemperature() during a given day.
Only on DsResponse.daily() data points.
apparentTemperatureMax in class DsDataPointpublic Long apparentTemperatureMaxTime()
apparentTemperatureMax() occurs during a given day.
Only on DsResponse.daily() data points.
apparentTemperatureMaxTime in class DsDataPointpublic BigDecimal apparentTemperatureMin()
apparentTemperature() during a given day.
Only on DsResponse.daily() data points.
apparentTemperatureMin in class DsDataPointpublic Long apparentTemperatureMinTime()
apparentTemperatureMin() occurs during a given day.
Only on DsResponse.daily() data points.
apparentTemperatureMinTime in class DsDataPointpublic BigDecimal cloudCover()
cloudCover in class DsDataPointpublic BigDecimal dewPoint()
dewPoint in class DsDataPointpublic BigDecimal humidity()
humidity in class DsDataPointpublic DsIcon icon()
icon in class DsDataPointpublic BigDecimal moonPhase()
Only on DsResponse.daily() data points
moonPhase in class DsDataPointpublic BigDecimal nearestStormBearing()
nearestStormDistance() is zero, then this
value will not be defined.)
Only on DsResponse.currently() data points
nearestStormBearing in class DsDataPointpublic BigDecimal nearestStormDistance()
Only on DsResponse.currently() data points
nearestStormDistance in class DsDataPointpublic BigDecimal ozone()
ozone in class DsDataPointpublic BigDecimal precipAccumulation()
Only on DsResponse.hourly() and DsResponse.daily() data points
precipAccumulation in class DsDataPointpublic BigDecimal precipIntensity()
precipIntensity in class DsDataPointpublic BigDecimal precipIntensityMax()
precipIntensity() during a given day.
Only on DsResponse.daily() data points
precipIntensityMax in class DsDataPointpublic Long precipIntensityMaxTime()
precipIntensityMax() occurs during a given day.
Only on DsResponse.daily() data points.
precipIntensityMaxTime in class DsDataPointpublic BigDecimal precipProbability()
precipProbability in class DsDataPointpublic DsPrecipType precipType()
precipIntensity() is zero, then this property will not be defined.)precipType in class DsDataPointpublic BigDecimal pressure()
pressure in class DsDataPointpublic String summary()
summary in class DsDataPointpublic Long sunriseTime()
Only on DsResponse.daily() data points
sunriseTime in class DsDataPointpublic Long sunsetTime()
Only on DsResponse.daily() data points
sunsetTime in class DsDataPointpublic BigDecimal temperature()
Not on DsResponse.daily() data points.
temperature in class DsDataPointpublic BigDecimal temperatureMax()
Only on DsResponse.daily() data points.
temperatureMax in class DsDataPointpublic Long temperatureMaxTime()
temperatureMax() occurs during a given day.
Only on DsResponse.daily() data points.
temperatureMaxTime in class DsDataPointpublic BigDecimal temperatureMin()
Only on DsResponse.daily() data points.
temperatureMin in class DsDataPointpublic Long temperatureMinTime()
temperatureMin() occurs during a given day.
Only on DsResponse.daily() data points.
temperatureMinTime in class DsDataPointpublic long time()
DsResponse.minutely() data point are always aligned to
the top of the minute, DsResponse.hourly() data point objects to the top of
the hour, and DsResponse.daily() data point objects to midnight of the day,
all according to the local time zone.time in class DsDataPointpublic BigDecimal visibility()
visibility in class DsDataPointpublic BigDecimal windBearing()
windSpeed() is zero, then this value will not
be defined.)windBearing in class DsDataPointpublic BigDecimal windSpeed()
windSpeed in class DsDataPointpublic final ImmutableDsDataPoint withApparentTemperature(BigDecimal value)
apparentTemperature attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for apparentTemperature (can be null)this objectpublic final ImmutableDsDataPoint withApparentTemperatureMax(BigDecimal value)
apparentTemperatureMax attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for apparentTemperatureMax (can be null)this objectpublic final ImmutableDsDataPoint withApparentTemperatureMaxTime(Long value)
apparentTemperatureMaxTime attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for apparentTemperatureMaxTime (can be null)this objectpublic final ImmutableDsDataPoint withApparentTemperatureMin(BigDecimal value)
apparentTemperatureMin attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for apparentTemperatureMin (can be null)this objectpublic final ImmutableDsDataPoint withApparentTemperatureMinTime(Long value)
apparentTemperatureMinTime attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for apparentTemperatureMinTime (can be null)this objectpublic final ImmutableDsDataPoint withCloudCover(BigDecimal value)
cloudCover attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for cloudCover (can be null)this objectpublic final ImmutableDsDataPoint withDewPoint(BigDecimal value)
dewPoint attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for dewPoint (can be null)this objectpublic final ImmutableDsDataPoint withHumidity(BigDecimal value)
humidity attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for humidity (can be null)this objectpublic final ImmutableDsDataPoint withIcon(DsIcon value)
icon attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for icon (can be null)this objectpublic final ImmutableDsDataPoint withMoonPhase(BigDecimal value)
moonPhase attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for moonPhase (can be null)this objectpublic final ImmutableDsDataPoint withNearestStormBearing(BigDecimal value)
nearestStormBearing attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for nearestStormBearing (can be null)this objectpublic final ImmutableDsDataPoint withNearestStormDistance(BigDecimal value)
nearestStormDistance attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for nearestStormDistance (can be null)this objectpublic final ImmutableDsDataPoint withOzone(BigDecimal value)
ozone attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for ozone (can be null)this objectpublic final ImmutableDsDataPoint withPrecipAccumulation(BigDecimal value)
precipAccumulation attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for precipAccumulation (can be null)this objectpublic final ImmutableDsDataPoint withPrecipIntensity(BigDecimal value)
precipIntensity attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for precipIntensity (can be null)this objectpublic final ImmutableDsDataPoint withPrecipIntensityMax(BigDecimal value)
precipIntensityMax attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for precipIntensityMax (can be null)this objectpublic final ImmutableDsDataPoint withPrecipIntensityMaxTime(Long value)
precipIntensityMaxTime attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for precipIntensityMaxTime (can be null)this objectpublic final ImmutableDsDataPoint withPrecipProbability(BigDecimal value)
precipProbability attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for precipProbability (can be null)this objectpublic final ImmutableDsDataPoint withPrecipType(DsPrecipType value)
precipType attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for precipType (can be null)this objectpublic final ImmutableDsDataPoint withPressure(BigDecimal value)
pressure attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for pressure (can be null)this objectpublic final ImmutableDsDataPoint withSummary(String value)
summary attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for summary (can be null)this objectpublic final ImmutableDsDataPoint withSunriseTime(Long value)
sunriseTime attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for sunriseTime (can be null)this objectpublic final ImmutableDsDataPoint withSunsetTime(Long value)
sunsetTime attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for sunsetTime (can be null)this objectpublic final ImmutableDsDataPoint withTemperature(BigDecimal value)
temperature attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for temperature (can be null)this objectpublic final ImmutableDsDataPoint withTemperatureMax(BigDecimal value)
temperatureMax attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for temperatureMax (can be null)this objectpublic final ImmutableDsDataPoint withTemperatureMaxTime(Long value)
temperatureMaxTime attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for temperatureMaxTime (can be null)this objectpublic final ImmutableDsDataPoint withTemperatureMin(BigDecimal value)
temperatureMin attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for temperatureMin (can be null)this objectpublic final ImmutableDsDataPoint withTemperatureMinTime(Long value)
temperatureMinTime attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for temperatureMinTime (can be null)this objectpublic final ImmutableDsDataPoint withTime(long value)
time attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for timethis objectpublic final ImmutableDsDataPoint withVisibility(BigDecimal value)
visibility attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for visibility (can be null)this objectpublic final ImmutableDsDataPoint withWindBearing(BigDecimal value)
windBearing attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for windBearing (can be null)this objectpublic final ImmutableDsDataPoint withWindSpeed(BigDecimal value)
windSpeed attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for windSpeed (can be null)this objectpublic boolean equals(Object another)
ImmutableDsDataPoint that have equal attribute values.public int hashCode()
apparentTemperature, apparentTemperatureMax, apparentTemperatureMaxTime, apparentTemperatureMin, apparentTemperatureMinTime, cloudCover, dewPoint, humidity, icon, moonPhase, nearestStormBearing, nearestStormDistance, ozone, precipAccumulation, precipIntensity, precipIntensityMax, precipIntensityMaxTime, precipProbability, precipType, pressure, summary, sunriseTime, sunsetTime, temperature, temperatureMax, temperatureMaxTime, temperatureMin, temperatureMinTime, time, visibility, windBearing, windSpeed.public String toString()
DsDataPoint with attribute values.public static ImmutableDsDataPoint copyOf(DsDataPoint instance)
DsDataPoint 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 ImmutableDsDataPoint.Builder builder()
ImmutableDsDataPoint.Copyright © 2016. All rights reserved.