public enum MemoryCategory extends Enum<MemoryCategory>
枚举常量和说明 |
---|
HIGH
Tells Glide's memory cache and bitmap pool to use at most one and a half times their initial
maximum size.
|
LOW
Tells Glide's memory cache and bitmap pool to use at most half of their initial maximum size.
|
NORMAL
Tells Glide's memory cache and bitmap pool to use at most their initial maximum size.
|
限定符和类型 | 方法和说明 |
---|---|
float |
getMultiplier()
Returns the multiplier that should be applied to the initial maximum size of Glide's memory
cache and bitmap pool.
|
static MemoryCategory |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static MemoryCategory[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final MemoryCategory LOW
public static final MemoryCategory NORMAL
public static final MemoryCategory HIGH
public static MemoryCategory[] values()
for (MemoryCategory c : MemoryCategory.values()) System.out.println(c);
public static MemoryCategory valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值public float getMultiplier()