KeyType
- ValueType
- public class Pool<KeyType,ValueType>
extends java.lang.Object
Constructor and Description |
---|
Pool(int size)
ctor
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the cache
|
boolean |
contains(KeyType key)
_more_
|
boolean |
containsOrCreate(KeyType key)
_more_
|
protected ValueType |
createValue(KeyType key)
_more_
|
ValueType |
get(KeyType key)
_more_
|
protected ValueType |
getFromPool(java.util.List<ValueType> list)
_more_
|
java.lang.Object |
getMutex()
_more_
|
int |
getSize()
_more_
|
void |
getStats(java.lang.StringBuffer sb)
_more_
|
void |
put(KeyType key,
ValueType value)
_more_
|
protected void |
removeValue(KeyType key,
ValueType object)
_more_
|
public java.lang.Object getMutex()
public boolean contains(KeyType key)
key
- _more_protected ValueType getFromPool(java.util.List<ValueType> list)
list
- _more_public boolean containsOrCreate(KeyType key)
key
- _more_public void getStats(java.lang.StringBuffer sb)
sb
- _more_public void clear()
public int getSize()
protected ValueType createValue(KeyType key)
key
- _more_