|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<RangeType>
org.faktorips.runtime.internal.tableindex.RangeType
public enum RangeType
Defines how the bounds of ranges in a RangeStructure are handled. Ranges in a
RangeStructure are defined by only one value. The RangeType specifies whether
this value is the upper or lower bound of the range. Ranges may thus be boundless/infinite.
Example: In a LOWER_BOUND_EQUAL RangeStructure by calling
put(10, value1) and put(25, value2), two ranges are defined: [10..24]
and [25..infinity]. When using UPPER_BOUND_EQUAL, however, the same calls
define the ranges [-infinity..10] and [11..25].
RangeStructure| Enum Constant Summary | |
|---|---|
LOWER_BOUND
Deprecated. Because using this type in a RangeStructure results in asymmetrical
behavior of the AbstractMapStructure.put(Object, SearchStructure) and
RangeStructure.get(Object) methods. A value that was added by calling
put(10, value) can not be retrieved by calling get(10). |
|
LOWER_BOUND_EQUAL
Indicates that the keys are meant to be the lower bound of a range including the lower bound. |
|
UPPER_BOUND
Deprecated. Because using this type in a RangeStructure results in asymmetrical
behavior of the AbstractMapStructure.put(Object, SearchStructure) and
RangeStructure.get(Object) methods. A value that was added by calling
put(10, value) can not be retrieved by calling get(10). |
|
UPPER_BOUND_EQUAL
Indicates that the keys are meant to be the upper bound of a range including the upper bound. |
|
| Method Summary | ||
|---|---|---|
abstract
|
getValue(TreeMap<K,V> tree,
K key)
Retrieves the matching value from the given map using the given key. |
|
static RangeType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
|
static RangeType[] |
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 |
|---|
@Deprecated public static final RangeType LOWER_BOUND
RangeStructure results in asymmetrical
behavior of the AbstractMapStructure.put(Object, SearchStructure) and
RangeStructure.get(Object) methods. A value that was added by calling
put(10, value) can not be retrieved by calling get(10).
public static final RangeType LOWER_BOUND_EQUAL
@Deprecated public static final RangeType UPPER_BOUND
RangeStructure results in asymmetrical
behavior of the AbstractMapStructure.put(Object, SearchStructure) and
RangeStructure.get(Object) methods. A value that was added by calling
put(10, value) can not be retrieved by calling get(10).
public static final RangeType UPPER_BOUND_EQUAL
| Method Detail |
|---|
public static RangeType[] values()
for (RangeType c : RangeType.values()) System.out.println(c);
public static RangeType 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
public abstract <K extends Comparable<? super K>,V> V getValue(TreeMap<K,V> tree,
K key)
TreeMap or null if no matching
value could be found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||