Klasse ElementCache<K extends IJavaElement & IOpenable>
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.LRUCache<K,JavaElementInfo>
org.aspectj.org.eclipse.jdt.internal.core.OverflowingLRUCache<K,JavaElementInfo>
org.aspectj.org.eclipse.jdt.internal.core.ElementCache<K>
- Alle implementierten Schnittstellen:
Cloneable
- Bekannte direkte Unterklassen:
VerboseElementCache
public class ElementCache<K extends IJavaElement & IOpenable>
extends OverflowingLRUCache<K,JavaElementInfo>
An LRU cache of
JavaElements
.-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen org.aspectj.org.eclipse.jdt.internal.core.util.LRUCache
LRUCache.LRUCacheEntry<K,
V>, LRUCache.Stats -
Feldübersicht
Von Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.core.OverflowingLRUCache
loadFactor, overflow, timestampsOn
Von Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.core.util.LRUCache
currentSpace, DEFAULT_SPACELIMIT, entryQueue, entryQueueTail, entryTable, spaceLimit, timestampCounter
-
Konstruktorübersicht
KonstruktorBeschreibungElementCache
(int size) Constructs a new element cache of the given size.ElementCache
(int size, int overflow) Constructs a new element cache of the given size. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected boolean
close
(LRUCache.LRUCacheEntry<K, JavaElementInfo> entry) Returns true if the element is successfully closed and removed from the cache, otherwise false.protected void
ensureSpaceLimit
(JavaElementInfo info, IJavaElement parent) protected ElementCache
<K> newInstance
(int size, int newOverflow) Returns a new instance of the reciever.protected void
resetSpaceLimit
(int defaultLimit, IJavaElement parent) Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.OverflowingLRUCache
clone, elements, fillingRatio, getEntryTable, getLoadFactor, getOverflow, makeSpace, printStats, privateRemoveEntry, privateRemoveEntry, put, remove, setLoadFactor, setSpaceLimit, shrink, toString, updateTimestamp
Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.util.LRUCache
flush, flush, get, getCurrentSpace, getKey, getNewestTimestampCounter, getOldestElement, getOldestTimestampCounter, getSpaceLimit, keys, keysAndValues, newInstance, peek, privateAdd, privateAddEntry, removeKey, spaceFor, toStringContents, toStringFillingRation
-
Konstruktordetails
-
ElementCache
public ElementCache(int size) Constructs a new element cache of the given size. -
ElementCache
public ElementCache(int size, int overflow) Constructs a new element cache of the given size.
-
-
Methodendetails
-
close
Returns true if the element is successfully closed and removed from the cache, otherwise false.NOTE: this triggers an external removal of this element by closing the element.
- Angegeben von:
close
in KlasseOverflowingLRUCache<K extends IJavaElement & IOpenable,
JavaElementInfo>
-
ensureSpaceLimit
-
newInstance
Beschreibung aus Klasse kopiert:OverflowingLRUCache
Returns a new instance of the reciever.- Angegeben von:
newInstance
in KlasseOverflowingLRUCache<K extends IJavaElement & IOpenable,
JavaElementInfo>
-
resetSpaceLimit
-