|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
org.intermine.util.CacheHoldingArrayList
public class CacheHoldingArrayList
This is an extension of the the ArrayList class, designed to be used by systems that return Lists of data, with extra data that should not be flushed out of a cache until the List is garbage collected. This is used for example in the ObjectStoreItemPathFollowingImpl, when it generates a batch. The objectstore fetches additional useful objects, and stores them in the holder of a CacheHoldingArrayList as well as a cache. The holder them prevents the extra useful objects from being flushed out of the cache until the DataTranslator has finished with the batch.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
CacheHoldingArrayList()
Empty constructor |
|
CacheHoldingArrayList(java.util.Collection col)
Constructs a new instance from another Collection. |
|
CacheHoldingArrayList(int capacity)
Constructs a new instance with the given initial capacity. |
|
| Method Summary | |
|---|---|
void |
addToHolder(java.lang.Object o)
Adds an object to the holder. |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public CacheHoldingArrayList()
public CacheHoldingArrayList(java.util.Collection col)
col - a Collectionpublic CacheHoldingArrayList(int capacity)
capacity - the initial capacity| Method Detail |
|---|
public void addToHolder(java.lang.Object o)
o - any Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||