Package | Description |
---|---|
net.degreedays.api.data |
For specifying and receiving degree-day data and temperature data from the API.
|
Modifier and Type | Class and Description |
---|---|
class |
AverageDataSpec
Defines a specification for a set of average data such as 5-year-average
degree days.
|
class |
DatedDataSpec
Defines a specification for a set of dated data such as daily, weekly, or
monthly degree days covering a specific period in time.
|
class |
TimeSeriesDataSpec
Defines a specification for a set of time-series data such as hourly
temperature data covering a specific period in time.
|
Modifier and Type | Method and Description |
---|---|
DataSpec |
DataSpecs.get(java.lang.String key)
Returns the non-null
DataSpec that has been assigned the
specified string key . |
Modifier and Type | Method and Description |
---|---|
DataSets.Builder |
DataSets.Builder.add(DataSpec dataSpec,
DataSet dataSet)
|
DataSpecs.CustomKeyBuilder |
DataSpecs.CustomKeyBuilder.add(java.lang.String key,
DataSpec dataSpec)
Adds a unique key and the
DataSpec to be associated with
it. |
DataSets.Builder |
DataSets.Builder.addFailure(DataSpec dataSpec,
Failure failure)
|
DataSet |
DataSets.get(DataSpec dataSpec)
Returns the
DataSet that was generated to fulfil the
specified DataSpec from the request, or throws a
SourceDataException if no such DataSet could be
generated. |
java.lang.String |
DataSpecs.getKey(DataSpec dataSpec)
Returns the non-null, non-empty string key associated with
dataSpec . |
Constructor and Description |
---|
DataSpecs(DataSpec dataSpecObject)
Constructs a
DataSpecs object containing the specified
DataSpec object. |
DataSpecs(DataSpec[] dataSpecObjects)
Constructs a
DataSpecs object containing the specified
DataSpec objects. |
DataSpecs(DataSpec dataSpecObject,
DataSpec... additionalDataSpecObjects)
Constructs a
DataSpecs object containing the specified
DataSpec objects. |
DataSpecs(DataSpec dataSpecObject,
DataSpec... additionalDataSpecObjects)
Constructs a
DataSpecs object containing the specified
DataSpec objects. |
Constructor and Description |
---|
DataSpecs(java.util.Collection<? extends DataSpec> dataSpecObjects)
Constructs a
DataSpecs object containing the specified
DataSpec objects. |
DataSpecs(java.lang.Iterable<? extends DataSpec> dataSpecObjects)
Constructs a
DataSpecs object containing the specified
DataSpec objects. |
See www.degreedays.net/api/ for more about the Degree Days.net API.
You can sign up for a Degree Days.net API account and read the integration guide that is useful and applicable whether you are using Java or not.