Skip navigation links
A B C D E F G H I K L M N O P R S T U V W X Y 

A

AccountKey - Class in net.degreedays.api
The shorter of the two access keys, the account key identifies a unique Degree Days.net API account.
AccountKey(String) - Constructor for class net.degreedays.api.AccountKey
Constructs an AccountKey object using the specified string account key or throws an IllegalArgumentException if the string is clearly invalid.
accountKey() - Method in class net.degreedays.api.processing.RequestSecurityInfo
 
add(String, DataSet) - Method in class net.degreedays.api.data.DataSets.Builder
Adds an association between a string key from a DataSpec in the request and a DataSet from the response.
add(DataSpec, DataSet) - Method in class net.degreedays.api.data.DataSets.Builder
Adds an association between a DataSpec from the request and a DataSet from the response, without dealing directly with the string keys that are used in the XML.
add(String, DataSpec) - Method in class net.degreedays.api.data.DataSpecs.CustomKeyBuilder
Adds a unique key and the DataSpec to be associated with it.
addExtraComponent(String, ExtraRegressionComponent) - Method in class net.degreedays.api.regression.Regression.Builder
Adds a regression component based on extra-predictor data with the specified extra-predictor key from the request.
addExtraPredictorSpec(String, ExtraPredictorSpec) - Method in class net.degreedays.api.regression.RegressionTestPlan.Builder
Adds a specification for an extra predictor included in the InputData sent to the API, to help the API test and rank the regressions that include data for that extra predictor.
addFailure(String, Failure) - Method in class net.degreedays.api.data.DataSets.Builder
Adds an association between a string key from a DataSpec in the request and a Failure from the response.
addFailure(DataSpec, Failure) - Method in class net.degreedays.api.data.DataSets.Builder
Adds an association between a DataSpec from the request and a Failure from the response, without dealing directly with the string keys that are used in the XML.
addParam(String, String) - Method in class net.degreedays.api.processing.HttpRequest.Builder
Add a new parameter.
addRegression(Regression) - Method in class net.degreedays.api.regression.RegressionResponse.Builder
 
addRequestedRegressionSpec(RegressionSpec) - Method in class net.degreedays.api.regression.RegressionTestPlan.Builder
Adds a specification for a regression that you want to receive in the response from the API.
addSource(Source) - Method in class net.degreedays.api.data.LocationDataResponse.Builder
 
addSource(Source) - Method in class net.degreedays.api.data.LocationInfoResponse.Builder
 
addSource(Source) - Method in class net.degreedays.api.regression.RegressionResponse.Builder
 
addTag(RegressionTag) - Method in class net.degreedays.api.regression.Regression.Builder
 
addValue(DatedDataValue) - Method in class net.degreedays.api.data.DatedDataSet.Builder
Adds a DatedDataValue object.
addValue(TimeSeriesDataValue) - Method in class net.degreedays.api.data.TimeSeriesDataSet.Builder
 
adjustedRSquared() - Method in class net.degreedays.api.regression.Regression
Returns the adjusted-R-squared value for this Regression.
after(Day) - Method in class net.degreedays.time.Day
Returns true if this Day object is chronologically after comparisonDay; false otherwise.
after(DayTime) - Method in class net.degreedays.time.DayTime
Returns true if this DayTime is chronologically after comparisonDayTime; false otherwise.
after(OffsetDayTime) - Method in class net.degreedays.time.OffsetDayTime
Returns true if the instant in time represented by this OffsetDayTime is after the instant in time represented by comparisonOffsetDayTime; false otherwise.
after(Time) - Method in class net.degreedays.time.Time
Returns true if this Time is chronologically after comparisonTime (assuming both are times within the same day); false otherwise.
allowPartialLatest() - Method in class net.degreedays.api.data.DatedBreakdown
Returns true if the latest day range can be partially filled (i.e. incomplete); false otherwise (the default case).
annualAverage() - Method in class net.degreedays.api.data.AverageDataSet
Returns the non-null average annual value.
asRange() - Method in class net.degreedays.time.Day
Returns a non-null DayRange covering this Day only.
average(Calculation, AverageBreakdown) - Static method in class net.degreedays.api.data.DataSpec
Returns a non-null AverageDataSpec object with the specified Calculation and AverageBreakdown.
AverageBreakdown - Class in net.degreedays.api.data
Defines how a set of average degree days should be broken down, including the period in time they should cover.
AverageDataSet - Class in net.degreedays.api.data
Contains a set of average degree-day data generated to fulfil an AverageDataSpec for a specific Location.
AverageDataSet.Builder - Class in net.degreedays.api.data
A builder class for creating immutable AverageDataSet objects e.g. for testing purposes.
AverageDataSpec - Class in net.degreedays.api.data
Defines a specification for a set of average data such as 5-year-average degree days.
AverageDataSpec(Calculation, AverageBreakdown) - Constructor for class net.degreedays.api.data.AverageDataSpec
Constructs an AverageDataSpec object with the specified Calculation and AverageBreakdown.

B

baseload() - Method in class net.degreedays.api.regression.Regression
Returns the non-null BaseloadRegressionComponent object representing the baseload component (b*days) of this Regression.
baseload() - Static method in class net.degreedays.api.regression.RegressionSpec
Returns a specification for a baseload-only regression (e.g. E = b*days) which can be built upon as per the example code.
BaseloadRegressionComponent - Class in net.degreedays.api.regression
Contains details of the baseload component (non-weather-dependent energy usage) in a regression.
BaseloadRegressionComponent.Builder - Class in net.degreedays.api.regression
A builder class for creating immutable BaseloadRegressionComponent objects e.g. for testing purposes.
baseTemperature() - Method in class net.degreedays.api.data.impl.CoolingDegreeDaysCalculation
Returns the non-null base temperature of the cooling-degree-days calculation.
baseTemperature() - Method in class net.degreedays.api.data.impl.HeatingDegreeDaysCalculation
Returns the non-null base temperature of the heating-degree-days calculation.
baseTemperature() - Method in class net.degreedays.api.regression.DegreeDaysRegressionComponent
Returns the non-null base temperature of the degree days this regression component was calculated with.
before(Day) - Method in class net.degreedays.time.Day
Returns true if this Day object is chronologically before comparisonDay; false otherwise.
before(DayTime) - Method in class net.degreedays.time.DayTime
Returns true if this DayTime is chronologically before comparisonDayTime; false otherwise.
before(OffsetDayTime) - Method in class net.degreedays.time.OffsetDayTime
Returns true if the instant in time represented by this OffsetDayTime is before the instant in time represented by comparisonOffsetDayTime; false otherwise.
before(Time) - Method in class net.degreedays.time.Time
Returns true if this Time is chronologically before comparisonTime (assuming both are times within the same day); false otherwise.
breakdown() - Method in class net.degreedays.api.data.AverageDataSpec
Returns the non-null AverageBreakdown that defines the way in which the degree days should be broken down and the period in time that they should cover.
Breakdown - Class in net.degreedays.api.data
Defines how a set of degree days should be broken down (e.g. daily, weekly, or monthly), and the period in time they should cover.
breakdown() - Method in class net.degreedays.api.data.DatedDataSpec
Returns the non-null DatedBreakdown object that defines the way in which the degree days should be broken down and the period in time that they should cover.
breakdown() - Method in class net.degreedays.api.data.TimeSeriesDataSpec
Returns the non-null DatedBreakdown object that defines the period of time that the time-series data should cover (read more on how this works).
build() - Method in class net.degreedays.api.data.AverageDataSet.Builder
 
build() - Method in class net.degreedays.api.data.DataSets.Builder
Returns a new DataSets object created according to the specification held by this builder.
build() - Method in class net.degreedays.api.data.DataSpecs.CustomKeyBuilder
Creates a DataSpecs object with the configuration currently held by this Builder.
build() - Method in class net.degreedays.api.data.DatedDataSet.Builder
 
build() - Method in class net.degreedays.api.data.LocationDataResponse.Builder
 
build() - Method in class net.degreedays.api.data.LocationInfoResponse.Builder
 
build() - Method in class net.degreedays.api.data.Source.Builder
 
build() - Method in class net.degreedays.api.data.Station.Builder
 
build() - Method in class net.degreedays.api.data.TimeSeriesDataSet.Builder
 
build() - Method in class net.degreedays.api.Failure.Builder
 
build() - Method in class net.degreedays.api.FailureResponse.Builder
 
build() - Method in class net.degreedays.api.processing.HttpRequest.Builder
 
build() - Method in class net.degreedays.api.processing.RequestSecurityInfo.Builder
 
build() - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
build() - Method in class net.degreedays.api.RateLimit.Builder
 
build() - Method in class net.degreedays.api.regression.BaseloadRegressionComponent.Builder
 
build() - Method in class net.degreedays.api.regression.DegreeDaysRegressionComponent.Builder
 
build() - Method in class net.degreedays.api.regression.ExtraRegressionComponent.Builder
 
build() - Method in class net.degreedays.api.regression.Regression.Builder
 
build() - Method in class net.degreedays.api.regression.RegressionComponent.Builder
 
build() - Method in class net.degreedays.api.regression.RegressionResponse.Builder
 
build() - Method in class net.degreedays.api.regression.RegressionTestPlan.Builder
Creates a RegressionTestPlan with the configuration currently held by this Builder.
build() - Method in class net.degreedays.api.ResponseMetadata.Builder
 
Builder() - Constructor for class net.degreedays.api.data.AverageDataSet.Builder
 
Builder(DataSpecs) - Constructor for class net.degreedays.api.data.DataSets.Builder
Note that this constructor would only usually be called by a ResponseParser, and that's not an interface that you are likely to need to deal with unless you are replacing parts of the framework.
Builder() - Constructor for class net.degreedays.api.data.DatedDataSet.Builder
 
Builder() - Constructor for class net.degreedays.api.data.LocationDataResponse.Builder
 
Builder() - Constructor for class net.degreedays.api.data.LocationInfoResponse.Builder
 
Builder() - Constructor for class net.degreedays.api.data.Source.Builder
 
Builder() - Constructor for class net.degreedays.api.data.Station.Builder
 
Builder() - Constructor for class net.degreedays.api.data.TimeSeriesDataSet.Builder
 
Builder() - Constructor for class net.degreedays.api.Failure.Builder
 
Builder() - Constructor for class net.degreedays.api.FailureResponse.Builder
 
Builder() - Constructor for class net.degreedays.api.processing.HttpRequest.Builder
 
Builder() - Constructor for class net.degreedays.api.processing.RequestSecurityInfo.Builder
 
Builder(AccountKey, SecurityKey) - Constructor for class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
Builder() - Constructor for class net.degreedays.api.RateLimit.Builder
 
Builder() - Constructor for class net.degreedays.api.regression.BaseloadRegressionComponent.Builder
 
Builder() - Constructor for class net.degreedays.api.regression.DegreeDaysRegressionComponent.Builder
 
Builder() - Constructor for class net.degreedays.api.regression.ExtraRegressionComponent.Builder
 
Builder() - Constructor for class net.degreedays.api.regression.Regression.Builder
 
Builder() - Constructor for class net.degreedays.api.regression.RegressionResponse.Builder
 
Builder(TemperatureUnit) - Constructor for class net.degreedays.api.regression.RegressionTestPlan.Builder
Constructs a RegressionTestPlan.Builder with the specified TemperatureUnit (to be used for degree days) and default values for everything else.
Builder() - Constructor for class net.degreedays.api.ResponseMetadata.Builder
 
BytesToEncodedString - Interface in net.degreedays.api.processing
Encodes a byte array into an encoded string and a label describing its encoding.

C

calculation() - Method in class net.degreedays.api.data.AverageDataSpec
Returns the non-null Calculation object that defines the way in which the degree days should be calculated in terms of their base temperature and whether they should be heating degree days or cooling degree days.
Calculation - Class in net.degreedays.api.data
Defines how degree days should be calculated e.g. HDD or CDD to a specific base temperature.
calculation() - Method in class net.degreedays.api.data.DatedDataSpec
Returns the non-null Calculation object that defines the way in which the degree days should be calculated in terms of their base temperature and whether they should be heating degree days or cooling degree days.
calculation() - Method in class net.degreedays.api.data.TimeSeriesDataSpec
Returns the non-null TimeSeriesCalculation object that defines how the time-series data should be calculated.
celsius(double) - Static method in class net.degreedays.api.data.Temperature
Returns a non-null Temperature object with the specified Celsius temperature rounded to the nearest 0.1 C.
celsiusRange(double, double, double) - Static method in class net.degreedays.api.data.Temperature
Returns a non-null low-to-high SortedSet of Temperature objects, with Celsius values running from firstValue to lastValue (inclusive), and the specified step between each consecutive temperature.
clear() - Method in class net.degreedays.api.SecurityKey
Clears all information stored internally to reduce the chances of a representation of the underlying security key remaining in memory.
close() - Method in class net.degreedays.api.processing.HttpResponseStream
Closes the HttpResponseStream.stream(), wrapping any IOException in a TransportException.
code() - Method in class net.degreedays.api.Failure
Returns the non-null, non-empty code associated with this failure.
coefficient() - Method in class net.degreedays.api.regression.RegressionComponent
Returns the coefficient of this regression component e.g. the b, h, or c (depending on the component in question) in a regression with an equation like E = b*days + h*HDD + c*CDD
coefficientPValue() - Method in class net.degreedays.api.regression.RegressionComponent
Returns the the p-value of the RegressionComponent.coefficient().
coefficientStandardError() - Method in class net.degreedays.api.regression.RegressionComponent
Returns the standard error of the RegressionComponent.coefficient().
compareTo(Temperature) - Method in class net.degreedays.api.data.Temperature
Compares two Temperature objects for low-to-high ordering.
compareTo(Day) - Method in class net.degreedays.time.Day
Compares two Day objects for chronological ordering.
compareTo(DayTime) - Method in class net.degreedays.time.DayTime
Compares two DayTime objects for chronological ordering.
compareTo(OffsetDayTime) - Method in class net.degreedays.time.OffsetDayTime
Compares two OffsetDayTime objects for chronological ordering, considering first the instants in time that they represent, and only considering their local clock times if those instants are identical.
compareTo(StartOfMonth) - Method in class net.degreedays.time.StartOfMonth
Compares this StartOfMonth with the specified comparison StartOfMonth for chronological order.
compareTo(StartOfYear) - Method in class net.degreedays.time.StartOfYear
Compares this StartOfYear with the specified comparison StartOfYear for chronological order.
compareTo(Time) - Method in class net.degreedays.time.Time
Compares two Time objects for chronological ordering (assuming both are times within the same day).
contains(Day) - Method in class net.degreedays.time.DayRange
Returns true if the specified Day is contained within this DayRange; false otherwise.
contains(DayRange) - Method in class net.degreedays.time.DayRange
Returns true if the specified DayRange is fully contained within this DayRange; false otherwise.
coolingDegreeDays(Temperature) - Static method in class net.degreedays.api.data.Calculation
Returns a non-null CoolingDegreeDaysCalculation object with the specified base temperature.
CoolingDegreeDaysCalculation - Class in net.degreedays.api.data.impl
A type of Calculation that specifies that cooling degree days should be calculated and that holds the base temperature that they should be calculated to.
CoolingDegreeDaysCalculation(Temperature) - Constructor for class net.degreedays.api.data.impl.CoolingDegreeDaysCalculation
Constructs a CoolingDegreeDaysCalculation object with the specified base temperature.
count() - Method in class net.degreedays.api.data.DataSpecs
Returns the number of DataSpec objects held by this DataSpecs - always greater than zero.
count() - Method in class net.degreedays.time.MaybeEmptyDayRanges
Returns the number of DayRange objects in this set.
countryCode() - Method in class net.degreedays.api.data.impl.PostalCodeLocation
Returns the non-null two-letter upper-case ISO 3166-1-alpha-2 country code of the country that the postal code belongs to.
crossValidatedRSquared() - Method in class net.degreedays.api.regression.Regression
Returns the cross-validated-R-squared value for this Regression.
custom(DayRanges) - Static method in class net.degreedays.api.data.DatedBreakdown
Returns a non-null CustomBreakdown object that specifies degree days broken down to match the DayRanges passed in.
CustomBreakdown - Class in net.degreedays.api.data.impl
A type of DatedBreakdown used to specify that degree days should be broken down into the custom date ranges specified e.g. to match the dates of your energy-usage records.
CustomBreakdown(DayRanges) - Constructor for class net.degreedays.api.data.impl.CustomBreakdown
Constructs a CustomBreakdown object that specifies degree days broken down to match the DayRanges passed in.
CustomKeyBuilder() - Constructor for class net.degreedays.api.data.DataSpecs.CustomKeyBuilder
Constructs an empty DataSpecs.CustomKeyBuilder.
cvrmse() - Method in class net.degreedays.api.regression.Regression
Returns the CVRMSE of this Regression.

D

