Package com.firebase.ui.database.paging
Enum LoadingState
- java.lang.Object
-
- java.lang.Enum<LoadingState>
-
- com.firebase.ui.database.paging.LoadingState
-
- All Implemented Interfaces:
Serializable,Comparable<LoadingState>
public enum LoadingState extends Enum<LoadingState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERRORThe most recent load encountered an error.FINISHEDThe last page loaded had zero documents, and therefore no further pages will be loaded.LOADEDNot currently loading any pages, at least one page loaded.LOADING_INITIALLoading initial data.LOADING_MORELoading a page other than the first page.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LoadingStatevalueOf(String name)Returns the enum constant of this type with the specified name.static LoadingState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOADING_INITIAL
public static final LoadingState LOADING_INITIAL
Loading initial data.
-
LOADING_MORE
public static final LoadingState LOADING_MORE
Loading a page other than the first page.
-
LOADED
public static final LoadingState LOADED
Not currently loading any pages, at least one page loaded.
-
FINISHED
public static final LoadingState FINISHED
The last page loaded had zero documents, and therefore no further pages will be loaded.
-
ERROR
public static final LoadingState ERROR
The most recent load encountered an error.
-
-
Method Detail
-
values
public static LoadingState[] 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 (LoadingState c : LoadingState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LoadingState 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
-
-