|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
E - public interface ObjectPool<E>
| Method Summary | |
|---|---|
E |
get()
Get an object from the pool, or create it if the pool is empty. |
boolean |
isEmpty()
Determine whether this pool is empty. |
void |
put(E content)
Release an object into this pool, and make it availble. |
int |
size()
Get the number of objects in this pool. |
| Method Detail |
|---|
E get()
void put(E content)
content - the object to release.boolean isEmpty()
true if the pool is empty, false otherwise.int size()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||