T - Boolean,
Number,
String or
Key.ComplexKeypublic static final class Key.Type<T>
extends java.lang.Object
Key type identifier.
Accessed via the constants:
New complex keys are initially created using the static helper methods:
After creation further values can be added to the complex keys. For example to generate
the complex key [true,1,"a","b"]
Key.complex(true).add(1).add("a", "b");
To match all values as part of a complex key range, use addHighSentinel().
For instance, to specify the range given in
this example, use the following:
Key start = Key.complex("XYZ");
Key end = Key.complex("XYZ).addHighSentinel();
| Modifier and Type | Field and Description |
|---|---|
static Key.Type<java.lang.Boolean> |
BOOLEAN
Type constant for boolean keys.
|
static Key.Type<Key.ComplexKey> |
COMPLEX
Type constant for
complex keys.
|
static Key.Type<java.lang.Number> |
NUMBER
Type constant for numerical keys.
|
static Key.Type<java.lang.String> |
STRING
Type constant for string keys.
|
public static final Key.Type<java.lang.Boolean> BOOLEAN
public static final Key.Type<Key.ComplexKey> COMPLEX
public static final Key.Type<java.lang.Number> NUMBER
public static final Key.Type<java.lang.String> STRING