|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<EOutOfRangeStrategy>
org.onebusaway.utility.EOutOfRangeStrategy
public enum EOutOfRangeStrategy
Defines the strategy to use when interpolating a key that is outside the key range of the key-value map
Enum Constant Summary | |
---|---|
EXCEPTION
An exception will be thrown when attempting to interpolate a key that is outside the key range of the key-value map |
|
INTERPOLATE
As long as two key-values are present in the map, we we will attempt to interpolate the value for a key that is outside the key range of the key-value map. |
|
LAST_VALUE
The closest key-value pair to target key outside the range of the key-value map will be used. |
Method Summary | |
---|---|
static EOutOfRangeStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EOutOfRangeStrategy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final EOutOfRangeStrategy INTERPOLATE
public static final EOutOfRangeStrategy LAST_VALUE
public static final EOutOfRangeStrategy EXCEPTION
Method Detail |
---|
public static EOutOfRangeStrategy[] values()
for (EOutOfRangeStrategy c : EOutOfRangeStrategy.values()) System.out.println(c);
public static EOutOfRangeStrategy valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |