public enum DataSource extends Enum<DataSource>
Enum Constant and Description |
---|
DATA_DISK_CACHE
Indicates data was retrieved unmodified from the on device cache.
|
LOCAL
Indicates data was probably retrieved locally from the device, although it may have been
obtained through a content provider that may have obtained the data from a remote source.
|
MEMORY_CACHE
Indicates data was retrieved from the in memory cache.
|
REMOTE
Indicates data was retrieved from a remote source other than the device.
|
RESOURCE_DISK_CACHE
Indicates data was retrieved from modified content in the on device cache.
|
Modifier and Type | Method and Description |
---|---|
static DataSource |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataSource LOCAL
public static final DataSource REMOTE
public static final DataSource DATA_DISK_CACHE
public static final DataSource RESOURCE_DISK_CACHE
public static final DataSource MEMORY_CACHE
public static DataSource[] values()
for (DataSource c : DataSource.values()) System.out.println(c);
public static DataSource 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