Enum FieldAttribute
On this page
io.realm
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 Summary
Enum Constant and Description |
---|
Marks a field as indexed. |
Marks a field as a primary key. |
Marks a field as explicitly not allowing null values. |
Method Summary
Modifier and Type | Method and Description |
---|---|
public static FieldAttribute | |
public static FieldAttribute | values () |
Inherited Methods
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
Enum Constant Detail
INDEXED
public static final FieldAttribute
Marks a field as indexed.
PRIMARY_KEY
public static final FieldAttribute
Marks a field as a primary key. This also implicitly mark it as INDEXED .
REQUIRED
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.
Method Detail
valueOf
values
public static FieldAttribute values () |
---|