public class CacheTable<K>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.Vector<java.lang.ref.WeakReference<CacheTable<?>>> |
caches |
private static java.lang.Thread |
cleaner |
private java.util.Hashtable<java.lang.Integer,java.lang.ref.WeakReference<java.lang.Object>> |
currentTable |
(package private) int |
totalAdditions |
Constructor and Description |
---|
CacheTable() |
Modifier and Type | Method and Description |
---|---|
K |
intern(K k) |
void |
register(int key,
K item) |
private static void |
registerCache(CacheTable<?> table) |
K |
retrieve(int key) |
int totalAdditions
private java.util.Hashtable<java.lang.Integer,java.lang.ref.WeakReference<java.lang.Object>> currentTable
private static java.util.Vector<java.lang.ref.WeakReference<CacheTable<?>>> caches
private static java.lang.Thread cleaner
private static void registerCache(CacheTable<?> table)
public K retrieve(int key)
public void register(int key, K item)