|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.expasy.jpl.commons.collection.PoolImpl<T>
T - the Cachable objects.public final class PoolImpl<T extends Cachable>
This pool stores unique and immutable objects.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.expasy.jpl.commons.collection.Pool |
|---|
Pool.KeyAlreadyExistException, Pool.ObjectAlreadyExistException |
| Method Summary | ||
|---|---|---|
void |
clear()
Clear the register. |
|
Set<String> |
getKeys()
Get keys of all stored objects. |
|
Set<T> |
getValues()
Get values of all stored objects. |
|
boolean |
isRegistered(String id)
|
|
boolean |
isRegistered(T o)
Return true if object exists in pool. |
|
T |
lookup(String id)
|
|
static
|
newInstance()
|
|
void |
register(T o)
|
|
int |
size()
|
|
String |
toString()
|
|
T |
unregister(String id)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static <T extends Cachable> PoolImpl<T> newInstance()
public void register(T o)
register in interface Register<T extends Cachable>public T unregister(String id)
unregister in interface Register<T extends Cachable>public final boolean isRegistered(String id)
isRegistered in interface Register<T extends Cachable>public final boolean isRegistered(T o)
isRegistered in interface Pool<T extends Cachable>o - the object.
public T lookup(String id)
lookup in interface Register<T extends Cachable>public Set<String> getKeys()
getKeys in interface Pool<T extends Cachable>public Set<T> getValues()
getValues in interface Pool<T extends Cachable>public int size()
size in interface Register<T extends Cachable>public void clear()
clear in interface Register<T extends Cachable>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||