public enum FieldAttribute extends Enum<FieldAttribute>
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 |
|---|---|
static FieldAttribute |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldAttribute[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldAttribute INDEXED
Indexpublic static final FieldAttribute PRIMARY_KEY
INDEXED.PrimaryKeypublic static final FieldAttribute REQUIRED
null depends on the type of the field.public static FieldAttribute[] values()
for (FieldAttribute c : FieldAttribute.values()) System.out.println(c);
public static FieldAttribute valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null