public class ObjectCache extends Stack
| Modifier and Type | Field and Description |
|---|---|
boolean |
disabled |
capacityIncrement, elementCount, elementData| Constructor and Description |
|---|
ObjectCache(Class objectType) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the collection, such that a subsequent call to isEmpty() would
return true.
|
protected Object |
createNew() |
Object |
get() |
Object |
get(boolean makeNewIfNoneAvailable) |
void |
put(Object data) |
add, add, addAll, addAll, addElement, capacity, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, firstElement, get, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, setElementAt, setSize, size, toArray, toArray, toString, trimToSizeequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCodepublic ObjectCache(Class objectType)
public Object get(boolean makeNewIfNoneAvailable)
public Object get()
public void put(Object data)
public void clear()
Collectionclear in interface Collectionclear in class Vectorprotected Object createNew()