oracle.javatools.resourcebundle
Class ResourceBundleManager.BundleCache<K,V>
java.lang.Object
oracle.javatools.util.Maps.AbstractHashMap<K,V,E>
oracle.javatools.util.Maps.AbstractLinkedHashMap<K,V,Maps.SoftLinkedEntry<K,V>>
oracle.javatools.util.Maps.SoftLinkedHashMap<K,V>
oracle.javatools.resourcebundle.ResourceBundleManager.BundleCache<K,V>
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<K,V>
- Enclosing class:
- ResourceBundleManager
public static class ResourceBundleManager.BundleCache<K,V>
- extends Maps.SoftLinkedHashMap<K,V>
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Methods inherited from class oracle.javatools.util.Maps.AbstractHashMap |
addEntry, capacity, change, clone, containsKey, containsValue, entryAccessed, entryAdded, entryChanged, entryPurged, entryRemoved, entrySet, equals, get, getChangeCount, getEntry, getQueue, hashCode, isEmpty, keyEquals, keyHashCode, keySet, loadFactor, mapConstructed, mapInitialized, purge, purgeEntry, put, putAll, remove, removeExistingEntry, removeKey, size, toString, valueEquals, valueHashCode, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ResourceBundleManager.BundleCache
public ResourceBundleManager.BundleCache()
removeEldestEntry
protected boolean removeEldestEntry(Maps.SoftLinkedEntry<K,V> eldest)
- Description copied from class:
Maps.AbstractLinkedHashMap
- Gets whether to evict the eldest entry from this map. Invoked when an
entry is added to the cache, after
Maps.AbstractHashMap.entryAdded(E)
is invoked. If
Maps.AbstractHashMap.entryAdded(E)
modifies the map, however, this method is not
invoked. The removal of the entry, if requested, causes the Maps.AbstractLinkedHashMap.entryEvicted(E)
method to be invoked, rather than the Maps.AbstractHashMap.entryRemoved(E)
method.
The Maps.AbstractLinkedHashMap
implementation returns false.
In an insertion-ordered map, the eldest entry is the least recently
inserted one; in an access-ordered map, it is the least recently
accessed entry.
This method is provided for compatibility with LinkedHashMap.removeEldestEntry(java.util.Map.Entry)
.
- Overrides:
removeEldestEntry
in class Maps.AbstractLinkedHashMap<K,V,Maps.SoftLinkedEntry<K,V>>
- Parameters:
eldest
- The eldest entry in the map.
- Returns:
- whether the eldest entry should be evicted.
releaseBundle
public boolean releaseBundle(ResourceBundleWrapper bundle)
Copyright © 1997, 2009, Oracle. All rights reserved.