Docs Menu
Docs Home
/ /
Atlas Device SDKs
/ / /

Enum FieldAttribute

On this page

  • io.realm
  • Enum Constant Summary
  • Method Summary
  • Inherited Methods
  • Enum Constant Detail
  • INDEXED
  • PRIMARY_KEY
  • REQUIRED
  • Method Detail
  • valueOf
  • values
io.realm.FieldAttribute

This class contains all Realm attributes for a Realm field. These will usually match the annotations found in the io.realm.annotation package. See the relevant annotation for further information on each modifier.

Enum Constant and Description

INDEXED

Marks a field as indexed.

PRIMARY_KEY

Marks a field as a primary key.

REQUIRED

Marks a field as explicitly not allowing null values.

Modifier and Type
Method and Description
public static FieldAttribute
public static FieldAttribute
  • 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 FieldAttribute

Marks a field as indexed.

public static final FieldAttribute

Marks a field as a primary key. This also implicitly mark it as INDEXED .

public static final FieldAttribute

Marks a field as explicitly not allowing null values. The default behavior for allowing null depends on the type of the field.

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

← Class DynamicRealmObject