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 CustomBreakdown |
DatedBreakdown.custom(DayRanges dayRanges)
Returns a non-null
CustomBreakdown object that specifies
degree days broken down to match the DayRanges passed in. |
Modifier and Type | Method and Description |
---|---|
DayRanges |
CustomBreakdown.dayRanges()
Returns the non-null
DayRanges that specifies the dates that
each degree-day figure should cover. |
Constructor and Description |
---|
CustomBreakdown(DayRanges dayRanges)
Constructs a
CustomBreakdown object that specifies degree
days broken down to match the DayRanges passed in. |
Modifier and Type | Method and Description |
---|---|
DayRanges |
DayRange.fullOrPartialCalendarMonthsWithin()
Returns a non-null set of
DayRange objects representing the
full-or-partial calendar months that are contained within this
DayRange . |
DayRanges |
DayRange.fullOrPartialCalendarYearsWithin()
Returns a non-null set of
DayRange objects representing the
full-or-partial calendar years that are 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 . |
DayRanges |
DayRange.fullOrPartialWeeksWithin(DayOfWeek firstDayOfWeek)
Returns a non-null set of
DayRange objects representing the
full-or-partial weeks (starting on the specified
firstDayOfWeek ) that are contained within this
DayRange . |
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 . |
DayRanges |
MaybeEmptyDayRanges.notEmpty()
Returns this
MaybeEmptyDayRanges object as a
DayRanges object, which cannot be empty. |
static DayRanges |
DayRanges.of(java.util.Collection<DayRange> dayRangeObjects)
Returns a non-null
DayRanges object containing the specified
DayRange objects. |
static DayRanges |
DayRanges.of(DayRange[] dayRangeObjects)
Returns a non-null
DayRanges object containing the specified
DayRange objects. |
static DayRanges |
DayRanges.of(DayRange firstDayRangeObject,
DayRange... additionalDayRangeObjects)
Returns a non-null
DayRanges object containing the specified
DayRange objects. |
static DayRanges |
DayRanges.of(java.lang.Iterable<DayRange> dayRangeObjects)
Returns a non-null
DayRanges object containing the specified
DayRange objects. |
DayRanges |
DayRange.toDailyDayRanges()
Returns a non-null
DayRanges object representing each
Day within this DayRange as its own
DayRange (covering just one day). |
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.