public enum Type extends Enum<Type>
Enum Constant and Description |
---|
ARRAY |
BINARY_DATA |
BOOLEAN |
DATE |
DOUBLE |
INTEGER_32_BIT |
INTEGER_64_BIT |
JAVASCRIPT |
JAVASCRIPT_WITH_SCOPE |
MAX_KEY |
MIN_KEY |
NULL |
OBJECT |
OBJECT_ID |
REGULAR_EXPRESSION |
STRING |
SYMBOL |
TIMESTAMP |
UNDEFINED |
Modifier and Type | Method and Description |
---|---|
int |
val() |
static Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type DOUBLE
public static final Type STRING
public static final Type OBJECT
public static final Type ARRAY
public static final Type BINARY_DATA
public static final Type UNDEFINED
public static final Type OBJECT_ID
public static final Type BOOLEAN
public static final Type DATE
public static final Type NULL
public static final Type REGULAR_EXPRESSION
public static final Type JAVASCRIPT
public static final Type SYMBOL
public static final Type JAVASCRIPT_WITH_SCOPE
public static final Type INTEGER_32_BIT
public static final Type TIMESTAMP
public static final Type INTEGER_64_BIT
public static final Type MIN_KEY
public static final Type MAX_KEY
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type 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 int val()
Copyright © 2016. All rights reserved.