public enum ExpectedCorrelation extends java.lang.Enum<ExpectedCorrelation>
Enum Constant and Description |
---|
NEGATIVE
For an extra predictor expected to have a negative correlation with
energy usage i.e. larger extra-predictor figures lead to smaller
energy usage.
|
POSITIVE
For an extra predictor expected to have a positive correlation with
energy usage i.e. larger extra-predictor figures lead to larger
energy usage.
|
POSITIVE_OR_NEGATIVE
For an extra predictor that could be expected to have either a positive
or negative correlation with energy usage.
|
Modifier and Type | Method and Description |
---|---|
static ExpectedCorrelation |
fromString(java.lang.String string)
Returns the non-null
ExpectedCorrelation with the specified
string (returned by its toString() method). |
java.lang.String |
toString()
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" ). |
static ExpectedCorrelation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ExpectedCorrelation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExpectedCorrelation POSITIVE
public static final ExpectedCorrelation NEGATIVE
public static final ExpectedCorrelation POSITIVE_OR_NEGATIVE
public static ExpectedCorrelation[] values()
for (ExpectedCorrelation c : ExpectedCorrelation.values()) System.out.println(c);
public static ExpectedCorrelation 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()
ExpectedCorrelation
in the
request XML ("Positive"
, "Negative"
, or
"PositiveOrNegative"
).toString
in class java.lang.Enum<ExpectedCorrelation>
public static ExpectedCorrelation fromString(java.lang.String string)
ExpectedCorrelation
with the specified
string
(returned by its toString()
method).java.lang.NullPointerException
- if string
is null
.java.lang.IllegalArgumentException
- if string
is not one of
"Positive"
, "Negative"
, or
"PositiveOrNegative"
.
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.