Package | Description |
---|---|
net.degreedays.api.data |
For specifying and receiving degree-day data and temperature data from the API.
|
net.degreedays.api.data.impl |
Implementations of abstract types from
net.degreedays.api.data . |
net.degreedays.time |
Classes for working with dates, times, and date-ranges in the context of degree days and energy data.
|
Modifier and Type | Method and Description |
---|---|
static YearlyBreakdown |
DatedBreakdown.yearly(Period period,
StartOfYear startOfYear)
Returns a non-null
YearlyBreakdown object that specifies
yearly degree days covering the specified period in time,
with each "year" starting on the specified day of the year. |
Modifier and Type | Method and Description |
---|---|
StartOfYear |
YearlyBreakdown.startOfYear()
Returns a non-null
StartOfYear object indicating which day
should be taken as the first of each year (inclusive). |
Constructor and Description |
---|
YearlyBreakdown(Period period,
StartOfYear startOfYear)
Constructs a
YearlyBreakdown object that specifies yearly
degree days covering the specified period in time, with each
"year" starting on the specified day of the year. |
Modifier and Type | Method and Description |
---|---|
static StartOfYear |
StartOfYear.fromString(java.lang.String startOfYearString)
Parses a string representation of a
StartOfYear in
--MM-DD format, the format used by XML Schema's
gMonthDay type (based on ISO 8601). |
static StartOfYear |
StartOfYear.of(int monthOfYearWithJanAs1,
int dayOfMonth)
Returns a non-null
StartOfYear object specifying a
definition of "years" that begin on the specified first day of the year. |
Modifier and Type | Method and Description |
---|---|
int |
StartOfYear.compareTo(StartOfYear comparisonStartOfYear)
Compares this
StartOfYear with the specified comparison
StartOfYear for chronological order. |
DayRanges |
DayRange.fullOrPartialYearsWithin(StartOfYear startOfYear)
Returns a non-null set of
DayRange objects representing the
full-or-partial years (starting on the specified StartOfYear )
that are contained within this DayRange . |
DayRange |
Day.fullYear(StartOfYear startOfYear)
Returns a non-null
DayRange representing the year (starting
on the specified StartOfYear ) in which this Day
falls. |
MaybeEmptyDayRanges |
DayRange.fullYearsWithin(StartOfYear startOfYear)
Returns a non-null possibly-empty set of
DayRange objects
representing the full years (starting on the specified
StartOfYear ) that are fully contained within this
DayRange . |
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.