Package io.realm
Enum RealmAny.Type
- java.lang.Object
-
- java.lang.Enum<RealmAny.Type>
-
- io.realm.RealmAny.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<RealmAny.Type>
- Enclosing class:
- RealmAny
public static enum RealmAny.Type extends Enum<RealmAny.Type>
Enum describing all the types supported by RealmAny.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RealmAny.Type
fromNativeValue(int realmFieldType)
Class<?>
getTypedClass()
static RealmAny.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static RealmAny.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTEGER
public static final RealmAny.Type INTEGER
-
BOOLEAN
public static final RealmAny.Type BOOLEAN
-
STRING
public static final RealmAny.Type STRING
-
BINARY
public static final RealmAny.Type BINARY
-
DATE
public static final RealmAny.Type DATE
-
FLOAT
public static final RealmAny.Type FLOAT
-
DOUBLE
public static final RealmAny.Type DOUBLE
-
DECIMAL128
public static final RealmAny.Type DECIMAL128
-
OBJECT_ID
public static final RealmAny.Type OBJECT_ID
-
OBJECT
public static final RealmAny.Type OBJECT
-
UUID
public static final RealmAny.Type UUID
-
NULL
public static final RealmAny.Type NULL
-
-
Method Detail
-
values
public static RealmAny.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RealmAny.Type c : RealmAny.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RealmAny.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromNativeValue
public static RealmAny.Type fromNativeValue(int realmFieldType)
-
getTypedClass
public Class<?> getTypedClass()
-
-