Docs Menu

Enum RealmFieldType

On this page

java.lang.Object
io.realm.RealmFieldType

List of the types used by Realm's underlying storage engine.Normally there is no reason to interact with the underlying Realm types as Realm will automatically convert between normal Java types and the Realm types. However it is possible to access these types through a DynamicRealmObject .

Enum Constant and Description
Modifier and Type
Method and Description
public static RealmFieldType
int value
)

Converts the underlying value used by the storage engine to the proper Realm type.

public int

Returns the native value representing this type.

public boolean

Checks if the given Java object can be converted to the underlying Realm type.

public static RealmFieldType
public static RealmFieldType
  • Methods inherited from class java.lang.Object : getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize
  • Methods inherited from class java.lang.Enum : name , ordinal , toString , equals , hashCode , clone , compareTo , getDeclaringClass , valueOf , finalize

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

public static final RealmFieldType

int value
)

Converts the underlying value used by the storage engine to the proper Realm type.

Parameters

  • value - the value to convert

Returns

the corresponding Realm type.

Throws

public int getNativeValue ()

Returns the native value representing this type.

Returns

the value used by the underlying storage engine to represent this type.

public boolean isValid (
Object obj
)

Checks if the given Java object can be converted to the underlying Realm type.

Parameters

  • obj - object to test compatibility on.

Returns

true if object can be converted to the Realm type, false otherwise.

public static RealmFieldType valueOf (
String name
)
public static RealmFieldType values ()

←  Class RealmConfiguration.BuilderClass RealmList →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.