|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the object type.public interface Pool<T extends Cachable>
A Pool interface should be implemented by any pool that handles
unique objects.
| Nested Class Summary | |
|---|---|
static class |
Pool.KeyAlreadyExistException
Exception thrown when key already already reference an object in the pool. |
static class |
Pool.ObjectAlreadyExistException
Exception thrown when object already exists in the pool. |
| Method Summary | |
|---|---|
Set<String> |
getKeys()
Get keys of all stored objects. |
Set<T> |
getValues()
Get values of all stored objects. |
boolean |
isRegistered(T o)
Return true if object exists in pool. |
| Methods inherited from interface org.expasy.jpl.commons.collection.Register |
|---|
clear, isRegistered, lookup, register, size, unregister |
| Method Detail |
|---|
boolean isRegistered(T o)
o - the object.
Set<String> getKeys()
Set<T> getValues()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||