io.legaldocml.pool.Pools Maven / Gradle / Ivy
The newest version!
package io.legaldocml.pool;
/**
* @author Jacques Militello
*/
public final class Pools {
private Pools() {
}
/**
* create a Pool of objects with the given size.
*/
public static Pool> createPool(int size, PoolableObject poolableObject) {
return new UnsafePool<>(size, poolableObject);
}
}