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, trimToSize
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode
public ObjectCache(Class objectType)
public Object get(boolean makeNewIfNoneAvailable)
public Object get()
public void put(Object data)
public void clear()
Collection
clear
in interface Collection
clear
in class Vector
protected Object createNew()