Home | History | Annotate | Download | only in basicmultitouch

Lines Matching refs:Pool

46      * Interface for managing a pool of objects.
50 public static interface Pool<T> {
53 * @return An instance from the pool if such, null otherwise.
58 * Release an instance to the pool.
61 * @return Whether the instance was put in the pool.
63 * @throws IllegalStateException If the instance is already in the pool.
73 * Simple (non-synchronized) pool of objects.
77 public static class SimplePool<T> implements Pool<T> {
85 * @param maxPoolSize The max pool size.
87 * @throws IllegalArgumentException If the max pool size is less than zero.
91 throw new IllegalArgumentException("The max pool size must be > 0");
112 throw new IllegalStateException("Already in the pool!");
133 * Synchronized) pool of objects.
143 * @param maxPoolSize The max pool size.
145 * @throws IllegalArgumentException If the max pool size is less than zero.