Class VerboseElementCache<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>
org.aspectj.org.eclipse.jdt.internal.core.VerboseElementCache<K>
- All Implemented Interfaces:
Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.aspectj.org.eclipse.jdt.internal.core.util.LRUCache
LRUCache.LRUCacheEntry<K,V>, LRUCache.Stats -
Field Summary
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.OverflowingLRUCache
loadFactor, overflow, timestampsOnFields inherited from class org.aspectj.org.eclipse.jdt.internal.core.util.LRUCache
currentSpace, DEFAULT_SPACELIMIT, entryQueue, entryQueueTail, entryTable, spaceLimit, timestampCounter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanmakeSpace(int space) Ensures there is the specified amount of free space in the receiver, by removing old entries if necessary.put(K key, JavaElementInfo value) Sets the value in the cache at the given key.Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.ElementCache
close, ensureSpaceLimit, newInstance, resetSpaceLimitMethods inherited from class org.aspectj.org.eclipse.jdt.internal.core.OverflowingLRUCache
clone, elements, fillingRatio, getEntryTable, getLoadFactor, getOverflow, printStats, privateRemoveEntry, privateRemoveEntry, remove, setLoadFactor, setSpaceLimit, shrink, toString, updateTimestampMethods inherited from class 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
-
Constructor Details
-
VerboseElementCache
-
-
Method Details
-
makeSpace
protected boolean makeSpace(int space) Description copied from class:OverflowingLRUCacheEnsures there is the specified amount of free space in the receiver, by removing old entries if necessary. Returns true if the requested space was made available, false otherwise. May not be able to free enough space since some elements cannot be removed until they are saved.- Overrides:
makeSpacein classOverflowingLRUCache<K extends IJavaElement & IOpenable,JavaElementInfo> - Parameters:
space- Amount of space to free up
-
put
Description copied from class:LRUCacheSets the value in the cache at the given key. Returns the value.- Overrides:
putin classOverflowingLRUCache<K extends IJavaElement & IOpenable,JavaElementInfo> - Parameters:
key- Key of object to add.value- Value of object to add.- Returns:
- added value.
-