public final class SimplePool
extends java.lang.Object
| Constructor and Description |
|---|
SimplePool(int max) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get()
Get an object from the pool, null if the pool is empty.
|
int |
getMax()
Return the size of the pool
|
void |
put(java.lang.Object o)
Add the object to the pool, silent nothing if the pool is full
|
public void put(java.lang.Object o)
o - public java.lang.Object get()
public int getMax()