public static enum RenderSectionEvent.DataSource extends java.lang.Enum<RenderSectionEvent.DataSource>
| Enum Constant and Description |
|---|
FROM_LOCAL_CACHE
the data for the model came from the device
|
FROM_LOCAL_STALE_CACHE
the stale data for the model came from the device
|
FROM_NETWORK
the data for the model came from the network
|
UNSET
Returned on Initial, Downloading, or Error states
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
fromCache(RenderSectionEvent.DataSource dataSource) |
static RenderSectionEvent.DataSource |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RenderSectionEvent.DataSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RenderSectionEvent.DataSource UNSET
public static final RenderSectionEvent.DataSource FROM_NETWORK
public static final RenderSectionEvent.DataSource FROM_LOCAL_CACHE
public static final RenderSectionEvent.DataSource FROM_LOCAL_STALE_CACHE
public static RenderSectionEvent.DataSource[] values()
for (RenderSectionEvent.DataSource c : RenderSectionEvent.DataSource.values()) System.out.println(c);
public static RenderSectionEvent.DataSource valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static boolean fromCache(RenderSectionEvent.DataSource dataSource)