public enum RealmFieldType extends java.lang.Enum<RealmFieldType>
DynamicRealmObject.| Enum Constant and Description |
|---|
BINARY |
BOOLEAN |
DATE |
DOUBLE |
FLOAT |
INTEGER |
LIST |
OBJECT |
STRING |
UNSUPPORTED_MIXED |
UNSUPPORTED_TABLE |
| Modifier and Type | Method and Description |
|---|---|
static RealmFieldType |
fromNativeValue(int value)
Converts the underlying value used by the storage engine to the proper Realm type.
|
int |
getNativeValue()
Returns the native value representing this type.
|
boolean |
isValid(java.lang.Object obj)
Checks if the given Java object can be converted to the underlying Realm type.
|
static RealmFieldType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RealmFieldType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RealmFieldType INTEGER
public static final RealmFieldType BOOLEAN
public static final RealmFieldType STRING
public static final RealmFieldType BINARY
public static final RealmFieldType UNSUPPORTED_TABLE
public static final RealmFieldType UNSUPPORTED_MIXED
public static final RealmFieldType DATE
public static final RealmFieldType FLOAT
public static final RealmFieldType DOUBLE
public static final RealmFieldType OBJECT
public static final RealmFieldType LIST
public static RealmFieldType[] values()
for (RealmFieldType c : RealmFieldType.values()) System.out.println(c);
public static RealmFieldType 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 nullpublic int getNativeValue()
public boolean isValid(java.lang.Object obj)
obj - Object to test compatibility on.true if object can be converted to the Realm type, false otherwise.public static RealmFieldType fromNativeValue(int value)
value - Value to convertjava.lang.IllegalArgumentException - if value isn't valid.