T
- typed of cached objectpublic abstract static class AbstractDocumentFactory.Cache<T>
extends java.util.TreeMap<java.lang.Integer,T>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
Cache() |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
fetch(int sentenceIdx)
Fetch object from source (after a miss)
|
T |
get(int sentenceIdx)
Get object from cache
|
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, values
private static final long serialVersionUID