public class Cache<E>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.ref.WeakReference<E>[] |
m_data |
| Constructor and Description |
|---|
Cache() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cache(int index,
E term) |
void |
ensureAvailability(int length) |
E |
get(int resourceID) |
void |
initialize(int length) |
protected volatile java.lang.ref.WeakReference<E>[] m_data