MCPcopy Index your code
hub / github.com/android-notes/SwissArmyKnife / Pool

Interface Pool

systemlib/src/main/java/android/util/Pools.java:10–25  ·  view source on GitHub ↗

Interface for managing a pool of objects. @param The pooled type.

Source from the content-addressed store, hash-verified

8 * @param <T> The pooled type.
9 */
10 public static interface Pool<T> {
11
12 /**
13 * @return An instance from the pool if such, null otherwise.
14 */
15 public T acquire();
16
17 /**
18 * Release an instance to the pool.
19 *
20 * @param instance The instance to release.
21 * @return Whether the instance was put in the pool.
22 * @throws IllegalStateException If the instance is already in the pool.
23 */
24 public boolean release(T instance);
25 }
26
27 private Pools() {
28 /* do nothing - hiding constructor */

Callers 6

acquireMethod · 0.65
acquireMethod · 0.65
acquireMethod · 0.65
releaseMethod · 0.65
releaseMethod · 0.65
releaseMethod · 0.65

Implementers 4

SimplePoolsystemlib/src/main/java/android/util/P
SynchronizedPoolsystemlib/src/main/java/android/util/P
MySynchronizedPoolsaklib/src/main/java/com/wanjian/sak/s
CanvasPoolCompactsaklib/src/main/java/com/wanjian/sak/s

Calls

no outgoing calls

Tested by

no test coverage detected