public static enum DbxFields.AtomType extends java.lang.Enum<DbxFields.AtomType>
DbxFields.ValueType
, with the exception of lists, which can't be nested within other lists.
Fields must be read using the appropriate typed method on DbxFields
or DbxList
. Automatic conversion is provided if you request a double
value
from a long
field (not the reverse), but no other type conversion is performed.
Atoms use the ordering defined in DbxFields.ValueType
.
Enum Constant and Description |
---|
BOOLEAN
A datastore value corresponding to a Java
boolean . |
BYTES
A datastore value holding arbitrary bytes, accessed as
a
byte[] . |
DATE
A datastore value corresponding to a Java
Date . |
DOUBLE
A datastore value corresponding to a Java
double . |
LONG
A datastore value corresponding to a Java
long . |
STRING
A datastore value corresponding to a Java
String . |
Modifier and Type | Method and Description |
---|---|
static DbxFields.AtomType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DbxFields.AtomType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DbxFields.AtomType BOOLEAN
boolean
.public static final DbxFields.AtomType LONG
long
.
A long
value will be automatically converted to
a double
if requested (but not the reverse).public static final DbxFields.AtomType DOUBLE
double
.public static final DbxFields.AtomType STRING
String
. Strings
in a datastore are stored in a UTF-8 encoding.public static final DbxFields.AtomType BYTES
byte[]
.public static final DbxFields.AtomType DATE
Date
.public static DbxFields.AtomType[] values()
for (DbxFields.AtomType c : DbxFields.AtomType.values()) System.out.println(c);
public static DbxFields.AtomType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null