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 MonthlyBreakdown |
DatedBreakdown.monthly(Period period,
StartOfMonth startOfMonth)
Returns a non-null
MonthlyBreakdown object that specifies
monthly degree days covering the specified period in time,
with each "month" starting on the specified day of the month. |
Modifier and Type | Method and Description |
---|---|
StartOfMonth |
MonthlyBreakdown.startOfMonth()
Returns a non-null
StartOfMonth object indicating which day
should be taken as the first of each month (inclusive). |
Constructor and Description |
---|
MonthlyBreakdown(Period period,
StartOfMonth startOfMonth)
Constructs a
MonthlyBreakdown object that specifies monthly
degree days covering the specified period in time, with each
"month" starting on the specified day of the month. |
Modifier and Type | Method and Description |
---|---|
static StartOfMonth |
StartOfMonth.fromString(java.lang.String startOfMonthString)
Parses a string representation of a
StartOfMonth in
---DD format, the format used by XML Schema's
gDay type (based on ISO 8601). |
static StartOfMonth |
StartOfMonth.of(int dayOfMonth)
Returns a non-null
StartOfMonth object specifying a
definition of "months" that begin on the specified day of the month. |
Modifier and Type | Method and Description |
---|---|
int |
StartOfMonth.compareTo(StartOfMonth comparisonStartOfMonth)
Compares this
StartOfMonth with the specified comparison
StartOfMonth for chronological order. |
DayRange |
Day.fullMonth(StartOfMonth startOfMonth)
Returns a non-null
DayRange representing the month (starting
on the specified StartOfMonth ) in which this
Day falls. |
MaybeEmptyDayRanges |
DayRange.fullMonthsWithin(StartOfMonth startOfMonth)
Returns a non-null possibly-empty set of
DayRange objects
representing the full months (starting on the specified
StartOfMonth ) that are fully contained within this
DayRange . |
DayRanges |
DayRange.fullOrPartialMonthsWithin(StartOfMonth startOfMonth)
Returns a non-null set of
DayRange objects representing the
full-or-partial months (starting on the specified
StartOfMonth ) that are 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.