Package io.realm
Enum OrderedCollectionChangeSet.State
- java.lang.Object
-
- java.lang.Enum<OrderedCollectionChangeSet.State>
-
- io.realm.OrderedCollectionChangeSet.State
-
- All Implemented Interfaces:
Serializable
,Comparable<OrderedCollectionChangeSet.State>
- Enclosing interface:
- OrderedCollectionChangeSet
public static enum OrderedCollectionChangeSet.State extends Enum<OrderedCollectionChangeSet.State>
State describing the nature of the changeset.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OrderedCollectionChangeSet.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static OrderedCollectionChangeSet.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIAL
public static final OrderedCollectionChangeSet.State INITIAL
This state is used first time the callback is invoked. The query will have completed and data is ready for the UI.
-
UPDATE
public static final OrderedCollectionChangeSet.State UPDATE
This state is used for every subsequent update after the first.
-
ERROR
public static final OrderedCollectionChangeSet.State ERROR
This state is used if some error occurred on the background evaluating the query.For local and fully synchronized Realms, this state should only be encountered if the Realm could not be succesfully opened in the background,.
-
-
Method Detail
-
values
public static OrderedCollectionChangeSet.State[] 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 (OrderedCollectionChangeSet.State c : OrderedCollectionChangeSet.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OrderedCollectionChangeSet.State 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
-
-