public interface ArrayPool<T>
| 限定符和类型 | 方法和说明 |
|---|---|
T |
acquire(int len) |
void |
clearMemory()
Evict all items from the memory cache.
|
boolean |
release(T instance)
Release an instance to the pool.
|
void |
trimMemory(int level)
Trim the memory cache to the appropriate level.
|
T acquire(int len)
boolean release(T instance)
instance - The instance to release.java.lang.IllegalStateException - If the instance is already in the pool.void clearMemory()
void trimMemory(int level)
level - This integer represents a trim level as specified in ComponentCallbacks2.