|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.util.HashSetPool<E>
public class HashSetPool<E>
Class HashSetPool is a thread-safe pool of HashSets. There is no maximum for the number of HashSets in the pool. New HashSets will be created on demand. However, when HashSets are not used for a certain period of time, they will be removed, to keep the amount of resources to a minimum.
| Constructor Summary | |
|---|---|
HashSetPool()
|
|
| Method Summary | |
|---|---|
java.util.HashSet<E> |
getInstance()
|
void |
releaseInstance(java.util.HashSet<E> s)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HashSetPool()
| Method Detail |
|---|
public java.util.HashSet<E> getInstance()
public void releaseInstance(java.util.HashSet<E> s)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||