public enum DataSource extends Enum<DataSource>
枚举常量和说明 |
---|
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.
|
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
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值