public final class SimplePool extends Object
The pool will ignore overflow and return null if empty.
| Constructor and Description | 
|---|
| SimplePool() | 
| SimplePool(int max) | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | get()Get an object from the pool, null if the pool is empty. | 
| int | getMax()Return the size of the pool | 
| void | put(Object o)Adds the given object to the pool, and does nothing if the pool is full | 
Copyright © 2006–2018 TinyGroup. All rights reserved.