public enum TimeSeriesInterval extends java.lang.Enum<TimeSeriesInterval>
Enum Constant and Description |
---|
HOURLY
For regular hourly time-series data i.e. readings on the hour every
hour.
|
Modifier and Type | Method and Description |
---|---|
static TimeSeriesInterval |
fromString(java.lang.String string)
Returns the non-null
TimeSeriesInterval with the specified
string (returned by its toString() method). |
java.lang.String |
toString()
Returns a non-null, non-empty string representation of this enum constant
in the format required by the request XML
(e.g.
"Hourly" ). |
static TimeSeriesInterval |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimeSeriesInterval[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeSeriesInterval HOURLY
public static TimeSeriesInterval[] values()
for (TimeSeriesInterval c : TimeSeriesInterval.values()) System.out.println(c);
public static TimeSeriesInterval valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
"Hourly"
).toString
in class java.lang.Enum<TimeSeriesInterval>
public static TimeSeriesInterval fromString(java.lang.String string)
TimeSeriesInterval
with the specified
string
(returned by its toString()
method).java.lang.NullPointerException
- if string
is null
.java.lang.IllegalArgumentException
- if string
is not
"Hourly"
(as at present HOURLY
is the only
TimeSeriesInterval
).
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.