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 |
---|---|
DayOfWeek |
TimeSeriesDataValue.dayOfWeek()
Returns a non-null
DayOfWeek object indicating the day of
the week that this TimeSeriesDataValue falls on in the local
time-zone of the weather station. |
Modifier and Type | Method and Description |
---|---|
static WeeklyBreakdown |
DatedBreakdown.weekly(Period period,
DayOfWeek firstDayOfWeek)
Returns a non-null
WeeklyBreakdown object that specifies
weekly degree days covering the specified period in time, with each
"week" starting on the specified day of the week. |
Modifier and Type | Method and Description |
---|---|
DayOfWeek |
WeeklyBreakdown.firstDayOfWeek()
Returns the non-null day of the week that should be the first of each
weekly period.
|
Constructor and Description |
---|
WeeklyBreakdown(Period period,
DayOfWeek firstDayOfWeek)
Constructs a
WeeklyBreakdown object that specifies weekly
degree days covering the specified period in time, with each "week"
starting on the specified day of the week. |
Modifier and Type | Method and Description |
---|---|
DayOfWeek |
OffsetDayTime.dayOfWeek()
Returns a non-null
DayOfWeek object indicating the
day of the week of this OffsetDayTime . |
DayOfWeek |
DayTime.dayOfWeek()
Returns a non-null
DayOfWeek object indicating the
day of the week of this DayTime . |
DayOfWeek |
Day.dayOfWeek()
Returns a non-null
DayOfWeek object indicating the
day of the week of this Day . |
static DayOfWeek |
DayOfWeek.fromIsoIndex(int isoIndex)
Returns the non-null
DayOfWeek represented by
isoIndex , which can be 1 for Monday,
2 for Tuesday, 3 for Wednesday, 4
for Thursday, 5 for Friday, 6 for Saturday, or
7 for Sunday. |
static DayOfWeek |
DayOfWeek.fromString(java.lang.String string)
|
DayOfWeek |
DayOfWeek.next()
Returns the non-null
DayOfWeek that comes immediately after
this DayOfWeek (e.g. as Monday comes after Sunday). |
DayOfWeek |
DayOfWeek.previous()
Returns the non-null
DayOfWeek that comes immediately before
this DayOfWeek (e.g. as Sunday comes before Monday). |
static DayOfWeek |
DayOfWeek.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DayOfWeek[] |
DayOfWeek.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
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 . |
DayRange |
Day.fullWeek(DayOfWeek firstDayOfWeek)
Returns a non-null
DayRange representing the week (starting
on the specified firstDayOfWeek ) in which this
Day falls. |
MaybeEmptyDayRanges |
DayRange.fullWeeksWithin(DayOfWeek firstDayOfWeek)
Returns a non-null possibly-empty set of
DayRange objects
representing the full weeks (starting on the specified
firstDayOfWeek ) 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.