public static enum KeySpaceDirectory.KeyType extends Enum<KeySpaceDirectory.KeyType>
Enum Constant and Description |
---|
BOOLEAN |
BYTES |
DOUBLE |
FLOAT |
LONG |
NULL |
STRING |
UUID |
Modifier and Type | Method and Description |
---|---|
Object |
getAnyValue() |
byte |
getTypeHighBounds() |
byte |
getTypeLowBounds() |
boolean |
isMatch(Object value)
Get whether the provided value can be represented by this type.
|
static KeySpaceDirectory.KeyType |
typeOf(Object value) |
static KeySpaceDirectory.KeyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeySpaceDirectory.KeyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeySpaceDirectory.KeyType NULL
public static final KeySpaceDirectory.KeyType BYTES
public static final KeySpaceDirectory.KeyType STRING
public static final KeySpaceDirectory.KeyType LONG
public static final KeySpaceDirectory.KeyType FLOAT
public static final KeySpaceDirectory.KeyType DOUBLE
public static final KeySpaceDirectory.KeyType BOOLEAN
public static final KeySpaceDirectory.KeyType UUID
public static KeySpaceDirectory.KeyType[] values()
for (KeySpaceDirectory.KeyType c : KeySpaceDirectory.KeyType.values()) System.out.println(c);
public static KeySpaceDirectory.KeyType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isMatch(@Nullable Object value)
value
- the value to checktrue
if value
can be represented by this typepublic Object getAnyValue()
@Nonnull public byte getTypeLowBounds()
@Nonnull public byte getTypeHighBounds()
public static KeySpaceDirectory.KeyType typeOf(@Nullable Object value)