public enum MongoType extends Enum<MongoType>
| Enum Constant and Description |
|---|
ARRAY |
BINARY |
BOOLEAN |
DATE |
DOUBLE |
INTEGER32 |
INTEGER64 |
JS_CODE |
JS_CODE_W_SCOPE |
MAX_KEY |
MIN_KEY |
NULL |
OBJECT |
OBJECT_ID |
REGEX |
STRING |
SYMBOL |
TIMESTAMP |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumber() |
static MongoType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MongoType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MongoType DOUBLE
public static final MongoType STRING
public static final MongoType OBJECT
public static final MongoType ARRAY
public static final MongoType BINARY
public static final MongoType OBJECT_ID
public static final MongoType BOOLEAN
public static final MongoType DATE
public static final MongoType NULL
public static final MongoType REGEX
public static final MongoType JS_CODE
public static final MongoType SYMBOL
public static final MongoType JS_CODE_W_SCOPE
public static final MongoType INTEGER32
public static final MongoType TIMESTAMP
public static final MongoType INTEGER64
public static final MongoType MIN_KEY
public static final MongoType MAX_KEY
public static MongoType[] values()
for (MongoType c : MongoType.values()) System.out.println(c);
public static MongoType 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 getNumber()
Copyright © 2014. All Rights Reserved.