MCPcopy Create free account
hub / github.com/CNCoderX/PhotoPicker / Pool

Interface Pool

library/src/main/java/com/cncoderx/photopicker/io/Pools.java:50–66  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

48 * @param <T> The pooled type.
49 */
50 public static interface Pool<T> {
51
52 /**
53 * @return An instance from the pool if such, null otherwise.
54 */
55 public T acquire();
56
57 /**
58 * Release an instance to the pool.
59 *
60 * @param instance The instance to release.
61 * @return Whether the instance was put in the pool.
62 *
63 * @throws IllegalStateException If the instance is already in the pool.
64 */
65 public boolean release(T instance);
66 }
67
68 private Pools() {
69 /* do nothing - hiding constructor */

Callers 4

putMethod · 0.65
acquireMethod · 0.65
unlinkAndRecycleNodeMethod · 0.65
releaseMethod · 0.65

Implementers 2

SimplePoollibrary/src/main/java/com/cncoderx/pho
SynchronizedPoollibrary/src/main/java/com/cncoderx/pho

Calls

no outgoing calls

Tested by

no test coverage detected