Enum Class InterpolationLibrary.EOutOfRangeStrategy
java.lang.Object
java.lang.Enum<InterpolationLibrary.EOutOfRangeStrategy>
org.onebusaway.gtfs_transformer.updates.InterpolationLibrary.EOutOfRangeStrategy
- All Implemented Interfaces:
Serializable,Comparable<InterpolationLibrary.EOutOfRangeStrategy>,Constable
- Enclosing class:
InterpolationLibrary
public static enum InterpolationLibrary.EOutOfRangeStrategy
extends Enum<InterpolationLibrary.EOutOfRangeStrategy>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn exception will be thrown when attempting to interpolate a key that is outside the key range of the key-value mapAs 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.The closest key-value pair to target key outside the range of the key-value map will be used. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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. If only one key-value pair is present in the map, that value will be used. -
LAST_VALUE
The closest key-value pair to target key outside the range of the key-value map will be used. This usually corresponds to the first or last key-value pair in the map depending on which end of the key-range the target key is out-of-bounds. -
EXCEPTION
An exception will be thrown when attempting to interpolate a key that is outside the key range of the key-value map
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-