daily(Period) - Static method in class net.degreedays.api.data.DatedBreakdown
Returns a non-null DailyBreakdown object that specifies daily degree days covering the specified period in time.
DailyBreakdown - Class in net.degreedays.api.data.impl
A type of DatedBreakdown used to specify that degree days should be broken down on a daily basis and cover a specific Period in time.
DailyBreakdown(Period) - Constructor for class net.degreedays.api.data.impl.DailyBreakdown
Constructs a DailyBreakdown object that specifies daily degree days covering the specified period in time.
DataApi - Class in net.degreedays.api.data
Provides easy, type-safe access to the API's data-related operations.
DataApi(RequestProcessor) - Constructor for class net.degreedays.api.data.DataApi
Constructs a DataApi object that uses the specified RequestProcessor internally.
dataApi() - Method in class net.degreedays.api.DegreeDaysApi
Returns a non-null DataApi object, providing easy, type-safe access to the API's data-related operations.
DataSet - Class in net.degreedays.api.data
Contains a set of degree-day data generated to fulfil a DataSpec for a specific Location.
DataSets - Class in net.degreedays.api.data
Contains all sets of degree-day data generated to fulfil the DataSpecs for a specific Location.
dataSets() - Method in class net.degreedays.api.data.LocationDataResponse
Returns the non-null DataSets object containing the sets of data generated to fulfil the DataSpecs from the LocationDataRequest that led to this response.
DataSets.Builder - Class in net.degreedays.api.data
A builder class for creating immutable DataSets objects e.g. for testing purposes.
DataSpec - Class in net.degreedays.api.data
Defines a specification of a single set of degree-day data (or temperature data) in all aspects other than the location that the data should be generated for.
DataSpecs - Class in net.degreedays.api.data
Defines up to 120 sets of data that should be generated to fulfil a LocationDataRequest.
DataSpecs(DataSpec[]) - Constructor for class net.degreedays.api.data.DataSpecs
Constructs a DataSpecs object containing the specified DataSpec objects.
DataSpecs(DataSpec, DataSpec...) - Constructor for class net.degreedays.api.data.DataSpecs
Constructs a DataSpecs object containing the specified DataSpec objects.
DataSpecs(Iterable<? extends DataSpec>) - Constructor for class net.degreedays.api.data.DataSpecs
Constructs a DataSpecs object containing the specified DataSpec objects.
DataSpecs(Collection<? extends DataSpec>) - Constructor for class net.degreedays.api.data.DataSpecs
Constructs a DataSpecs object containing the specified DataSpec objects.
DataSpecs(DataSpec) - Constructor for class net.degreedays.api.data.DataSpecs
Constructs a DataSpecs object containing the specified DataSpec object.
dataSpecs() - Method in class net.degreedays.api.data.LocationDataRequest
Returns the non-null DataSpecs object that specifies how the set(s) of data should be calculated and broken down.
dataSpecs() - Method in class net.degreedays.api.data.LocationInfoRequest
Returns the non-null DataSpecs object that specifies the data that is desired from the specified location.
DataSpecs.CustomKeyBuilder - Class in net.degreedays.api.data
For advanced use, this provides a way to create a DataSpecs object with custom keys.
DataTransformException - Exception in net.degreedays.api.data
Indicates that this client library could not transform a set of data into one with a different breakdown.
DataValue - Class in net.degreedays.api.data
Contains a value (e.g. an HDD or CDD value) and an approximate indication of its accuracy.
dated(Calculation, DatedBreakdown) - Static method in class net.degreedays.api.data.DataSpec
Returns a non-null DatedDataSpec object with the specified Calculation and DatedBreakdown.
DatedBreakdown - Class in net.degreedays.api.data
Defines how a set of dated degree days should be broken down, including the period in time they should cover.
DatedDataSet - Class in net.degreedays.api.data
Contains a set of dated data (e.g. daily/weekly/monthly degree days) generated to fulfil a DatedDataSpec for a specific Location.
DatedDataSet.Builder - Class in net.degreedays.api.data
A builder class for creating immutable DatedDataSet objects e.g. for testing purposes.
DatedDataSpec - Class in net.degreedays.api.data
Defines a specification for a set of dated data such as daily, weekly, or monthly degree days covering a specific period in time.
DatedDataSpec(Calculation, DatedBreakdown) - Constructor for class net.degreedays.api.data.DatedDataSpec
Constructs a DatedDataSpec object with the specified Calculation and DatedBreakdown.
DatedDataValue - Class in net.degreedays.api.data
Contains a degree-day value for a specific dated period (a single day or a range of days like a specific week, month, or year).
DateFormatter - Interface in net.degreedays.api.processing
Formats dates as strings.
day() - Method in class net.degreedays.api.data.TimeSeriesDataValue
Returns a non-null Day object indicating the YYYY-MM-DD date that this TimeSeriesDataValue falls on in the local time-zone of the weather station.
Day - Class in net.degreedays.time
A time-zone-independent representation of a YYYY-MM-DD date.
Day(int, int, int) - Constructor for class net.degreedays.time.Day
Constructs a Day object representing a date with the specified year, month, and day.
day() - Method in class net.degreedays.time.DayTime
Returns a non-null Day object representing the YYYY-MM-DD component of this DayTime.
day() - Method in class net.degreedays.time.OffsetDayTime
Returns a non-null Day object representing the YYYY-MM-DD component of this OffsetDayTime.
dayAt(int) - Method in class net.degreedays.time.DayRange
Returns the non-null Day at the specified zero-based index within this DayRange.
dayCount() - Method in class net.degreedays.time.DayRange
Returns the number of days covered by this DayRange (always 1 or more).
DayNormalization - Enum in net.degreedays.api.regression
Defines the day normalization used in the regression process – an important consideration when periods of energy usage cover different lengths of time.
dayNormalization() - Method in class net.degreedays.api.regression.RegressionTestPlan
Returns the DayNormalization to be used in the regression process.
dayOfMonth() - Method in class net.degreedays.api.data.TimeSeriesDataValue
Returns a number between 1 and 31 (inclusive) indicating the day of the month that this TimeSeriesDataValue falls on in the local time-zone of the weather station.
dayOfMonth() - Method in class net.degreedays.time.Day
Returns a number between 1 and 31 (inclusive) indicating the day-of-the-month component of this Day.
dayOfMonth() - Method in class net.degreedays.time.DayTime
Returns a number between 1 and 31 (inclusive) indicating the day-of-the-month component of this DayTime.
dayOfMonth() - Method in class net.degreedays.time.OffsetDayTime
Returns a number between 1 and 31 (inclusive) indicating the day-of-the-month component of this OffsetDayTime.
dayOfMonth() - Method in class net.degreedays.time.StartOfMonth
Returns a number between 1 and 28 (inclusive) indicating which day should be taken as the first of the month.
dayOfMonth() - Method in class net.degreedays.time.StartOfYear
Returns the number between 1 and the number of days in StartOfYear.monthOfYear() (inclusive) indicating which day in monthOfYear() is the first day of the "year" defined by this StartOfYear.
dayOfWeek() - Method in class net.degreedays.api.data.TimeSeriesDataValue
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.
dayOfWeek() - Method in class net.degreedays.time.Day
Returns a non-null DayOfWeek object indicating the day of the week of this Day.
DayOfWeek - Enum in net.degreedays.time
Defines the day of the week, with enum constants to represent all 7 (Monday to Sunday).
dayOfWeek() - Method in class net.degreedays.time.DayTime
Returns a non-null DayOfWeek object indicating the day of the week of this DayTime.
dayOfWeek() - Method in class net.degreedays.time.OffsetDayTime
Returns a non-null DayOfWeek object indicating the day of the week of this OffsetDayTime.
dayOfYear() - Method in class net.degreedays.api.data.TimeSeriesDataValue
Returns a number between 1 and 366 inclusive (365 for non-leap years) indicating the day of the year that this TimeSeriesDataValue falls on in the local time-zone of the weather station.
dayOfYear() - Method in class net.degreedays.time.Day
Returns a number between 1 and 366 inclusive (365 for non-leap years) indicating the day of the year of this Day.
dayOfYear() - Method in class net.degreedays.time.DayTime
Returns a number between 1 and 366 inclusive (365 for non-leap years) indicating the day of the year of this DayTime.
dayOfYear() - Method in class net.degreedays.time.OffsetDayTime
Returns a number between 1 and 366 inclusive (365 for non-leap years) indicating the day of the year of this OffsetDayTime.
dayRange() - Method in class net.degreedays.api.data.DatedDataValue
Returns a non-null DayRange object indicating the period in time that this DatedDataValue covers.
dayRange() - Method in class net.degreedays.api.data.impl.DayRangePeriod
Returns the non-null DayRange object that specifies the day(s) that this period covers.
dayRange(DayRange) - Static method in class net.degreedays.api.data.Period
Returns a non-null DayRangePeriod object that specifies the period covered by dayRange.
dayRange() - Method in class net.degreedays.api.regression.InputPeriod
Returns the non-null period of time covered by this InputPeriod.
DayRange - Class in net.degreedays.time
Specifies a range of one or more days e.g. 2020-01-01 to 2020-12-31.
DayRange(Day, Day) - Constructor for class net.degreedays.time.DayRange
Constructs a DayRange object that starts on the specified first day and ends on the specified last day.
DayRangePeriod - Class in net.degreedays.api.data.impl
A type of Period that is defined explicitly in terms of the range of days that it covers.
DayRangePeriod(DayRange) - Constructor for class net.degreedays.api.data.impl.DayRangePeriod
Constructs a DayRangePeriod object that specifies the period covered by dayRange.
dayRanges() - Method in class net.degreedays.api.data.impl.CustomBreakdown
Returns the non-null DayRanges that specifies the dates that each degree-day figure should cover.
DayRanges - Class in net.degreedays.time
A chronologically-ordered set of one or more non-overlapping DayRange objects.
daysAfter(Day) - Method in class net.degreedays.time.Day
Returns the number of days that this Day is after comparisonDay, which will be negative if this Day comes first chronologically.
daysBefore(Day) - Method in class net.degreedays.time.Day
Returns the number of days that this Day is before comparisonDay, which will be negative if comparisonDay comes first chronologically.
dayTime() - Method in class net.degreedays.api.data.TimeSeriesDataValue
Returns a non-null DayTime object indicating the YYYY-MM-DDThh:mm date-time of this TimeSeriesDataValue in the local time-zone of the weather station.
DayTime - Class in net.degreedays.time
Represents a date-time without a time-zone, such as 2020-04-10T14:55.
DayTime(Day, Time) - Constructor for class net.degreedays.time.DayTime
Constructs a DayTime object with the specified Day and Time.
DayTime(int, int, int, int, int) - Constructor for class net.degreedays.time.DayTime
Constructs a DayTime object with the specified year, month, day, hour, and minute.
dayTime() - Method in class net.degreedays.time.OffsetDayTime
Returns a non-null DayTime object representing the YYYY-MM-DDThh:mm component of this OffsetDayTime.
DegreeDaysApi - Class in net.degreedays.api
The starting point for all API operations. If you're new to this API, read the docs for this class first.
DegreeDaysApi(AccountKey, SecurityKey) - Constructor for class net.degreedays.api.DegreeDaysApi
Constructs a DegreeDaysApi object that internally uses a default RequestProcessor configured with the specified access keys.
DegreeDaysApi(RequestProcessor) - Constructor for class net.degreedays.api.DegreeDaysApi
Constructs a DegreeDaysApi object that internally uses the specified RequestProcessor.
DegreeDaysApiException - Exception in net.degreedays.api
Superclass of all the API exceptions that you are likely to want to catch explicitly.
DegreeDaysRegressionComponent - Class in net.degreedays.api.regression
Contains details of a heating or cooling component in a regression, with the base temperature and degree days used, as well as the usual coefficient and stats.
DegreeDaysRegressionComponent.Builder - Class in net.degreedays.api.regression
A builder class for creating immutable DegreeDaysRegressionComponent objects e.g. for testing purposes.
dispatch(HttpRequest) - Method in interface net.degreedays.api.processing.HttpRequestDispatcher
Calling code is responsible for closing the stream that this returns.
displayName() - Method in class net.degreedays.api.data.Station
Returns a non-null, non-empty string representing the name of the weather station.
Distance - Class in net.degreedays.geo
Defines a distance in terms of its numeric value and its unit of measurement (e.g.
Distance(double, DistanceUnit) - Constructor for class net.degreedays.geo.Distance
Constructs a new Distance object with the specified value and unit of measurement.
distanceFromTarget() - Method in class net.degreedays.api.data.Source
Returns the non-null distance of the Source.station() from the target location that was specified in the original request for data.
distanceTo(LongLat) - Method in class net.degreedays.geo.LongLat
Returns a Distance object that represents the shortest distance along the surface of the Earth from this to the specified longLat.
DistanceUnit - Enum in net.degreedays.geo
Defines the units of distance measurement with enum constants to represent metres, kilometres, feet, and miles.

E

east(Distance) - Method in class net.degreedays.geo.LongLat
Returns a LongLat object that represents a position the specified distance East of this.
elevation() - Method in class net.degreedays.api.data.Station
Returns the non-null elevation of the weather station.
encoded() - Method in class net.degreedays.api.processing.EncodedString
 
EncodedString - Class in net.degreedays.api.processing
An encoded string and a label describing its encoding.
EncodedString(String, String) - Constructor for class net.degreedays.api.processing.EncodedString
 
encoding() - Method in class net.degreedays.api.processing.EncodedString
 
endpoint() - Method in class net.degreedays.api.processing.RequestSecurityInfo
 
EndpointGetter - Interface in net.degreedays.api.processing
Gets an endpoint URL for a request.
equals(Object) - Method in class net.degreedays.api.AccountKey
An AccountKey object can only be equal to an AccountKey object with an identical canonical string account key.
equals(Object) - Method in class net.degreedays.api.data.AverageDataSet
Returns true if o is an AverageDataSet containing equal values and calculated from data covering an equal period in time.
equals(Object) - Method in class net.degreedays.api.data.Breakdown
Two Breakdown objects are equal if they have the same class and the same configuration.
equals(Object) - Method in class net.degreedays.api.data.Calculation
Two Calculation objects are equal if they have the same class and the same configuration.
equals(Object) - Method in class net.degreedays.api.data.DataSets
A DataSets object is equal to another DataSets object with an equal DataSet for each DataSpec that it was created with.
equals(Object) - Method in class net.degreedays.api.data.DataSpec
Two DataSpec objects are equal if they have the same class and the same configuration.
equals(Object) - Method in class net.degreedays.api.data.DataSpecs
Two DataSpecs objects are equal if they contain the same set of unique DataSpec objects - neither keys nor the order of keys make any difference.
equals(Object) - Method in class net.degreedays.api.data.DataValue
Returns true if o is a DataValue object of the same type as this with an equal DataValue.value() and DataValue.percentageEstimated().
equals(Object) - Method in class net.degreedays.api.data.DatedDataSet
Returns true if o is a DatedDataSet containing equal values covering equal dates, and with an equal DatedDataSet.percentageEstimated().
equals(Object) - Method in class net.degreedays.api.data.DatedDataValue
Returns true if o is a DatedDataValue object with an equal value(), percentageEstimated(), and DatedDataValue.dayRange(); false otherwise.
equals(Object) - Method in class net.degreedays.api.data.Location
Two Location objects are equal if it can be ascertained that they both represent the exact same weather station(s) or geographic location, and that two requests for data, one with each Location and identical in every other respect, would return identical data.
equals(Object) - Method in class net.degreedays.api.data.LocationDataRequest
Two LocationDataRequest objects are equal if it can be ascertained that they are specifying the same set(s) of data from the same location.
equals(Object) - Method in class net.degreedays.api.data.LocationDataResponse
Returns true if o is a LocationDataResponse with equal values for everything apart from the metadata() (which is not considered in the equality test).
equals(Object) - Method in class net.degreedays.api.data.LocationInfoRequest
Two LocationInfoRequest objects are equal if it can be ascertained that they are specifying the same set(s) of data from the same location.
equals(Object) - Method in class net.degreedays.api.data.LocationInfoResponse
Returns true if o is a LocationInfoResponse with equal values for everything apart from the metadata() (which is not considered in the equality test).
equals(Object) - Method in class net.degreedays.api.data.Period
Two Period objects are equal if it can be ascertained that they will always represent the same period in time as each other when compared at the same time and in the same context.
equals(Object) - Method in class net.degreedays.api.data.Source
Returns true if o is a Source object with equal fields to this.
equals(Object) - Method in class net.degreedays.api.data.Station
Returns true if o is a Station object with equal fields to this.
equals(Object) - Method in class net.degreedays.api.data.Temperature
Two Temperature objects can only be equal if they have the same units and temperature value (value comparisons being made after any rounding).
equals(Object) - Method in class net.degreedays.api.data.TimeSeriesCalculation
Two TimeSeriesCalculation objects are equal if they have the same class and the same configuration.
equals(Object) - Method in class net.degreedays.api.data.TimeSeriesDataSet
Returns true if o is a TimeSeriesDataSet containing equal values and with an equal TimeSeriesDataSet.percentageEstimated().
equals(Object) - Method in class net.degreedays.api.data.TimeSeriesDataValue
Returns true if o is a TimeSeriesDataValue object with an equal value(), percentageEstimated(), and TimeSeriesDataValue.offsetDayTime(); false otherwise.
equals(Object) - Method in class net.degreedays.api.Failure
A Failure can only be equal to another Failure with an equal Failure.code() and Failure.message().
equals(Object) - Method in class net.degreedays.api.FailureResponse
Returns true if o is a FailureResponse with an equal FailureResponse.failure() (the metadata() is not considered in the equality test).
equals(Object) - Method in class net.degreedays.api.processing.EncodedString
 
equals(Object) - Method in class net.degreedays.api.processing.HttpRequest
Returns true if o is an HttpRequest object with an equal URL and equal parameters, irrespective of the order of the parameter names returned by HttpRequest.getParamNames().
equals(Object) - Method in class net.degreedays.api.processing.RequestSecurityInfo
Returns true if o is a RequestSecurityInfo object with equal properties.
equals(Object) - Method in class net.degreedays.api.processing.Signature
 
equals(Object) - Method in class net.degreedays.api.RateLimit
Returns true if o is a RateLimit object with equal properties.
equals(Object) - Method in class net.degreedays.api.regression.ExtraPredictorSpec
Returns true if o is an ExtraPredictorSpec with the same ExtraPredictorSpec.predictorType() and ExtraPredictorSpec.expectedCorrelation() as this.
equals(Object) - Method in class net.degreedays.api.regression.InputData
Returns true if o is an InputData object containing equal InputPeriod objects (same dates, same usage values, and same extra-predictor keys and figures).
equals(Object) - Method in class net.degreedays.api.regression.InputPeriod
Returns true if o is an InputPeriod with the same InputPeriod.dayRange and InputPeriod.usage as this, and with the same extra-predictor keys and values (the order of the keys is not important for this).
equals(Object) - Method in class net.degreedays.api.regression.Regression
Returns true if o is a Regression object with identical values for everything apart from the Regression.tags() (which are not considered in the equality test).
equals(Object) - Method in class net.degreedays.api.regression.RegressionComponent
Two RegressionComponent instances are equal if they have the same class and the same configuration.
equals(Object) - Method in class net.degreedays.api.regression.RegressionRequest
Returns true if o is a RegressionRequest object with the same configuration as this.
equals(Object) - Method in class net.degreedays.api.regression.RegressionResponse
Returns true if o is a RegressionResponse with equal values apart from the metadata() (which is not considered in the equality test).
equals(Object) - Method in class net.degreedays.api.regression.RegressionSpec
Returns true if o is a RegressionSpec with the same configuration as this.
equals(Object) - Method in class net.degreedays.api.regression.RegressionTestPlan
Returns true if o is an RegressionTestPlan with the same configuration as this.
equals(Object) - Method in class net.degreedays.api.SecurityKey
A SecurityKey object can only be equal to a SecurityKey object based around the same canonical security key.
equals(Object) - Method in class net.degreedays.geo.Distance
Returns true if o is a Distance object with an equal unit and an equal value.
equals(Object) - Method in class net.degreedays.geo.LongLat
Returns true if o is a LongLat object with the same LongLat.longitude() and LongLat.latitude() values as this.
equals(Object) - Method in class net.degreedays.time.Day
Returns true if o is a Day representing the same date as this Day; false otherwise.
equals(Object) - Method in class net.degreedays.time.DayRange
Returns true if o is a DayRange covering exactly the same days as this DayRange; false otherwise.
equals(Object) - Method in class net.degreedays.time.DayTime
Returns true if o is a DayTime representing the same date-time as this DayTime; false otherwise.
equals(Object) - Method in class net.degreedays.time.MaybeEmptyDayRanges
Returns true if o is a MaybeEmptyDayRanges (or DayRanges) object representing the same set of DayRange objects as this; false otherwise.
equals(Object) - Method in class net.degreedays.time.OffsetDayTime
Returns true if o is an OffsetDayTime representing the same date-time and UTC offset as this OffsetDayTime; false otherwise.
equals(Object) - Method in class net.degreedays.time.StartOfMonth
Returns true if o is a StartOfMonth object representing the same day in the month as this; false otherwise.
equals(Object) - Method in class net.degreedays.time.StartOfYear
Returns true if o is a StartOfYear object representing the same day of the year as this; false otherwise.
equals(Object) - Method in class net.degreedays.time.Time
Returns true if o is a Time object with an equal Time.hour() and Time.minute().
ExpectedCorrelation - Enum in net.degreedays.api.regression
Defines how an extra predictor's figures are expected to correlate with energy usage (whether larger predictor numbers lead to larger or smaller energy usage).
expectedCorrelation() - Method in class net.degreedays.api.regression.ExtraPredictorSpec
Returns the non-null ExpectedCorrelation that defines how the extra predictor is expected to correlate with energy usage.
extraPredictorKeys() - Method in class net.degreedays.api.regression.InputData
Returns the non-null, possibly-empty, immutable set of extra-predictor keys that this InputData (and each InputPeriod within it) has extra-predictor figures for.
extraPredictorKeys() - Method in class net.degreedays.api.regression.InputPeriod
Returns the non-null, possibly-empty, immutable set of extra-predictor keys that this InputPeriod has extra-predictor figures for.
extraPredictorKeys() - Method in class net.degreedays.api.regression.Regression
Returns the non-null, possibly-empty, immutable set of extra-predictor keys that this Regression has extra components for.
extraPredictorKeys() - Method in class net.degreedays.api.regression.RegressionSpec
Returns the non-null, possibly-empty, immutable set of the keys of the extra predictors to be included in the specified regression.
extraPredictorKeys() - Method in class net.degreedays.api.regression.RegressionTestPlan
Returns the non-null, possibly-empty set of extra-predictor keys that this RegressionTestPlan has ExtraPredictorSpec objects for.
ExtraPredictorSpec - Class in net.degreedays.api.regression
Defines an extra predictor in terms of its PredictorType and ExpectedCorrelation, to help the API test and rank regressions that include data for that extra predictor.
ExtraPredictorSpec(PredictorType, ExpectedCorrelation) - Constructor for class net.degreedays.api.regression.ExtraPredictorSpec
Constructs an ExtraPredictorSpec with the specified PredictorType and ExpectedCorrelation.
ExtraRegressionComponent - Class in net.degreedays.api.regression
Contains details of an extra-predictor component in a regression.
ExtraRegressionComponent.Builder - Class in net.degreedays.api.regression
A builder class for creating immutable ExtraRegressionComponent objects e.g. for testing purposes.

F

fahrenheit(double) - Static method in class net.degreedays.api.data.Temperature
Returns a non-null Temperature object with the specified Fahrenheit temperature rounded to the nearest 0.1 F.
fahrenheitRange(double, double, double) - Static method in class net.degreedays.api.data.Temperature
Returns a non-null low-to-high SortedSet of Temperature objects, with Fahrenheit values running from firstValue to lastValue (inclusive), and the specified step between each consecutive temperature.
Failure - Class in net.degreedays.api
Contains details of a failure in the server-side processing of all or part of an API request.
failure() - Method in exception net.degreedays.api.FailureException
Returns the non-null Failure object containing details of the failure on the API's servers that led to this exception on the client.
failure() - Method in class net.degreedays.api.FailureResponse
Returns the non-null Failure object that contains details of the failure in the API's server-side processing of the request.
Failure.Builder - Class in net.degreedays.api
A builder class for creating immutable Failure objects e.g. for testing purposes.
FailureException - Exception in net.degreedays.api
Superclass of exceptions that indicate a Failure in the API's processing of all or part of a request.
FailureResponse - Class in net.degreedays.api
A type of API Response that indicates a failure in the server-side processing of a Request.
FailureResponse.Builder - Class in net.degreedays.api
A builder class for creating immutable FailureResponse objects e.g. for testing purposes.
feet(double) - Static method in class net.degreedays.geo.Distance
Returns a Distance object with the specified value and DistanceUnit.FEET as the unit of measurement.
first() - Method in class net.degreedays.time.DayRange
Returns the non-null first Day in this DayRange.
firstDay() - Method in class net.degreedays.api.data.DatedDataValue
Returns the non-null first Day of the period covered by this DatedDataValue.
firstDayOfWeek() - Method in class net.degreedays.api.data.impl.WeeklyBreakdown
Returns the non-null day of the week that should be the first of each weekly period.
firstYear() - Method in class net.degreedays.api.data.AverageDataSet
Returns the first year of the continuous set of data that was used to calculate the average figures.
format(Date) - Method in interface net.degreedays.api.processing.DateFormatter
 
fromCalendar(Calendar) - Static method in class net.degreedays.time.Day
Returns the non-null Day object represented by the YEAR, MONTH, and DAY_OF_MONTH fields of calendar.
fromCalendar(Calendar) - Static method in class net.degreedays.time.DayTime
Returns the non-null DayTime object represented by the YEAR, MONTH, DAY_OF_MONTH, HOUR_OF_DAY, and MINUTE fields of calendar.
fromCalendar(Calendar) - Static method in class net.degreedays.time.Time
Returns the non-null Time object represented by the HOUR_OF_DAY and MINUTE fields of calendar.
fromDateUtc(Date) - Static method in class net.degreedays.time.Day
Returns the non-null Day object represented by date, as interpreted in the context of the UTC time-zone.
fromIsoIndex(int) - Static method in enum net.degreedays.time.DayOfWeek
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.
fromString(String) - Static method in enum net.degreedays.api.data.TemperatureUnit
Returns the non-null TemperatureUnit with the specified string (returned by its TemperatureUnit.toString() method).
fromString(String) - Static method in enum net.degreedays.api.data.TimeSeriesInterval
Returns the non-null TimeSeriesInterval with the specified string (returned by its TimeSeriesInterval.toString() method).
fromString(String) - Static method in enum net.degreedays.api.regression.DayNormalization
Returns the non-null DayNormalization with the specified string (returned by its DayNormalization.toString() method).
fromString(String) - Static method in enum net.degreedays.api.regression.ExpectedCorrelation
Returns the non-null ExpectedCorrelation with the specified string (returned by its ExpectedCorrelation.toString() method).
fromString(String) - Static method in enum net.degreedays.api.regression.PredictorType
Returns the non-null PredictorType with the specified string (returned by its PredictorType.toString() method).
fromString(String) - Static method in enum net.degreedays.api.regression.RegressionTag
Returns the non-null RegressionTag with the specified string (returned by its RegressionTag.toString() method).
fromString(String) - Static method in class net.degreedays.time.Day
Parses a string date in ISO YYYY-MM-DD format (the format used by XML schema's date type), or YYYYMMDD format.
fromString(String) - Static method in enum net.degreedays.time.DayOfWeek
Returns the non-null DayOfWeek with the specified string (returned by its DayOfWeek.toString() method).
fromString(String) - Static method in class net.degreedays.time.DayTime
Parses a string date-time in ISO YYYY-MM-DDThh:mm format (the format used by XML schema's dateTime type), YYYYMMDDThhmm format, or YYYYMMDDhhmm all-numeric format.
fromString(String) - Static method in class net.degreedays.time.OffsetDayTime
Parses a string date-time with UTC-offset time-zone information included in ISO format like e.g. 2020-04-10T12:35Z ( Z indicating the UTC time-zone i.e. no offset), or 2019-01-31T18:22-08:00 (8 hours behind UTC).
fromString(String) - Static method in class net.degreedays.time.StartOfMonth
Parses a string representation of a StartOfMonth in ---DD format, the format used by XML Schema's gDay type (based on ISO 8601).
fromString(String) - Static method in class net.degreedays.time.StartOfYear
Parses a string representation of a StartOfYear in --MM-DD format, the format used by XML Schema's gMonthDay type (based on ISO 8601).
fromString(String) - Static method in class net.degreedays.time.Time
Parses a string time in ISO hh:mm format (the format used by XML schema's time type) or hhmm format.
fullCalendarMonth() - Method in class net.degreedays.time.Day
Returns a non-null DayRange representing the calendar month in which this Day falls.
fullCalendarMonthsWithin() - Method in class net.degreedays.time.DayRange
Returns a non-null possibly-empty set of DayRange objects representing the full calendar months that are fully contained within this DayRange.
fullCalendarYear() - Method in class net.degreedays.time.Day
Returns a non-null DayRange representing the calendar year in which this Day falls.
fullCalendarYearsWithin() - Method in class net.degreedays.time.DayRange
Returns a non-null possibly-empty set of DayRange objects representing the full calendar years that are fully contained within this DayRange.
fullMonth(StartOfMonth) - Method in class net.degreedays.time.Day
Returns a non-null DayRange representing the month (starting on the specified StartOfMonth) in which this Day falls.
fullMonthsWithin(StartOfMonth) - Method in class net.degreedays.time.DayRange
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.
fullOrPartialCalendarMonthsWithin() - Method in class net.degreedays.time.DayRange
Returns a non-null set of DayRange objects representing the full-or-partial calendar months that are contained within this DayRange.
fullOrPartialCalendarYearsWithin() - Method in class net.degreedays.time.DayRange
Returns a non-null set of DayRange objects representing the full-or-partial calendar years that are contained within this DayRange.
fullOrPartialMonthsWithin(StartOfMonth) - Method in class net.degreedays.time.DayRange
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.
fullOrPartialWeeksWithin(DayOfWeek) - Method in class net.degreedays.time.DayRange
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.
fullOrPartialYearsWithin(StartOfYear) - Method in class net.degreedays.time.DayRange
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.
fullRange() - Method in class net.degreedays.api.data.AverageDataSet
Returns a non-null DayRange object indicating the period of data from which this AverageDataSet's figures were calculated.
fullRange() - Method in class net.degreedays.api.data.DataSet
Returns a non-null DayRange object indicating the period of time that is covered by this DataSet.
fullRange() - Method in class net.degreedays.api.data.DatedDataSet
Returns a non-null DayRange object indicating the period of time that is covered by this DatedDataSet's values.
fullRange() - Method in class net.degreedays.api.data.TimeSeriesDataSet
Returns a non-null DayRange object indicating the period of time that is covered by this TimeSeriesDataSet's values.
fullRange() - Method in class net.degreedays.api.regression.InputData
Returns a non-null DayRange indicating the total period of time covered by this InputData object (including any gaps between its input periods).
fullRange() - Method in class net.degreedays.time.DayRanges
Returns the non-null DayRange extending from the first day of the first DayRange to the last day of the last DayRange in this chronologically-ordered set.
fullRangeOrNull() - Method in class net.degreedays.time.MaybeEmptyDayRanges
Returns the DayRange extending from the first day of the first DayRange to the last day of the last DayRange in this chronologically-ordered set, or null if MaybeEmptyDayRanges.isEmpty() returns true.
fullWeek(DayOfWeek) - Method in class net.degreedays.time.Day
Returns a non-null DayRange representing the week (starting on the specified firstDayOfWeek) in which this Day falls.
fullWeeksWithin(DayOfWeek) - Method in class net.degreedays.time.DayRange
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.
fullYear(StartOfYear) - Method in class net.degreedays.time.Day
Returns a non-null DayRange representing the year (starting on the specified StartOfYear) in which this Day falls.
fullYears(Period) - Static method in class net.degreedays.api.data.AverageBreakdown
Returns a non-null FullYearsAverageBreakdown object that specifies average degree days derived from data covering full calendar years determined by the specified period.
FullYearsAverageBreakdown - Class in net.degreedays.api.data.impl
A type of AverageBreakdown used to specify that average-degree-day figures should be derived from data covering a specified number of full calendar years.
FullYearsAverageBreakdown(Period) - Constructor for class net.degreedays.api.data.impl.FullYearsAverageBreakdown
Constructs a FullYearsAverageBreakdown object that specifies average degree days derived from data covering full calendar years determined by the specified period.
fullYearsWithin(StartOfYear) - Method in class net.degreedays.time.DayRange
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.

G

GeographicLocation - Class in net.degreedays.api.data
Defines a location in terms of a longitude/latitude or postal/zip code, leaving it to the API to find the nearest good weather station.
get(DataSpec) - Method in class net.degreedays.api.data.DataSets
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.
get(String) - Method in class net.degreedays.api.data.DataSpecs
Returns the non-null DataSpec that has been assigned the specified string key.
get(int) - Method in class net.degreedays.time.MaybeEmptyDayRanges
Returns the DayRange at the specified position in this chronologically-ordered set.
getAverage(AverageDataSpec) - Method in class net.degreedays.api.data.DataSets
Returns the AverageDataSet that was generated to fulfil the specified AverageDataSpec from the request, or throws a SourceDataException if no such AverageDataSet could be generated.
getBytes() - Method in class net.degreedays.api.processing.Signature
 
getBytes(String) - Method in interface net.degreedays.api.processing.StringToBytes
 
getBytes() - Method in class net.degreedays.api.SecurityKey
Returns a new, non-null byte array containing the canonical security key's characters encoded into bytes using the UTF-8 character set.
getBytesToEncodedString() - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
getCoolingBaseTemperature() - Method in class net.degreedays.api.regression.RegressionSpec
Returns the non-null base temperature to be used for the cooling degree days in the specified regression, or throws an IllegalStateException if it was never set (call RegressionSpec.hasCooling() before calling this).
getCoolingDegreeDays() - Method in class net.degreedays.api.regression.Regression
Returns the non-null DegreeDaysRegressionComponent object representing the cooling-degree-days component (c*CDD) of this Regression, or throws an IllegalStateException if no such component exists (check Regression.hasCoolingDegreeDays() before calling this).
getCustomTestCoolingBaseTemperatures() - Method in class net.degreedays.api.regression.RegressionTestPlan
Returns the custom set of base temperatures to be used for the CDD in regressions tested by the API, or throws an IllegalStateException if no such base temperatures are specified (check RegressionTestPlan.hasCustomTestCoolingBaseTemperatures() before calling this).
getCustomTestHeatingBaseTemperatures() - Method in class net.degreedays.api.regression.RegressionTestPlan
Returns the custom set of base temperatures to be used for the HDD in regressions tested by the API, or throws an IllegalStateException if no such base temperatures are specified (check RegressionTestPlan.hasCustomTestHeatingBaseTemperatures() before calling this).
getDated(DatedDataSpec) - Method in class net.degreedays.api.data.DataSets
Returns the DatedDataSet that was generated to fulfil the specified DatedDataSpec from the request, or throws a SourceDataException if no such DatedDataSet could be generated.
getDateFormatter() - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
getEmpty() - Static method in class net.degreedays.time.MaybeEmptyDayRanges
Returns an empty MaybeEmptyDayRanges object - definitely empty in this case, not just maybe!
getEncodedString(byte[]) - Method in interface net.degreedays.api.processing.BytesToEncodedString
 
getEndpoint(Request) - Method in interface net.degreedays.api.processing.EndpointGetter
Returns the endpoint URL that should be used for the request passed in.
getEndpointGetter() - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
getExtraComponent(String) - Method in class net.degreedays.api.regression.Regression
Returns the non-null ExtraRegressionComponent object with the specified extraPredictorKey, or throws an IllegalStateException if no such component exists in this Regression (check Regression.hasExtraComponent(java.lang.String) before calling this).
getExtraPredictor(String) - Method in class net.degreedays.api.regression.InputPeriod
Returns the double value of the extra predictor with the specified string key.
getExtraPredictorSpec(String) - Method in class net.degreedays.api.regression.RegressionTestPlan
Returns the non-null ExtraPredictorSpec associated with the specified string extraPredictorKey.
getFullRangeOrNull(DayRange) - Method in class net.degreedays.api.data.Breakdown
Returns the range of days that this breakdown would cover given source data covering availableDataRange, or null if availableDataRange would not be enough for this breakdown.
getFullRangeOrNull(DayRange) - Method in class net.degreedays.api.data.DataSpecs
Returns the full range of days that this set of DataSpec objects would cover given temperature data covering availableDataRange, or null if availableDataRange is not of use to any of the DataSpec objects.
getFullRangeOrNull(DayRange) - Method in class net.degreedays.api.data.impl.CustomBreakdown
Returns the range of days that this breakdown would cover given source data covering availableDataRange, or null if availableDataRange would not be enough for this breakdown.
getFullRangeOrNull(DayRange) - Method in class net.degreedays.api.data.impl.DailyBreakdown
Returns the range of days that this breakdown would cover given source data covering availableDataRange, or null if availableDataRange would not be enough for this breakdown.
getFullRangeOrNull(DayRange) - Method in class net.degreedays.api.data.impl.FullYearsAverageBreakdown
Returns the range of days that this breakdown would cover given source data covering availableDataRange, or null if availableDataRange would not be enough for this breakdown.
getFullRangeOrNull(DayRange) - Method in class net.degreedays.api.data.impl.MonthlyBreakdown
Returns the range of days that this breakdown would cover given source data covering availableDataRange, or null if availableDataRange would not be enough for this breakdown.
getFullRangeOrNull(DayRange) - Method in class net.degreedays.api.data.impl.WeeklyBreakdown
Returns the range of days that this breakdown would cover given source data covering availableDataRange, or null if availableDataRange would not be enough for this breakdown.
getFullRangeOrNull(DayRange) - Method in class net.degreedays.api.data.impl.YearlyBreakdown
Returns the range of days that this breakdown would cover given source data covering availableDataRange, or null if availableDataRange would not be enough for this breakdown.
getHeatingBaseTemperature() - Method in class net.degreedays.api.regression.RegressionSpec
Returns the non-null base temperature to be used for the heating degree days in the specified regression, or throws an IllegalStateException if it was never set (call RegressionSpec.hasHeating() before calling this).
getHeatingDegreeDays() - Method in class net.degreedays.api.regression.Regression
Returns the non-null DegreeDaysRegressionComponent object representing the heating-degree-days component (h*HDD) of this Regression, or throws an IllegalStateException if no such component exists (check Regression.hasHeatingDegreeDays() before calling this).
getHttpRequestDispatcher() - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
getKey(DataSpec) - Method in class net.degreedays.api.data.DataSpecs
Returns the non-null, non-empty string key associated with dataSpec.
getKeys() - Method in class net.degreedays.api.data.DataSpecs
Gives access to the string keys that are assigned to the DataSpec objects stored within this DataSpecs.
getLocationData(LocationDataRequest) - Method in class net.degreedays.api.data.DataApi
Sends your request for data to the API servers, returning a non-null response containing data you requested, or throwing an appropriate subclass of DegreeDaysApiException if something goes wrong.
getLocationInfo(LocationInfoRequest) - Method in class net.degreedays.api.data.DataApi
A lightweight alternative to DataApi.getLocationData(LocationDataRequest) that returns info about the station(s) that would be used to satisfy an equivalent LocationDataRequest, but not the data itself.
getMessage() - Method in exception net.degreedays.api.FailureException
Overridden to return the FailureException.failure() details as the exception message.
getMinimumDayRange() - Method in class net.degreedays.api.data.impl.DayRangePeriod
Returns the non-null minimum day range that was specified using DayRangePeriod.withMinimumDayRange(net.degreedays.time.DayRange), or throws an IllegalStateException if no such range was specified (check DayRangePeriod.hasMinimumDayRange() before calling this).
getMinimumNumberOfValues() - Method in class net.degreedays.api.data.impl.LatestValuesPeriod
Returns the number, greater than zero, that was specified using LatestValuesPeriod.withMinimumNumberOfValues(int), or throws an IllegalStateException if no such number was specified (check LatestValuesPeriod.hasMinimumNumberOfValues() before calling this).
getParamNames() - Method in class net.degreedays.api.processing.HttpRequest
 
getParamValue(String) - Method in class net.degreedays.api.processing.HttpRequest
 
getPeriods() - Method in class net.degreedays.api.regression.InputData
Returns a non-null, non-empty, chronologically-ordered array of the InputPeriod objects that make up this InputData.
getRandomFactory() - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
getRegressions() - Method in class net.degreedays.api.regression.RegressionResponse
Returns a non-null, non-empty, best-first ordered list of Regression objects, or throws a SourceDataException if the API could not generate regressions because there was not enough good weather data for the Location specified in your RegressionRequest.
getRequestToXml() - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
getResponseParser() - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
getSignature(byte[]) - Method in interface net.degreedays.api.processing.Signer
 
getSigner() - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
getSources() - Method in class net.degreedays.api.data.LocationDataResponse
Returns the non-null, non-empty array of source(s) (essentially weather stations) that were used to generate the data in this response.
getSources() - Method in class net.degreedays.api.data.LocationInfoResponse
Returns the non-null, non-empty array of source(s) (essentially weather stations) that would be used to generate data for an equivalent LocationDataResponse.
getSources() - Method in class net.degreedays.api.regression.RegressionResponse
Returns the non-null, non-empty array of source(s) (essentially weather stations) that were used to generate the degree days used for the regressions in this response.
getStringToBytes() - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
getTimeSeries(TimeSeriesDataSpec) - Method in class net.degreedays.api.data.DataSets
Returns the TimeSeriesDataSet that was generated to fulfil the specified TimeSeriesDataSpec from the request, or throws a SourceDataException if no such TimeSeriesDataSet could be generated.
getTimestampFactory() - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
getValues() - Method in class net.degreedays.api.data.DatedDataSet
Returns a non-null, non-empty, chronologically-ordered array of the DatedDataValue objects that make up this DatedDataSet.
getValues() - Method in class net.degreedays.api.data.TimeSeriesDataSet
Returns a non-null, non-empty, chronologically-ordered array of the TimeSeriesDataValue objects that make up this TimeSeriesDataSet.
getValuesWithin(DayRange) - Method in class net.degreedays.api.data.TimeSeriesDataSet
Returns a non-null, possibly-empty, chronologically-ordered array of the TimeSeriesDataValue objects from this TimeSeriesDataSet that fall within the specified DayRange.
getValuesWithin(Day) - Method in class net.degreedays.api.data.TimeSeriesDataSet
Returns a non-null, possibly-empty, chronologically-ordered array of the TimeSeriesDataValue objects from this TimeSeriesDataSet that fall within the specified Day.
getWithKey(String) - Method in class net.degreedays.api.data.DataSets
For unusual use cases, this enables you to access the DataSet objects using the string keys that are usually managed internally.
getWrappedXml(String, RequestSecurityInfo) - Method in interface net.degreedays.api.processing.XmlRequestWrapper
 
getXml(Request) - Method in interface net.degreedays.api.processing.RequestToXml
 
getXmlRequestWrapper() - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
greedyUnion(DayRange) - Method in class net.degreedays.time.DayRange
Returns the non-null DayRange that includes all the days within this DayRange, the specified DayRange (rangeToIncludeInUnion), and any days between.
greedyUnion(Day) - Method in class net.degreedays.time.DayRange
Returns the non-null DayRange that includes all the days within this DayRange, the specified Day (dayToIncludeInUnion), and any days between.

H

hasCooling() - Method in class net.degreedays.api.regression.RegressionSpec
Returns true if the regression is specified to include cooling degree days; false otherwise.
hasCoolingDegreeDays() - Method in class net.degreedays.api.regression.Regression
Returns true if this Regression has a cooling-degree-days component (c*CDD); false otherwise.
hasCustomTestCoolingBaseTemperatures() - Method in class net.degreedays.api.regression.RegressionTestPlan
Returns true if a custom set of base temperatures is to be used for the CDD in the regressions tested by the API, or false if the API should choose the test cooling base temperatures automatically.
hasCustomTestHeatingBaseTemperatures() - Method in class net.degreedays.api.regression.RegressionTestPlan
Returns true if a custom set of base temperatures is to be used for the HDD in the regressions tested by the API, or false if the API should choose the test heating base temperatures automatically.
hasExtraComponent(String) - Method in class net.degreedays.api.regression.Regression
Returns true if this Regression has an extra-predictor component with the specified extraPredictorKey; false otherwise.
hashCode() - Method in class net.degreedays.api.AccountKey
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.AverageDataSet
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.Breakdown
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.Calculation
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.DataSets
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.DataSpec
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.DataSpecs
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.DataValue
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.DatedDataSet
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.DatedDataValue
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.Location
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.LocationDataRequest
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.LocationDataResponse
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.LocationInfoRequest
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.LocationInfoResponse
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.Period
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.Source
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.Station
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.Temperature
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.TimeSeriesCalculation
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.TimeSeriesDataSet
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.data.TimeSeriesDataValue
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.Failure
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.FailureResponse
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.processing.EncodedString
 
hashCode() - Method in class net.degreedays.api.processing.HttpRequest
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.processing.RequestSecurityInfo
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.processing.Signature
 
hashCode() - Method in class net.degreedays.api.RateLimit
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.regression.ExtraPredictorSpec
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.regression.InputData
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.regression.InputPeriod
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.regression.Regression
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.regression.RegressionComponent
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.regression.RegressionRequest
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.regression.RegressionResponse
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.regression.RegressionSpec
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.regression.RegressionTestPlan
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.api.SecurityKey
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.geo.Distance
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.geo.LongLat
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.time.Day
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.time.DayRange
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.time.DayTime
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.time.MaybeEmptyDayRanges
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.time.OffsetDayTime
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.time.StartOfMonth
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.time.StartOfYear
Overridden to ensure consistency with equals.
hashCode() - Method in class net.degreedays.time.Time
Overridden to ensure consistency with equals.
hasHeating() - Method in class net.degreedays.api.regression.RegressionSpec
Returns true if the regression is specified to include heating degree days; false otherwise.
hasHeatingDegreeDays() - Method in class net.degreedays.api.regression.Regression
Returns true if this Regression has a heating-degree-days component (h*HDD); false otherwise.
hasMinimumDayRange() - Method in class net.degreedays.api.data.impl.DayRangePeriod
Returns true if this DayRangePeriod specifies the day(s) that must be covered by any data returned in response to a request for data covering this DayRangePeriod.
hasMinimumNumberOfValues() - Method in class net.degreedays.api.data.impl.LatestValuesPeriod
Returns true if this LatestValuesPeriod specifies the number of values that must be included in the response to a request for data covering this LatestValuesPeriod.
hasTag(RegressionTag) - Method in class net.degreedays.api.regression.Regression
Returns true if this Regression contains the specified tag; false otherwise.
heatingDegreeDays(Temperature) - Static method in class net.degreedays.api.data.Calculation
Returns a non-null HeatingDegreeDaysCalculation object with the specified base temperature.
HeatingDegreeDaysCalculation - Class in net.degreedays.api.data.impl
A type of Calculation that specifies that heating degree days should be calculated and that holds the base temperature that they should be calculated to.
HeatingDegreeDaysCalculation(Temperature) - Constructor for class net.degreedays.api.data.impl.HeatingDegreeDaysCalculation
Constructs a HeatingDegreeDaysCalculation object with the specified base temperature.
hour() - Method in class net.degreedays.api.data.TimeSeriesDataValue
Returns a number between 0 and 23 (inclusive) indicating the hour of the day that this TimeSeriesDataValue falls in in the local time-zone of the weather station.
hour() - Method in class net.degreedays.time.DayTime
Returns a number between 0 and 23 (inclusive) representing the hour component of this DayTime.
hour() - Method in class net.degreedays.time.OffsetDayTime
Returns a number between 0 and 23 (inclusive) representing the hour component of this OffsetDayTime.
hour() - Method in class net.degreedays.time.Time
Returns a number between 0 and 23 (inclusive) representing the hour component of this Time.
hourlyTemperature(TemperatureUnit) - Static method in class net.degreedays.api.data.TimeSeriesCalculation
Returns a non-null TemperatureTimeSeriesCalculation object with TimeSeriesInterval.HOURLY and the specified TemperatureUnit.
HttpRequest - Class in net.degreedays.api.processing
A set of parameter names and values to be sent in an HTTP request.
HttpRequest.Builder - Class in net.degreedays.api.processing
A builder class for creating immutable HttpRequest objects.
HttpRequestDispatcher - Interface in net.degreedays.api.processing
Sends an HttpRequest to the API servers and returns a stream containing the response.
HttpResponseStream - Class in net.degreedays.api.processing
A simple wrapper around the InputStream that comes as a response from the API servers.
HttpResponseStream(InputStream) - Constructor for class net.degreedays.api.processing.HttpResponseStream
 

I

id() - Method in class net.degreedays.api.data.Station
Returns the non-null, non-empty, canonical ID of the weather station.
in(DistanceUnit) - Method in class net.degreedays.geo.Distance
Returns a Distance object that represents this Distance converted into the specified unit of measurement.
indexOf(Day) - Method in class net.degreedays.time.DayRange
Returns the index of the specified Day within this DayRange, or -1 if it is not contained within this DayRange.
indexOf(DayRange) - Method in class net.degreedays.time.MaybeEmptyDayRanges
Returns the index of the specified DayRange in this chronologically-ordered set, or -1 if it is not present.
indexOf(Day) - Method in class net.degreedays.time.MaybeEmptyDayRanges
Returns the index of the DayRange that contains day, or -1 if no such DayRange exists in this chronologically-ordered set.
inFeet() - Method in class net.degreedays.geo.Distance
Returns a Distance object that represents this Distance converted into feet.
inKilometres() - Method in class net.degreedays.geo.Distance
Returns a Distance object that represents this Distance converted into kilometres.
inMetres() - Method in class net.degreedays.geo.Distance
Returns a Distance object that represents this Distance converted into metres.
inMiles() - Method in class net.degreedays.geo.Distance
Returns a Distance object that represents this Distance converted into miles.
InputData - Class in net.degreedays.api.regression
Defines the energy data (and any extra-predictor data) that the API should run regressions against.
InputData(InputPeriod[]) - Constructor for class net.degreedays.api.regression.InputData
Constructs an InputData object containing the specified InputPeriod objects.
InputData(InputPeriod, InputPeriod...) - Constructor for class net.degreedays.api.regression.InputData
Constructs an InputData object containing the specified InputPeriod objects.
InputData(Iterable<InputPeriod>) - Constructor for class net.degreedays.api.regression.InputData
Constructs an InputData object containing the specified InputPeriod objects.
inputData() - Method in class net.degreedays.api.regression.RegressionRequest
Returns the non-null InputData containing the dated records of energy usage and any extra-predictor data to be used in the regressions tested by the API.
InputPeriod - Class in net.degreedays.api.regression
Defines a dated period with its energy usage and any extra-predictor figures.
InputPeriod(DayRange, double) - Constructor for class net.degreedays.api.regression.InputPeriod
Constructs an InputPeriod covering the specified DayRange and with the specified energy usage.
intersectionOrNull(DayRange) - Method in class net.degreedays.time.DayRange
Returns a DayRange covering the days that are contained within both this DayRange and the specified DayRange, or null if there is no such intersection.
interval() - Method in class net.degreedays.api.data.TimeSeriesCalculation
Returns the non-null TimeSeriesInterval indicating the interval (e.g. hourly) that the time-series data should be calculated with.
intValue() - Method in class net.degreedays.geo.Distance
Returns the distance value, rounded to the nearest integer.
InvalidRequestException - Exception in net.degreedays.api
Indicates that the API could not process a request because it was invalid in some way (e.g. authenticated with invalid access keys).
isCelsius() - Method in class net.degreedays.api.data.Temperature
Returns true if this temperature has CELSIUS units; false otherwise.
isContiguous() - Method in class net.degreedays.api.data.DatedDataSet
Returns true if each contained DatedDataValue starts the day after the previous DatedDataValue ended (i.e. no gaps); false otherwise.
isContiguous() - Method in class net.degreedays.api.regression.InputData
Returns true if each contained InputPeriod starts the day after the previous InputPeriod ended (i.e. no gaps); false otherwise.
isContiguous() - Method in class net.degreedays.time.DayRanges
Returns true if each contained DayRange starts the day after the previous DayRange ended (i.e. no gaps); false otherwise.
isDailyData() - Method in class net.degreedays.api.data.DatedDataSet
Returns true if this DatedDataSet contains a contiguous (no gaps) set of day-long values, as is the case for daily-breakdown data returned by the API.
isDueToInvalidRequestAccount() - Method in exception net.degreedays.api.InvalidRequestException
Returns true if this failure came in response to a request that was sent with an unrecognized account key.
isDueToInvalidRequestForAccountPlan() - Method in exception net.degreedays.api.InvalidRequestException
Returns true if this failure came in response to a request for data that is not available on the API account plan associated with the account key.
isDueToInvalidRequestSignature() - Method in exception net.degreedays.api.InvalidRequestException
Returns true if this failure came in response to a request that was sent with an invalid signature, typically caused by a problem with the security key.
isDueToInvalidRequestTimestamp() - Method in exception net.degreedays.api.InvalidRequestException
Returns true if this failure came in response to a request that was sent with an invalid timestamp, typically caused by an out-of-sync clock on the client machine.
isDueToLocationNotRecognized() - Method in exception net.degreedays.api.data.LocationException
Returns true if this failure came in response to a request for data from a location that the API did not recognize as a weather station or real-world geographic location.
isDueToLocationNotSupported() - Method in exception net.degreedays.api.data.LocationException
Returns true if this failure came in response to a request for data from a location that is recognized but not currently supported by the API.
isDueToRateLimitOnLocationChanges() - Method in exception net.degreedays.api.RateLimitException
Returns true if this failure was caused by a rate limit on the number of times a location-limited account can change the location(s) that they access data from.
isDueToServiceTemporarilyDown() - Method in exception net.degreedays.api.ServiceException
Returns true if this failure was caused by a temporary problem preventing the API service from functioning properly (sorry!).
isDueToServiceUnexpectedError() - Method in exception net.degreedays.api.ServiceException
Returns true if this failure was caused by a unexpected error in the API service (sorry!).
isDueToSourceDataCoverage() - Method in exception net.degreedays.api.data.SourceDataException
Returns true if the requested data could not be generated because the source weather station's recorded temperature data did not cover the requested period in time.
isDueToSourceDataErrors() - Method in exception net.degreedays.api.data.SourceDataException
Returns true if the requested data could not be generated because of errors in the recorded temperature data of the source weather station.
isDueToSourceDataGranularity() - Method in exception net.degreedays.api.data.SourceDataException
Returns true if the requested data could not be generated because the source weather station's recorded temperature data was not fine-grained/detailed enough.
isEmpty() - Method in class net.degreedays.time.MaybeEmptyDayRanges
Returns true if this contains no DayRange objects; false otherwise.
isFahrenheit() - Method in class net.degreedays.api.data.Temperature
Returns true if this temperature has FAHRENHEIT units; false otherwise.
isFriday() - Method in enum net.degreedays.time.DayOfWeek
Returns true if this DayOfWeek enum constant is DayOfWeek.FRIDAY; false otherwise.
isMonday() - Method in enum net.degreedays.time.DayOfWeek
Returns true if this DayOfWeek enum constant is DayOfWeek.MONDAY; false otherwise.
isMonthlyData() - Method in class net.degreedays.api.data.DatedDataSet
Returns true if this DatedDataSet contains a contiguous (no gaps) set of month-long values, as is the case for monthly-breakdown data returned by the API.
isoIndex() - Method in enum net.degreedays.time.DayOfWeek
Returns the ISO weekday number for this DayOfWeek: 1 for Monday, 2 for Tuesday, 3 for Wednesday, 4 for Thursday, 5 for Friday, 6 for Saturday, and 7 for Sunday.
isSaturday() - Method in enum net.degreedays.time.DayOfWeek
Returns true if this DayOfWeek enum constant is DayOfWeek.SATURDAY; false otherwise.
isSunday() - Method in enum net.degreedays.time.DayOfWeek
Returns true if this DayOfWeek enum constant is DayOfWeek.SUNDAY; false otherwise.
isThursday() - Method in enum net.degreedays.time.DayOfWeek
Returns true if this DayOfWeek enum constant is DayOfWeek.THURSDAY; false otherwise.
isTuesday() - Method in enum net.degreedays.time.DayOfWeek
Returns true if this DayOfWeek enum constant is DayOfWeek.TUESDAY; false otherwise.
isWednesday() - Method in enum net.degreedays.time.DayOfWeek
Returns true if this DayOfWeek enum constant is DayOfWeek.WEDNESDAY; false otherwise.
isWeeklyData() - Method in class net.degreedays.api.data.DatedDataSet
Returns true if this DatedDataSet contains a contiguous (no gaps) set of week-long values, as is the case for weekly-breakdown data returned by the API.
isYearlyData() - Method in class net.degreedays.api.data.DatedDataSet
Returns true if this DatedDataSet contains a contiguous (no gaps) set of year-long values, as is the case for yearly-breakdown data returned by the API.
iterator() - Method in class net.degreedays.time.DayRange
 
iterator() - Method in class net.degreedays.time.MaybeEmptyDayRanges
 

K

kilometres(double) - Static method in class net.degreedays.geo.Distance
Returns a Distance object with the specified value and DistanceUnit.KILOMETRES as the unit of measurement.

L

last() - Method in class net.degreedays.time.DayRange
Returns the non-null last Day in this DayRange.
lastDay() - Method in class net.degreedays.api.data.DatedDataValue
Returns the non-null last Day of the period covered by this DatedDataValue.
lastYear() - Method in class net.degreedays.api.data.AverageDataSet
Returns the last year of the continuous set of data that was used to calculate the average figures.
latestValues(int) - Static method in class net.degreedays.api.data.Period
Returns a non-null LatestValuesPeriod object that automatically resolves to a date range including the latest available data and the specified number of degree-day values.
LatestValuesPeriod - Class in net.degreedays.api.data.impl
A type of Period that automatically resolves to a date range including the latest available data and the specified number of degree-day values.
LatestValuesPeriod(int) - Constructor for class net.degreedays.api.data.impl.LatestValuesPeriod
Constructs a LatestValuesPeriod object that automatically resolves to a date range including the latest available data and the specified number of degree-day values.
latitude() - Method in class net.degreedays.geo.LongLat
Returns the latitude: a number between -90 and 90 (both inclusive) representing the South/North coordinate.
Location - Class in net.degreedays.api.data
Defines a location for which degree days should be calculated.
location() - Method in class net.degreedays.api.data.LocationDataRequest
Returns the non-null Location object that specifies the location for which the degree days should be generated.
location() - Method in class net.degreedays.api.data.LocationInfoRequest
Returns the non-null Location object for which data is desired.
location() - Method in class net.degreedays.api.regression.RegressionRequest
Returns the non-null Location for which the API should generate degree days to use in the regressions it tests against the RegressionRequest.inputData().
LocationDataRequest - Class in net.degreedays.api.data
Defines a request for one or more sets of degree-day data from a particular location.
LocationDataRequest(Location, DataSpecs) - Constructor for class net.degreedays.api.data.LocationDataRequest
Constructs a LocationDataRequest object with the specified Location and DataSpecs.
LocationDataResponse - Class in net.degreedays.api.data
Contains the degree-day data generated to fulfil a LocationDataRequest.
LocationDataResponse.Builder - Class in net.degreedays.api.data
A builder class for creating immutable LocationDataResponse objects e.g. for testing purposes.
LocationException - Exception in net.degreedays.api.data
Indicates a Failure in the API's processing of a request, caused by problems with the Location that the request specified.
LocationInfoRequest - Class in net.degreedays.api.data
Defines a request for info about the station(s) that would be used to fulfil an equivalent LocationDataRequest.
LocationInfoRequest(Location, DataSpecs) - Constructor for class net.degreedays.api.data.LocationInfoRequest
Constructs a LocationInfoRequest object with the specified Location and DataSpecs.
LocationInfoResponse - Class in net.degreedays.api.data
Contains the location/station-related info returned in response to a LocationInfoRequest.
LocationInfoResponse.Builder - Class in net.degreedays.api.data
A builder class for creating immutable LocationInfoResponse objects e.g. for testing purposes.
longitude() - Method in class net.degreedays.geo.LongLat
Returns the longitude: a number between -180 and 180 (both inclusive) representing the West/East coordinate, zeroed on a line passing to the rear of the Royal Observatory, Greenwich (near London in the UK).
longLat() - Method in class net.degreedays.api.data.impl.LongLatLocation
Returns the non-null longitude/latitude position of this LongLatLocation.
longLat(LongLat) - Static method in class net.degreedays.api.data.Location
Returns a non-null LongLatLocation object with the specified longitude and latitude position.
longLat() - Method in class net.degreedays.api.data.Station
Returns the non-null longitude/latitude location of the weather station.
LongLat - Class in net.degreedays.geo
Defines a geographic position in terms of its longitude and latitude coordinates.
LongLat(double, double) - Constructor for class net.degreedays.geo.LongLat
Constructs a LongLat object with the specified longitude and latitude (take care not to mix these up).
LongLatLocation - Class in net.degreedays.api.data.impl
Specifies a location in terms of longitude and latitude coordinates.
LongLatLocation(LongLat) - Constructor for class net.degreedays.api.data.impl.LongLatLocation
Constructs a LongLatLocation object with the specified longitude and latitude position.

M

MaybeEmptyDayRanges - Class in net.degreedays.time
A potentially-empty chronologically-ordered set of non-overlapping DayRange objects.
message() - Method in class net.degreedays.api.Failure
Returns the non-null, non-empty message associated with this failure, providing explanatory information about the Failure.code() and what went wrong.
metadata() - Method in class net.degreedays.api.Response
Returns a non-null object containing metadata sent back with every response from the API servers, including details of the account's current rate limit.
method() - Method in class net.degreedays.api.processing.Signature
 
metres(double) - Static method in class net.degreedays.geo.Distance
Returns a Distance object with the specified value and DistanceUnit.METRES as the unit of measurement.
miles(double) - Static method in class net.degreedays.geo.Distance
Returns a Distance object with the specified value and DistanceUnit.MILES as the unit of measurement.
minusDays(int) - Method in class net.degreedays.time.Day
Returns the non-null Day that comes the specified numberOfDays before this Day in the calendar.
minusMonths(int) - Method in class net.degreedays.time.Day
Returns the non-null Day that comes the specified numberOfMonths before this Day in the calendar.
minusWeeks(int) - Method in class net.degreedays.time.Day
Returns the non-null Day that comes the specified numberOfWeeks before this Day in the calendar.
minusYears(int) - Method in class net.degreedays.time.Day
Returns the non-null Day that comes the specified numberOfYears before this Day in the calendar.
minute() - Method in class net.degreedays.api.data.TimeSeriesDataValue
Returns a number between 0 and 59 (inclusive) indicating the minute of the hour that this TimeSeriesDataValue falls in in the local time-zone of the weather station.
minute() - Method in class net.degreedays.time.DayTime
Returns a number between 0 and 59 (inclusive) representing the minute component of this DayTime.
minute() - Method in class net.degreedays.time.OffsetDayTime
Returns a number between 0 and 59 (inclusive) representing the minute component of this OffsetDayTime.
minute() - Method in class net.degreedays.time.Time
Returns a number between 0 and 59 (inclusive) representing the minute component of this Time.
minutesAfter(DayTime) - Method in class net.degreedays.time.DayTime
Returns the number of minutes that this DayTime is after comparisonDayTime, which will be negative if this DayTime comes first chronologically.
minutesAfter(OffsetDayTime) - Method in class net.degreedays.time.OffsetDayTime
Returns the number of minutes that the instant in time represented by this OffsetDayTime is after that represented by comparisonOffsetDayTime, which will be negative if this OffsetDayTime comes first chronologically.
minutesBefore(DayTime) - Method in class net.degreedays.time.DayTime
Returns the number of minutes that this DayTime is before comparisonDayTime, which will be negative if comparisonDayTime comes first chronologically.
minutesBefore(OffsetDayTime) - Method in class net.degreedays.time.OffsetDayTime
Returns the number of minutes that the instant in time represented by this OffsetDayTime is before that represented by comparisonOffsetDayTime, which will be negative if comparisonOffsetDayTime comes first chronologically.
minutesToReset() - Method in class net.degreedays.api.RateLimit
Returns the number of minutes until the rate limit is reset, at the time that this snapshot of the rate-limit state was taken.
monthly(Period, StartOfMonth) - Static method in class net.degreedays.api.data.DatedBreakdown
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.
monthly(Period) - Static method in class net.degreedays.api.data.DatedBreakdown
Returns a non-null MonthlyBreakdown object that specifies monthly degree days covering the specified period in time and broken down according to regular calendar months.
monthlyAverage(int) - Method in class net.degreedays.api.data.AverageDataSet
Returns the non-null average value for the specified month (e.g. pass 1 for the average value for the month of January).
MonthlyBreakdown - Class in net.degreedays.api.data.impl
A type of DatedBreakdown used to specify that degree days should be broken down on a monthly basis and cover a specific Period in time.
MonthlyBreakdown(Period, StartOfMonth) - Constructor for class net.degreedays.api.data.impl.MonthlyBreakdown
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.
MonthlyBreakdown(Period) - Constructor for class net.degreedays.api.data.impl.MonthlyBreakdown
Constructs a MonthlyBreakdown object that specifies monthly degree days covering the specified period in time and broken down according to regular calendar months.
monthOfYear() - Method in class net.degreedays.api.data.TimeSeriesDataValue
Returns a number between 1 (January) and 12 (December) indicating the month of the year that this TimeSeriesDataValue falls in in the local time-zone of the weather station.
monthOfYear() - Method in class net.degreedays.time.Day
Returns a number between 1 (January) and 12 (December) indicating the month-of-the-year component of this Day.
monthOfYear() - Method in class net.degreedays.time.DayTime
Returns a number between 1 (January) and 12 (December) representing the month-of-the-year component of this DayTime.
monthOfYear() - Method in class net.degreedays.time.OffsetDayTime
Returns a number between 1 (January) and 12 (December) representing the month-of-the-year component of this OffsetDayTime.
monthOfYear() - Method in class net.degreedays.time.StartOfYear
Returns the number between 1 (January) and 12 (December) indicating the month of the calendar year in which the "year" defined by this StartOfYear starts.
multiplyByNumberOfDays() - Method in class net.degreedays.api.regression.BaseloadRegressionComponent
Returns true if the baseload coefficient() is a per-day value that should be multiplied by the number of days covered by the period in question; or false if the coefficient is such that it will only work for periods of the same length used in the InputData.
multiplyByNumberOfDays() - Method in class net.degreedays.api.regression.ExtraRegressionComponent
Returns true if the coefficient() is a per-day value that should be multiplied by the number of days covered by the period in question; false otherwise.

N

net.degreedays.api - package net.degreedays.api
Core Degree Days.net API classes, including DegreeDaysApi - the starting point for all API operations.
net.degreedays.api.data - package net.degreedays.api.data
For specifying and receiving degree-day data and temperature data from the API.
net.degreedays.api.data.impl - package net.degreedays.api.data.impl
Implementations of abstract types from net.degreedays.api.data.
net.degreedays.api.processing - package net.degreedays.api.processing
For advanced use, this enables customization of the request/response processing (XML, HTTP, security etc.).
net.degreedays.api.regression - package net.degreedays.api.regression
For using the API to run regressions against your energy-usage data.
net.degreedays.geo - package net.degreedays.geo
Classes for handling geographic information like longitude/latitude positions and distances.
net.degreedays.time - package net.degreedays.time
Classes for working with dates, times, and date-ranges in the context of degree days and energy data.
newRandom() - Method in interface net.degreedays.api.processing.RandomFactory
 
newTimestamp() - Method in interface net.degreedays.api.processing.TimestampFactory
 
next() - Method in class net.degreedays.time.Day
Returns the non-null Day that comes immediately after this Day in the calendar.
next() - Method in enum net.degreedays.time.DayOfWeek
Returns the non-null DayOfWeek that comes immediately after this DayOfWeek (e.g. as Monday comes after Sunday).
north(Distance) - Method in class net.degreedays.geo.LongLat
Returns a LongLat object that represents a position the specified distance North of this.
notEmpty() - Method in class net.degreedays.time.MaybeEmptyDayRanges
Returns this MaybeEmptyDayRanges object as a DayRanges object, which cannot be empty.
numberOfValues() - Method in class net.degreedays.api.data.impl.LatestValuesPeriod
Returns a number, greater than zero, indicating how many degree-day values this period should cover (see this explanation of how the values in question can be daily, weekly, monthly, or yearly).
numberOfYears() - Method in class net.degreedays.api.data.AverageDataSet
Returns the number of years of data that the average figures were calculated from (e.g. for 5-year-average data this would return 5).

O

of(double, double) - Static method in class net.degreedays.api.data.DataValue
Returns a non-null DataValue object with the specified configuration.
of(double, double, Day) - Static method in class net.degreedays.api.data.DatedDataValue
Returns a non-null DatedDataValue object with the specified value and percentage estimated, and covering just the specified Day.
of(double, double, DayRange) - Static method in class net.degreedays.api.data.DatedDataValue
Returns a non-null DatedDataValue object with the specified value and percentage estimated, and covering the specified DayRange.
of(double, double, OffsetDayTime) - Static method in class net.degreedays.api.data.TimeSeriesDataValue
Returns a non-null TimeSeriesDataValue object with the specified value, percentage estimated, and date-time.
of(int, int, int) - Static method in class net.degreedays.time.Day
Returns a non-null Day object representing a date with the specified year, month, and day.
of(DayRange[]) - Static method in class net.degreedays.time.DayRanges
Returns a non-null DayRanges object containing the specified DayRange objects.
of(Collection<DayRange>) - Static method in class net.degreedays.time.DayRanges
Returns a non-null DayRanges object containing the specified DayRange objects.
of(Iterable<DayRange>) - Static method in class net.degreedays.time.DayRanges
Returns a non-null DayRanges object containing the specified DayRange objects.
of(DayRange, DayRange...) - Static method in class net.degreedays.time.DayRanges
Returns a non-null DayRanges object containing the specified DayRange objects.
of(Day, Time) - Static method in class net.degreedays.time.DayTime
Returns a non-null DayTime object with the specified Day and Time.
of(int, int, int, int, int) - Static method in class net.degreedays.time.DayTime
Returns a non-null DayTime object with the specified year, month, day, hour, and minute.
of(DayTime, int) - Static method in class net.degreedays.time.OffsetDayTime
Returns a non-null OffsetDayTime object with the specified local date-time and UTC offset.
of(Day, Time, int) - Static method in class net.degreedays.time.OffsetDayTime
Returns a non-null OffsetDayTime object with the specified local date, time, and UTC offset.
of(int) - Static method in class net.degreedays.time.StartOfMonth
Returns a non-null StartOfMonth object specifying a definition of "months" that begin on the specified day of the month.
of(int, int) - Static method in class net.degreedays.time.StartOfYear
Returns a non-null StartOfYear object specifying a definition of "years" that begin on the specified first day of the year.
of(int, int) - Static method in class net.degreedays.time.Time
Returns a non-null Time object representing a time with the specified hour and minute.
offsetDayTime() - Method in class net.degreedays.api.data.TimeSeriesDataValue
Returns a non-null OffsetDayTime object indicating the YYYY-MM-DDThh:mm date-time of this TimeSeriesDataValue, both in the local time-zone of the weather station, and relative to UTC.
OffsetDayTime - Class in net.degreedays.time
Represents a date-time with a time-zone defined in terms of the offset from UTC, for example 2020-04-10T14:55+01:00.
OffsetDayTime(DayTime, int) - Constructor for class net.degreedays.time.OffsetDayTime
Constructs an OffsetDayTime object with the specified local date-time and UTC offset.
OffsetDayTime(Day, Time, int) - Constructor for class net.degreedays.time.OffsetDayTime
Constructs an OffsetDayTime object with the specified local date, time, and UTC offset.
offsetTotalMinutes() - Method in class net.degreedays.api.data.TimeSeriesDataValue
Returns the total number of minutes by which the date-time of this TimeSeriesDataValue (in the local time zone of the weather station) is offset from UTC.
offsetTotalMinutes() - Method in class net.degreedays.time.OffsetDayTime
Returns the total number of minutes by which this OffsetDayTime is offset from UTC; for example for 2020-08-15T11:43+01:00 this would return 60, and for 2020-08-15T11:43-05:00 it would return -300.

P

paramCount() - Method in class net.degreedays.api.processing.HttpRequest
 
parseResponse(InputStream, Request) - Method in interface net.degreedays.api.processing.ResponseParser
Note that it is not the responsibility of this parser to close the responseStream.
percentageEstimated() - Method in class net.degreedays.api.data.AverageDataSet
 
percentageEstimated() - Method in class net.degreedays.api.data.DataSet
Returns a number between 0 and 100 (both inclusive), indicating the overall extent to which this DataSet is based on estimated data.
percentageEstimated() - Method in class net.degreedays.api.data.DataValue
Returns a number between 0 and 100 (both inclusive), indicating the extent to which the calculated DataValue.value() is based on estimated data.
percentageEstimated() - Method in class net.degreedays.api.data.DatedDataSet
 
percentageEstimated() - Method in class net.degreedays.api.data.TimeSeriesDataSet
 
period() - Method in class net.degreedays.api.data.impl.DailyBreakdown
Returns the non-null period in time that the daily breakdown should cover.
period() - Method in class net.degreedays.api.data.impl.FullYearsAverageBreakdown
Returns the non-null period in time that the breakdown should average data from.
period() - Method in class net.degreedays.api.data.impl.MonthlyBreakdown
Returns the non-null period in time that the monthly breakdown should cover.
period() - Method in class net.degreedays.api.data.impl.WeeklyBreakdown
Returns the non-null period in time that the weekly breakdown should cover.
period() - Method in class net.degreedays.api.data.impl.YearlyBreakdown
Returns the non-null period in time that the yearly breakdown should cover.
Period - Class in net.degreedays.api.data
Defines the period in time that a set of degree days should cover.
periodAt(int) - Method in class net.degreedays.api.regression.InputData
Returns the InputPeriod at the specified index, which must be between 0 (inclusive) and InputData.periodCount() (exclusive).
periodCount() - Method in class net.degreedays.api.regression.InputData
Returns the number of InputPeriod objects held by this InputData object.
plusDays(int) - Method in class net.degreedays.time.Day
Returns the non-null Day that comes the specified numberOfDays after this Day in the calendar.
plusMonths(int) - Method in class net.degreedays.time.Day
Returns the non-null Day that comes the specified numberOfMonths after this Day in the calendar.
plusWeeks(int) - Method in class net.degreedays.time.Day
Returns the non-null Day that comes the specified numberOfWeeks after this Day in the calendar.
plusYears(int) - Method in class net.degreedays.time.Day
Returns the non-null Day that comes the specified numberOfYears after this Day in the calendar.
postalCode() - Method in class net.degreedays.api.data.impl.PostalCodeLocation
Returns the non-null, non-empty postal code (or zip code, post code, or postcode - the terminology depends on the country).
postalCode(String, String) - Static method in class net.degreedays.api.data.Location
Returns a non-null PostalCodeLocation object with a postal code (or zip code, post code, or postcode) and a two-letter country code representing the country that the postal code belongs to.
PostalCodeLocation - Class in net.degreedays.api.data.impl
Specifies a location using a postal code (or zip code, post code, or postcode - the terminology depends on the country).
PostalCodeLocation(String, String) - Constructor for class net.degreedays.api.data.impl.PostalCodeLocation
Constructs a PostalCodeLocation object with a postal code (or zip code, post code, or postcode) and a two-letter country code representing the country that the postal code belongs to.
predictorType() - Method in class net.degreedays.api.regression.ExtraPredictorSpec
Returns the non-null PredictorType that defines how the extra predictor's figures vary with the length of the periods they are measured over.
PredictorType - Enum in net.degreedays.api.regression
Defines an extra predictor's figures as being cumulative (increasing with time and naturally larger over longer periods) or average (normalized such that the length of the period has no effect).
previous() - Method in class net.degreedays.time.Day
Returns the non-null Day that comes immediately before this Day in the calendar.
previous() - Method in enum net.degreedays.time.DayOfWeek
Returns the non-null DayOfWeek that comes immediately before this DayOfWeek (e.g. as Sunday comes before Monday).
process(Request) - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor
 
process(Request) - Method in interface net.degreedays.api.RequestProcessor
Processes the Request object and returns a Response object which is either a FailureResponse or a Response that's type is the counterpart to that of the Request object passed in.

R

random() - Method in class net.degreedays.api.processing.RequestSecurityInfo
 
RandomFactory - Interface in net.degreedays.api.processing
Generates the random strings that are sent with requests as part of the security mechanism that prevents replay attacks.
range(double, double, double) - Method in enum net.degreedays.api.data.TemperatureUnit
Returns a non-null low-to-high SortedSet of Temperature objects, with values running from firstValue to lastValue (inclusive), and the specified step between each consecutive temperature.
RateLimit - Class in net.degreedays.api
A snapshot of an API account's rate limit.
rateLimit() - Method in class net.degreedays.api.ResponseMetadata
Returns details of the rate limit that is currently associated with the account.
RateLimit.Builder - Class in net.degreedays.api
A builder class for creating immutable RateLimit objects e.g. for testing purposes.
RateLimitException - Exception in net.degreedays.api
Indicates that the API servers did not process a request because the RateLimit for the account's plan had been reached.
Regression - Class in net.degreedays.api.regression
Contains details of a regression model that the API calculated using the InputData you provided and, typically, HDD and/or CDD as well.
Regression.Builder - Class in net.degreedays.api.regression
A builder class for creating immutable Regression objects e.g. for testing purposes.
regressionApi() - Method in class net.degreedays.api.DegreeDaysApi
Returns a non-null RegressionApi object, providing easy, type-safe access to the API's regression-related operations.
RegressionApi - Class in net.degreedays.api.regression
Provides easy, type-safe access to the API's regression-related operations.
RegressionApi(RequestProcessor) - Constructor for class net.degreedays.api.regression.RegressionApi
Constructs a RegressionApi object that uses the specified RequestProcessor internally.
RegressionComponent - Class in net.degreedays.api.regression
Contains details of a regression component e.g. the baseload (b*days) or the heating (h*HDD) component in a regression like E = b*days + h*HDD
RegressionComponent.Builder<T extends RegressionComponent.Builder<T>> - Class in net.degreedays.api.regression
An abstract builder extended by the builders for the various concrete subtypes of RegressionComponent.
RegressionRequest - Class in net.degreedays.api.regression
Defines a request for the API to test regressions against the specified energy data (InputData) using degree days from the specified Location.
RegressionRequest(Location, InputData, RegressionTestPlan) - Constructor for class net.degreedays.api.regression.RegressionRequest
Constructs a RegressionRequest with the specified Location, InputData, and RegressionTestPlan.
RegressionResponse - Class in net.degreedays.api.regression
Contains a selection of the regressions that the API tested against your RegressionRequest, with the Regression that gave the best statistical fit listed first.
RegressionResponse.Builder - Class in net.degreedays.api.regression
A builder class for creating immutable RegressionResponse objects e.g. for testing purposes.
RegressionSpec - Class in net.degreedays.api.regression
Defines a specification of a regression in terms of its HDD and/or CDD base temperature(s) and any extra predictors to be included.
RegressionTag - Enum in net.degreedays.api.regression
An enum of tags that the API adds to Regression objects to indicate why it included them in a RegressionResponse.
RegressionTestPlan - Class in net.degreedays.api.regression
Defines how the API should test regressions against the InputData you provide it.
RegressionTestPlan.Builder - Class in net.degreedays.api.regression
For creating a RegressionTestPlan object that defines how the API should test regressions against the InputData you provide it.
Request - Class in net.degreedays.api
Specifies an operation that you'd like the API to do (e.g. calculating a specific type of degree-day data for a specific location).
requestedRegressionSpecs() - Method in class net.degreedays.api.regression.RegressionTestPlan
Returns a non-null possibly-empty set of specifications for regressions that the API is specifically instructed to test and return (on top of any others that it will test and potentially return anyway).
RequestFailureException - Exception in net.degreedays.api
Superclass of exceptions that indicate that the API's processing of a request resulted in a Failure.
RequestProcessor - Interface in net.degreedays.api
Processes API requests into API responses.
RequestSecurityInfo - Class in net.degreedays.api.processing
Security info that needs to be generated and sent with each request to the API.
RequestSecurityInfo.Builder - Class in net.degreedays.api.processing
A builder class for creating immutable RequestSecurityInfo objects.
RequestToXml - Interface in net.degreedays.api.processing
Turns the Request into an XML string.
requestUnitsAvailable() - Method in class net.degreedays.api.RateLimit
Returns the number of request units available for use before the next reset, at the time that this snapshot of the rate-limit state was taken.
Response - Class in net.degreedays.api
Models the API's response to a Request (e.g. degree day data returned in response to a request for that data).
responseMetadata() - Method in exception net.degreedays.api.RequestFailureException
Returns the non-null metadata from the FailureResponse that brought details of this failure back from the API servers.
ResponseMetadata - Class in net.degreedays.api
Extra data that comes back with every response from the Degree Days.net API.
ResponseMetadata.Builder - Class in net.degreedays.api
A builder class for creating immutable ResponseMetadata objects e.g. for testing purposes.
ResponseParser - Interface in net.degreedays.api.processing
Parses the API response stream.
rSquared() - Method in class net.degreedays.api.regression.Regression
Returns the the R-squared value for this Regression.
runRegressions(RegressionRequest) - Method in class net.degreedays.api.regression.RegressionApi
Sends your RegressionRequest to the API servers so it can run regressions against your InputData and return a non-null RegressionResponse containing the regressions that were statistically best and/or any that you specifically requested.

S

sampleDays() - Method in class net.degreedays.api.regression.Regression
Returns the number of days covered by the sample of data used for this Regression, excluding any gaps between input periods.
sampleDegreeDaysDataSet() - Method in class net.degreedays.api.regression.DegreeDaysRegressionComponent
Returns the non-null DatedDataSet of the degree days this regression component was calculated with.
sampleDegreeDaysTotal() - Method in class net.degreedays.api.regression.DegreeDaysRegressionComponent
Returns the non-null DataValue representing the total number of degree days across all the periods this regression component was calculated for.
sampleSize() - Method in class net.degreedays.api.regression.Regression
Returns the number of energy-usage figures used for this Regression.
sampleSpan() - Method in class net.degreedays.api.regression.Regression
Returns a non-null DayRange representing the full period covered by the sample (including any gaps) that was used for this Regression.
sampleSpanDays() - Method in class net.degreedays.api.regression.Regression
Returns the number of days covered by the sample (including any gaps) that was used for this Regression.
SecurityKey - Class in net.degreedays.api
The longer of the two access keys that are needed to use the Degree Days.net API.
SecurityKey(String) - Constructor for class net.degreedays.api.SecurityKey
Constructs a SecurityKey object using the specified string security key or throws an IllegalArgumentException if the string is clearly invalid.
SecurityKey(char[]) - Constructor for class net.degreedays.api.SecurityKey
Constructs a SecurityKey object using the specified characters, or throws an IllegalArgumentException if the characters are clearly invalid.
ServiceException - Exception in net.degreedays.api
Indicates that the API servers failed to process a request because of temporary downtime or an unexpected error (sorry!).
setAccountKey(AccountKey) - Method in class net.degreedays.api.processing.RequestSecurityInfo.Builder
 
setAdjustedRSquared(double) - Method in class net.degreedays.api.regression.Regression.Builder
 
setAnnualAverage(DataValue) - Method in class net.degreedays.api.data.AverageDataSet.Builder
 
setBaseload(BaseloadRegressionComponent) - Method in class net.degreedays.api.regression.Regression.Builder
 
setBaseTemperature(Temperature) - Method in class net.degreedays.api.regression.DegreeDaysRegressionComponent.Builder
 
setBytesToEncodedString(BytesToEncodedString) - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
setCode(String) - Method in class net.degreedays.api.Failure.Builder
 
setCoefficient(double) - Method in class net.degreedays.api.regression.RegressionComponent.Builder
 
setCoefficientPValue(double) - Method in class net.degreedays.api.regression.RegressionComponent.Builder
 
setCoefficientStandardError(double) - Method in class net.degreedays.api.regression.RegressionComponent.Builder
 
setCoolingDegreeDays(DegreeDaysRegressionComponent) - Method in class net.degreedays.api.regression.Regression.Builder
 
setCrossValidatedRSquared(double) - Method in class net.degreedays.api.regression.Regression.Builder
 
setCustomTestCoolingBaseTemperatures(Iterable<Temperature>) - Method in class net.degreedays.api.regression.RegressionTestPlan.Builder
Sets custom base temperatures to be used for the CDD in regressions tested by the API.
setCustomTestCoolingBaseTemperatures(Temperature[]) - Method in class net.degreedays.api.regression.RegressionTestPlan.Builder
Sets custom base temperatures to be used for the CDD in regressions tested by the API.
setCustomTestCoolingBaseTemperatures(double...) - Method in class net.degreedays.api.regression.RegressionTestPlan.Builder
Sets custom base temperatures to be used for the CDD in regressions tested by the API, assuming the temperature unit (Celsius or Fahrenheit) this Builder was constructed with.
setCustomTestHeatingBaseTemperatures(Iterable<Temperature>) - Method in class net.degreedays.api.regression.RegressionTestPlan.Builder
Sets custom base temperatures to be used for the HDD in regressions tested by the API.
setCustomTestHeatingBaseTemperatures(Temperature[]) - Method in class net.degreedays.api.regression.RegressionTestPlan.Builder
Sets custom base temperatures to be used for the HDD in regressions tested by the API.
setCustomTestHeatingBaseTemperatures(double...) - Method in class net.degreedays.api.regression.RegressionTestPlan.Builder
Sets custom base temperatures to be used for the HDD in regressions tested by the API, assuming the temperature unit (Celsius or Fahrenheit) this Builder was constructed with.
setCvrmse(double) - Method in class net.degreedays.api.regression.Regression.Builder
 
setDataSets(DataSets) - Method in class net.degreedays.api.data.LocationDataResponse.Builder
 
setDateFormatter(DateFormatter) - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
setDayNormalization(DayNormalization) - Method in class net.degreedays.api.regression.RegressionTestPlan.Builder
Sets the DayNormalization to be used in the regression process.
setDisplayName(String) - Method in class net.degreedays.api.data.Station.Builder
 
setDistanceFromTarget(Distance) - Method in class net.degreedays.api.data.Source.Builder
 
setElevation(Distance) - Method in class net.degreedays.api.data.Station.Builder
 
setEndpoint(String) - Method in class net.degreedays.api.processing.RequestSecurityInfo.Builder
 
setEndpointGetter(EndpointGetter) - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
setExtraPredictorSpecs(Map<String, ExtraPredictorSpec>) - Method in class net.degreedays.api.regression.RegressionTestPlan.Builder
Sets the specifications for the extra predictors included in the InputData sent to the API, to help the API test and rank the regressions that include data for those extra predictors.
setFailure(Failure) - Method in class net.degreedays.api.FailureResponse.Builder
 
setFirstYear(int) - Method in class net.degreedays.api.data.AverageDataSet.Builder
 
setHeatingDegreeDays(DegreeDaysRegressionComponent) - Method in class net.degreedays.api.regression.Regression.Builder
 
setHttpRequestDispatcher(HttpRequestDispatcher) - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
setId(String) - Method in class net.degreedays.api.data.Station.Builder
 
setLastYear(int) - Method in class net.degreedays.api.data.AverageDataSet.Builder
 
setLongLat(LongLat) - Method in class net.degreedays.api.data.Station.Builder
 
setMessage(String) - Method in class net.degreedays.api.Failure.Builder
 
setMetadata(ResponseMetadata) - Method in class net.degreedays.api.data.LocationDataResponse.Builder
 
setMetadata(ResponseMetadata) - Method in class net.degreedays.api.data.LocationInfoResponse.Builder
 
setMetadata(ResponseMetadata) - Method in class net.degreedays.api.FailureResponse.Builder
 
setMetadata(ResponseMetadata) - Method in class net.degreedays.api.regression.RegressionResponse.Builder
 
setMinutesToReset(int) - Method in class net.degreedays.api.RateLimit.Builder
 
setMonthlyAverage(int, DataValue) - Method in class net.degreedays.api.data.AverageDataSet.Builder
Sets the average value for the specified month (January having index 1).
setMultiplyByNumberOfDays(boolean) - Method in class net.degreedays.api.regression.BaseloadRegressionComponent.Builder
 
setMultiplyByNumberOfDays(boolean) - Method in class net.degreedays.api.regression.ExtraRegressionComponent.Builder
 
setPercentageEstimated(double) - Method in class net.degreedays.api.data.DatedDataSet.Builder
 
setPercentageEstimated(double) - Method in class net.degreedays.api.data.TimeSeriesDataSet.Builder
 
setRandom(String) - Method in class net.degreedays.api.processing.RequestSecurityInfo.Builder
 
setRandomFactory(RandomFactory) - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
setRateLimit(RateLimit) - Method in class net.degreedays.api.ResponseMetadata.Builder
 
setRegressionsFailure(Failure) - Method in class net.degreedays.api.regression.RegressionResponse.Builder
 
setRequestedRegressionSpecs(Iterable<RegressionSpec>) - Method in class net.degreedays.api.regression.RegressionTestPlan.Builder
Sets specifications for up to 60 regressions that you want to receive in the response from the API.
setRequestedRegressionSpecs(RegressionSpec...) - Method in class net.degreedays.api.regression.RegressionTestPlan.Builder
Sets specifications for up to 60 regressions that you want to receive in the response from the API.
setRequestToXml(RequestToXml) - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
setRequestUnitsAvailable(int) - Method in class net.degreedays.api.RateLimit.Builder
 
setResponseParser(ResponseParser) - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
setRSquared(double) - Method in class net.degreedays.api.regression.Regression.Builder
 
setSampleDays(int) - Method in class net.degreedays.api.regression.Regression.Builder
 
setSampleDegreeDaysDataSet(DatedDataSet) - Method in class net.degreedays.api.regression.DegreeDaysRegressionComponent.Builder
 
setSampleDegreeDaysTotal(DataValue) - Method in class net.degreedays.api.regression.DegreeDaysRegressionComponent.Builder
 
setSampleSize(int) - Method in class net.degreedays.api.regression.Regression.Builder
 
setSampleSpan(DayRange) - Method in class net.degreedays.api.regression.Regression.Builder
 
setSigner(Signer) - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
setStandardError(double) - Method in class net.degreedays.api.regression.Regression.Builder
 
setStation(Station) - Method in class net.degreedays.api.data.Source.Builder
 
setStationId(String) - Method in class net.degreedays.api.data.LocationDataResponse.Builder
 
setStationId(String) - Method in class net.degreedays.api.data.LocationInfoResponse.Builder
 
setStationId(String) - Method in class net.degreedays.api.regression.RegressionResponse.Builder
 
setStringToBytes(StringToBytes) - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
setTargetLongLat(LongLat) - Method in class net.degreedays.api.data.LocationDataResponse.Builder
 
setTargetLongLat(LongLat) - Method in class net.degreedays.api.data.LocationInfoResponse.Builder
 
setTargetLongLat(LongLat) - Method in class net.degreedays.api.regression.RegressionResponse.Builder
 
setTimestamp(Date, DateFormatter) - Method in class net.degreedays.api.processing.RequestSecurityInfo.Builder
 
setTimestampFactory(TimestampFactory) - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
setUrl(String) - Method in class net.degreedays.api.processing.HttpRequest.Builder
 
setXmlRequestWrapper(XmlRequestWrapper) - Method in class net.degreedays.api.processing.XmlHttpRequestProcessor.Builder
 
Signature - Class in net.degreedays.api.processing
A signature of the request together with a label describing the method that was used to create it.
Signature(byte[], String) - Constructor for class net.degreedays.api.processing.Signature
 
Signer - Interface in net.degreedays.api.processing
Creates a signature of the request, so that its integrity can be checked on the API servers.
Source - Class in net.degreedays.api.data
Contains basic information about a source of data that was used to satisfy a request.
Source.Builder - Class in net.degreedays.api.data
A builder class for creating immutable Source objects e.g. for testing purposes.
SourceDataException - Exception in net.degreedays.api.data
Indicates a Failure to generate a DataSet caused by problems with the source temperature data for the Location and Period requested.
south(Distance) - Method in class net.degreedays.geo.LongLat
Returns a LongLat object that represents a position the specified distance South of this.
spec() - Method in class net.degreedays.api.regression.Regression
Returns the non-null RegressionSpec specifying the components that this Regression contains, such that an equivalent Regression can be requested in another API request.
standardError() - Method in class net.degreedays.api.regression.Regression
Returns the standard error of this Regression.
startOfMonth() - Method in class net.degreedays.api.data.impl.MonthlyBreakdown
Returns a non-null StartOfMonth object indicating which day should be taken as the first of each month (inclusive).
StartOfMonth - Class in net.degreedays.time
Specifies a definition of "months" that begin on a specified day of the month (e.g. 1 for calendar months).
StartOfMonth(int) - Constructor for class net.degreedays.time.StartOfMonth
Constructs a StartOfMonth object specifying a definition of "months" that begin on the specified day of the month.
startOfYear() - Method in class net.degreedays.api.data.impl.YearlyBreakdown
Returns a non-null StartOfYear object indicating which day should be taken as the first of each year (inclusive).
StartOfYear - Class in net.degreedays.time
Specifies a definition of "years" that begin on a specified day of the year (e.g. January 1st for calendar years).
StartOfYear(int, int) - Constructor for class net.degreedays.time.StartOfYear
Constructs a StartOfYear object specifying a definition of "years" that begin on the specified first day of the year.
station() - Method in class net.degreedays.api.data.Source
Returns the non-null Station that this source represents.
Station - Class in net.degreedays.api.data
Contains basic information about a weather station.
Station.Builder - Class in net.degreedays.api.data
A builder class for creating immutable Station objects e.g. for testing purposes.
stationId() - Method in class net.degreedays.api.data.impl.StationIdLocation
Returns the non-null, non-empty string ID of the weather station that this StationIdLocation represents.
stationId(String) - Static method in class net.degreedays.api.data.Location
Returns a non-null StationIdLocation object with the specified weather station ID.
stationId() - Method in class net.degreedays.api.data.LocationDataResponse
Returns the non-null, non-empty canonical ID of the weather station or combination of weather stations that supplied the temperature data used to calculate the returned degree days.
stationId() - Method in class net.degreedays.api.data.LocationInfoResponse
Returns the non-null, non-empty canonical ID of the weather station or combination of weather stations that would be used to generate data for an equivalent LocationDataResponse.
stationId() - Method in class net.degreedays.api.regression.RegressionResponse
Returns the non-null, non-empty canonical ID of the weather station or combination of weather stations that supplied the temperature data used to calculate the degree days used for the regressions in this response.
StationIdLocation - Class in net.degreedays.api.data.impl
Specifies a location in terms of a weather station ID (you can find these IDs through the website at www.degreedays.net or by requesting data from geographic locations).
StationIdLocation(String) - Constructor for class net.degreedays.api.data.impl.StationIdLocation
Constructs a StationIdLocation object with the specified weather station ID.
stream() - Method in class net.degreedays.api.processing.HttpResponseStream
Returns the non-null InputStream object that this HttpResponseStream object was created with.
StringToBytes - Interface in net.degreedays.api.processing
Turns a string (like an XML request) into a byte array.
subRanges(int, int) - Method in class net.degreedays.time.MaybeEmptyDayRanges
Returns a MaybeEmptyDayRanges (which will be a DayRanges if it isn't empty) containing the DayRange objects between the specified indexes in this chronologically-ordered set.
subRangesWithin(DayRange) - Method in class net.degreedays.time.MaybeEmptyDayRanges
Returns a MaybeEmptyDayRanges (which will be a DayRanges if it isn't empty) containing any DayRange objects from this set that are fully contained within the specified DayRange.

T

tags() - Method in class net.degreedays.api.regression.Regression
Returns a non-null immutable set of the tags that describe how this Regression came to be included in the response from the API.
targetLongLat() - Method in class net.degreedays.api.data.LocationDataResponse
Returns the non-null LongLat object that specifies the geographic position of the Location from the LocationDataRequest that led to this response.
targetLongLat() - Method in class net.degreedays.api.data.LocationInfoResponse
Returns the non-null LongLat object that specifies the geographic position of the Location from the LocationInfoRequest that led to this response.
targetLongLat() - Method in class net.degreedays.api.regression.RegressionResponse
Returns the non-null LongLat object that specifies the geographic position of the Location from the RegressionRequest that led to this response.
Temperature - Class in net.degreedays.api.data
Defines a temperature value, typically the base temperature of a degree-day calculation.
Temperature(double, TemperatureUnit) - Constructor for class net.degreedays.api.data.Temperature
Constructs a Temperature object with the specified units and value (rounded to the nearest 0.1 degrees).
TemperatureTimeSeriesCalculation - Class in net.degreedays.api.data.impl
A type of TimeSeriesCalculation that specifies that temperature data should be calculated with the specified interval (e.g. hourly) and unit (e.g. Celsius).
TemperatureTimeSeriesCalculation(TimeSeriesInterval, TemperatureUnit) - Constructor for class net.degreedays.api.data.impl.TemperatureTimeSeriesCalculation
Constructs a TimeSeriesCalculation object with the specified interval and temperature unit.
temperatureUnit() - Method in class net.degreedays.api.data.impl.TemperatureTimeSeriesCalculation
Returns the non-null TemperatureUnit indicating whether the temperatures should be calculated in Celsius or Fahrenheit.
TemperatureUnit - Enum in net.degreedays.api.data
Defines the units of temperature measurement with enum constants to represent Celsius and Fahrenheit.
temperatureUnit() - Method in class net.degreedays.api.regression.RegressionTestPlan
Returns the non-null TemperatureUnit that specifies whether Celsius-based or Fahrenheit-based degree days should be used in regressions.
testPlan() - Method in class net.degreedays.api.regression.RegressionRequest
Returns the non-null RegressionTestPlan that defines how the API should test regressions against the RegressionRequest.inputData().
time() - Method in class net.degreedays.api.data.TimeSeriesDataValue
Returns a non-null Time object indicating the hh:mm time of this TimeSeriesDataValue in the local time-zone of the weather station.
time() - Method in class net.degreedays.time.DayTime
Returns a non-null Time object representing the hh:mm component of this DayTime.
time() - Method in class net.degreedays.time.OffsetDayTime
Returns a non-null Time object representing the hh:mm component of this OffsetDayTime.
Time - Class in net.degreedays.time
A simple hour-and-minute measure of time, ranging from 00:00 to 23:59 (inclusive).
Time(int, int) - Constructor for class net.degreedays.time.Time
Constructs a Time object representing a time with the specified hour and minute.
timeSeries(TimeSeriesCalculation, DatedBreakdown) - Static method in class net.degreedays.api.data.DataSpec
Returns a non-null TimeSeriesDataSpec object with the specified TimeSeriesCalculation and DatedBreakdown.
TimeSeriesCalculation - Class in net.degreedays.api.data
Defines how time-series data should be calculated e.g. temperature data, with hourly figures, in Celsius.
TimeSeriesDataSet - Class in net.degreedays.api.data
Contains a set of time-series data (e.g. hourly temperature data) generated to fulfil a TimeSeriesDataSpec for a specific Location.
TimeSeriesDataSet.Builder - Class in net.degreedays.api.data
A builder class for creating immutable TimeSeriesDataSet objects e.g. for testing purposes.
TimeSeriesDataSpec - Class in net.degreedays.api.data
Defines a specification for a set of time-series data such as hourly temperature data covering a specific period in time.
TimeSeriesDataSpec(TimeSeriesCalculation, DatedBreakdown) - Constructor for class net.degreedays.api.data.TimeSeriesDataSpec
Constructs a TimeSeriesDataSpec object with the specified TimeSeriesCalculation and DatedBreakdown.
TimeSeriesDataValue - Class in net.degreedays.api.data
Contains a value (e.g. a temperature value) for a specific point in time, and an approximate indication of its accuracy.
TimeSeriesInterval - Enum in net.degreedays.api.data
Defines the interval (e.g. hourly) that time-series data should be calculated with.
timestamp() - Method in class net.degreedays.api.processing.RequestSecurityInfo
 
TimestampFactory - Interface in net.degreedays.api.processing
Creates timestamps for inclusion in requests.
timestampString() - Method in class net.degreedays.api.processing.RequestSecurityInfo
 
to(Day) - Method in class net.degreedays.time.Day
Returns the non-null DayRange covering (inclusively) the days between this Day and firstOrLastDayInRange (which can be before, after, or equal to this Day).
to(int, int, int) - Method in class net.degreedays.time.Day
Returns the non-null DayRange covering (inclusively) the days between this Day and the Day represented by the specified parameters (which can be before, after, or equal to this Day).
toDailyDayRanges() - Method in class net.degreedays.time.DayRange
Returns a non-null DayRanges object representing each Day within this DayRange as its own DayRange (covering just one day).
toDate() - Method in class net.degreedays.time.OffsetDayTime
Returns the instant in time represented by this OffsetDayTime as a non-null java.util.Date.
todayInSystemTimeZone() - Static method in class net.degreedays.time.Day
Returns the non-null Day object representing the current date in the system time-zone.
todayInUtc() - Static method in class net.degreedays.time.Day
Returns the non-null Day object representing the current date in the UTC time-zone.
toDayRanges(DayRange) - Method in class net.degreedays.api.data.DatedBreakdown
Returns the breakdown in terms of the day ranges that would constitute it given source data covering availableDataRange.
toDayRanges(DayRange) - Method in class net.degreedays.api.data.impl.CustomBreakdown
Returns the breakdown in terms of the day ranges that would constitute it given source data covering availableDataRange.
toDayRanges(DayRange) - Method in class net.degreedays.api.data.impl.DailyBreakdown
Returns the breakdown in terms of the day ranges that would constitute it given source data covering availableDataRange.
toDayRanges(DayRange) - Method in class net.degreedays.api.data.impl.MonthlyBreakdown
Returns the breakdown in terms of the day ranges that would constitute it given source data covering availableDataRange.
toDayRanges(DayRange) - Method in class net.degreedays.api.data.impl.WeeklyBreakdown
Returns the breakdown in terms of the day ranges that would constitute it given source data covering availableDataRange.
toDayRanges(DayRange) - Method in class net.degreedays.api.data.impl.YearlyBreakdown
Returns the breakdown in terms of the day ranges that would constitute it given source data covering availableDataRange.
toEpochMilli() - Method in class net.degreedays.time.OffsetDayTime
Returns the instant in time represented by this OffsetDayTime as the number of milliseconds since the epoch of 1970-01-01T00:00Z.
toNumericString() - Method in class net.degreedays.api.data.Temperature
Returns a non-null, non-empty string representation of the numeric base-temperature value, like "50" or "15.5" or "-5" or "33.1", in a format suitable for insertion into the appropriate unit-specific element(s) of the request XML.
toNumericString() - Method in class net.degreedays.time.Day
Returns a non-null, non-empty string representation of this Day in YYYYMMDD format.
toNumericString() - Method in class net.degreedays.time.DayTime
Returns a non-null, non-empty string representation of this DayTime in YYYYMMDDHHMM format.
toNumericString() - Method in class net.degreedays.time.Time
Returns a non-null, non-empty string representation of this Time in HHMM format.
toString() - Method in class net.degreedays.api.AccountKey
Returns the non-null, non-empty, canonical string account key.
toString() - Method in class net.degreedays.api.data.AverageDataSet
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.AverageDataSpec
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.DataSets
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.DataSpecs
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.DataValue
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.DatedDataSet
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.DatedDataSpec
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.DatedDataValue
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.impl.CoolingDegreeDaysCalculation
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.impl.CustomBreakdown
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.impl.DailyBreakdown
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.impl.DayRangePeriod
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.impl.FullYearsAverageBreakdown
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.impl.HeatingDegreeDaysCalculation
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.impl.LatestValuesPeriod
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.impl.LongLatLocation
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.impl.MonthlyBreakdown
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.impl.PostalCodeLocation
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.impl.StationIdLocation
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.impl.TemperatureTimeSeriesCalculation
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.impl.WeeklyBreakdown
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.impl.YearlyBreakdown
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.LocationDataRequest
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.LocationDataResponse
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.LocationInfoRequest
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.LocationInfoResponse
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.Source
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.Station
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.Temperature
Returns a non-null, non-empty string representation of the temperature and its units.
toString() - Method in enum net.degreedays.api.data.TemperatureUnit
Returns a non-null, non-empty string representation of this enum constant in the format required to specify a TemperatureUnit in the request XML ("Celsius" or "Fahrenheit").
toString() - Method in class net.degreedays.api.data.TimeSeriesDataSet
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.TimeSeriesDataSpec
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.data.TimeSeriesDataValue
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in enum net.degreedays.api.data.TimeSeriesInterval
Returns a non-null, non-empty string representation of this enum constant in the format required by the request XML (e.g. "Hourly").
toString() - Method in class net.degreedays.api.Failure
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.FailureResponse
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.RateLimit
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.regression.BaseloadRegressionComponent
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in enum net.degreedays.api.regression.DayNormalization
Returns a non-null, non-empty string representation of this enum constant in the format required to specify a DayNormalization in the request XML ("Weighted", "Unweighted", or "None").
toString() - Method in class net.degreedays.api.regression.DegreeDaysRegressionComponent
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in enum net.degreedays.api.regression.ExpectedCorrelation
Returns a non-null, non-empty string representation of this object in the format required to specify an ExpectedCorrelation in the request XML ("Positive", "Negative", or "PositiveOrNegative").
toString() - Method in class net.degreedays.api.regression.ExtraPredictorSpec
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.regression.ExtraRegressionComponent
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.regression.InputData
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.regression.InputPeriod
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in enum net.degreedays.api.regression.PredictorType
Returns a non-null, non-empty string representation of this object in the format required to specify an PredictorType in the request XML ("Cumulative" or "Average").
toString() - Method in class net.degreedays.api.regression.Regression
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.regression.RegressionRequest
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.regression.RegressionResponse
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.regression.RegressionSpec
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in enum net.degreedays.api.regression.RegressionTag
Returns a non-null, non-empty string representation of this enum constant in the format used to specify a RegressionTag in the response XML ("Shortlist", "NotableOther", "Requested", or "InShortlistRange").
toString() - Method in class net.degreedays.api.regression.RegressionTestPlan
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.ResponseMetadata
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.api.SecurityKey
Returns a non-null, non-empty string indicating that this is a SecurityKey object, but not giving any indication as to what the security key actually is.
toString() - Method in class net.degreedays.geo.Distance
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in enum net.degreedays.geo.DistanceUnit
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.geo.LongLat
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.time.Day
Returns a non-null, non-empty string representation of this Day in YYYY-MM-DD format.
toString() - Method in enum net.degreedays.time.DayOfWeek
Returns a non-null, non-empty string representation of this enum constant: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", or "Sunday".
toString() - Method in class net.degreedays.time.DayRange
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.time.DayTime
Returns a non-null, non-empty string representation of this DayTime in YYYY-MM-DDThh:mm format.
toString() - Method in class net.degreedays.time.MaybeEmptyDayRanges
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
toString() - Method in class net.degreedays.time.OffsetDayTime
Returns a non-null, non-empty string representation of this OffsetDayTime in ISO format like 2020-08-15T17:57+01:00, 2020-08-15T12:57-05:00, or 2020-08-15T16:57Z.
toString() - Method in class net.degreedays.time.StartOfMonth
Returns a non-null, non-empty string representation of this object in ---DD format, the format used by XML Schema's gDay type (based on ISO 8601).
toString() - Method in class net.degreedays.time.StartOfYear
Returns a non-null, non-empty string representation of this object in --MM-DD format, the format used by XML Schema's gMonthDay type (based on ISO 8601).
toString() - Method in class net.degreedays.time.Time
Returns a non-null, non-empty string representation of this Time in hh:mm format.
toStringKey() - Method in class net.degreedays.api.SecurityKey
Returns the non-null, non-empty, canonical string security key.
transformToAverage(AverageBreakdown) - Method in class net.degreedays.api.data.DatedDataSet
Returns a new AverageDataSet object, based on the data contained within this, but transformed to fit the targetBreakdown.
transformToDated(DatedBreakdown) - Method in class net.degreedays.api.data.DatedDataSet
Returns a new DatedDataSet object, based on the data contained within this, but transformed to fit the targetBreakdown.
TransportException - Exception in net.degreedays.api
Indicates an error transporting a request to the API servers or transporting a response back.
TransportException(String, Throwable) - Constructor for exception net.degreedays.api.TransportException
Constructs a new TransportException with the specified message and cause.
TransportException(String) - Constructor for exception net.degreedays.api.TransportException
Constructs a new TransportException with the specified message and null for the cause.
TransportException() - Constructor for exception net.degreedays.api.TransportException
Constructs a new TransportException with null for its message and cause.
TransportException(Throwable) - Constructor for exception net.degreedays.api.TransportException
Constructs a new TransportException with the specified cause and a detail message of cause.toString() or null if cause is null.

U

unit() - Method in class net.degreedays.api.data.Temperature
Returns the non-null unit of this temperature.
unit() - Method in class net.degreedays.geo.Distance
Returns the unit of measurement of this Distance object.
url() - Method in class net.degreedays.api.processing.HttpRequest
 
usage() - Method in class net.degreedays.api.regression.InputPeriod
Returns the energy usage over this InputPeriod.

V

value() - Method in class net.degreedays.api.data.DataValue
Returns the value, which will never be NaN or infinity, and, for degree days, will always be zero or greater.
value() - Method in class net.degreedays.api.data.Temperature
Returns a double representation of the 0.1-precision number stored internally.
value() - Method in class net.degreedays.geo.Distance
Returns the numeric value of this Distance object.
valueAt(int) - Method in class net.degreedays.api.data.DatedDataSet
Returns the DatedDataValue at the specified index, which must be between 0 (inclusive) and DatedDataSet.valueCount() (exclusive).
valueAt(int) - Method in class net.degreedays.api.data.TimeSeriesDataSet
Returns the non-null TimeSeriesDataValue at the specified index, which must be between 0 (inclusive) and TimeSeriesDataSet.valueCount() (exclusive).
valueCount() - Method in class net.degreedays.api.data.DatedDataSet
Returns the number of values held by this DatedDataSet object, which will always be greater than zero.
valueCount() - Method in class net.degreedays.api.data.TimeSeriesDataSet
Returns the number of values held by this TimeSeriesDataSet object, which will always be greater than zero.
valueOf(String) - Static method in enum net.degreedays.api.data.TemperatureUnit
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.degreedays.api.data.TimeSeriesInterval
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.degreedays.api.regression.DayNormalization
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.degreedays.api.regression.ExpectedCorrelation
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.degreedays.api.regression.PredictorType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.degreedays.api.regression.RegressionTag
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.degreedays.geo.DistanceUnit
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.degreedays.time.DayOfWeek
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.degreedays.api.data.TemperatureUnit
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.degreedays.api.data.TimeSeriesInterval
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.degreedays.api.regression.DayNormalization
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.degreedays.api.regression.ExpectedCorrelation
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.degreedays.api.regression.PredictorType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.degreedays.api.regression.RegressionTag
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.degreedays.geo.DistanceUnit
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.degreedays.time.DayOfWeek
Returns an array containing the constants of this enum type, in the order they are declared.

W

weekly(Period, DayOfWeek) - Static method in class net.degreedays.api.data.DatedBreakdown
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.
WeeklyBreakdown - Class in net.degreedays.api.data.impl
A type of DatedBreakdown used to specify that degree days should be broken down on a weekly basis and cover a specific Period in time, with weeks starting on a specific day of the week.
WeeklyBreakdown(Period, DayOfWeek) - Constructor for class net.degreedays.api.data.impl.WeeklyBreakdown
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.
west(Distance) - Method in class net.degreedays.geo.LongLat
Returns a LongLat object that represents a position the specified distance West of this.
withAllowPartialLatest(boolean) - Method in class net.degreedays.api.data.impl.CustomBreakdown
Returns a CustomBreakdown with the same CustomBreakdown.dayRanges() as this, but with the DatedBreakdown.allowPartialLatest() property set to the specified value.
withAllowPartialLatest(boolean) - Method in class net.degreedays.api.data.impl.DailyBreakdown
Returns a DailyBreakdown with the same DailyBreakdown.period() as this, but with the DatedBreakdown.allowPartialLatest() property set to the specified value.
withAllowPartialLatest(boolean) - Method in class net.degreedays.api.data.impl.MonthlyBreakdown
Returns a MonthlyBreakdown with the same MonthlyBreakdown.period() and MonthlyBreakdown.startOfMonth() as this, but with the DatedBreakdown.allowPartialLatest() property set to the specified value.
withAllowPartialLatest(boolean) - Method in class net.degreedays.api.data.impl.WeeklyBreakdown
Returns a WeeklyBreakdown with the same WeeklyBreakdown.period() and WeeklyBreakdown.firstDayOfWeek() as this, but with the DatedBreakdown.allowPartialLatest() property set to the specified value.
withAllowPartialLatest(boolean) - Method in class net.degreedays.api.data.impl.YearlyBreakdown
Returns a YearlyBreakdown with the same YearlyBreakdown.period() and YearlyBreakdown.startOfYear() as this, but with the DatedBreakdown.allowPartialLatest() property set to the specified value.
withCooling(Temperature) - Method in class net.degreedays.api.regression.RegressionSpec
Returns a new RegressionSpec based on this but also specifying that cooling degree days with the specified base temperature are to be included.
withExtraPredictor(String, double) - Method in class net.degreedays.api.regression.InputPeriod
Returns a new InputPeriod based on this but also including an extra predictor with the specified key and value.
withExtraPredictorKeys(String...) - Method in class net.degreedays.api.regression.RegressionSpec
Returns a new RegressionSpec based on this but also specifying that extra predictors with the specified keys are to be included.
withExtraPredictorKeys(Iterable<String>) - Method in class net.degreedays.api.regression.RegressionSpec
Returns a new RegressionSpec based on this but also specifying that extra predictors with the specified keys are to be included.
withHeating(Temperature) - Method in class net.degreedays.api.regression.RegressionSpec
Returns a new RegressionSpec based on this but also specifying that heating degree days with the specified base temperature are to be included.
withMinimumDayRange(DayRange) - Method in class net.degreedays.api.data.impl.DayRangePeriod
Returns a new DayRangePeriod with the same DayRangePeriod.dayRange() as this, but also specifying minimumDayRange as the minimum range required.
withMinimumNumberOfValues(int) - Method in class net.degreedays.api.data.impl.LatestValuesPeriod
Returns a new LatestValuesPeriod with the same LatestValuesPeriod.numberOfValues() as this, but also specifying minimumNumberOfValues as the minimum number of values required.

X

XmlHttpRequestProcessor - Class in net.degreedays.api.processing
A concrete implementation of the RequestProcessor interface that turns Request objects into XML, adds the necessary security details, sends them over HTTP to the Degree Days.net API servers, and parses the XML responses into Response object models.
XmlHttpRequestProcessor.Builder - Class in net.degreedays.api.processing
Builds XmlHttpRequestProcessor objects: create and configure a Builder object, then call XmlHttpRequestProcessor.Builder.build() to create an XmlHttpRequestProcessor object.
XmlRequestWrapper - Interface in net.degreedays.api.processing
Creates a complete XML request from a partial XML request (without any security info) and RequestSecurityInfo.

Y

year() - Method in class net.degreedays.api.data.TimeSeriesDataValue
Returns a number indicating the year that this TimeSeriesDataValue falls in in the local time-zone of the weather station.
year() - Method in class net.degreedays.time.Day
Returns a number indicating the year component of this Day object.
year() - Method in class net.degreedays.time.DayTime
Returns a number indicating the year component of this DayTime.
year() - Method in class net.degreedays.time.OffsetDayTime
Returns a number indicating the year component of this OffsetDayTime.
yearly(Period, StartOfYear) - Static method in class net.degreedays.api.data.DatedBreakdown
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.
yearly(Period) - Static method in class net.degreedays.api.data.DatedBreakdown
Returns a non-null YearlyBreakdown object that specifies yearly degree days covering the specified period in time and broken down according to regular calendar years.
YearlyBreakdown - Class in net.degreedays.api.data.impl
A type of DatedBreakdown used to specify that degree days should be broken down on a yearly (annual) basis and cover a specific Period in time.
YearlyBreakdown(Period, StartOfYear) - Constructor for class net.degreedays.api.data.impl.YearlyBreakdown
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.
YearlyBreakdown(Period) - Constructor for class net.degreedays.api.data.impl.YearlyBreakdown
Constructs a YearlyBreakdown object that specifies yearly degree days covering the specified period in time and broken down according to regular calendar years.
A B C D E F G H I K L M N O P R S T U V W X Y 
Skip navigation links


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.