|
Dashboard Builder Commons 6.0.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap
org.jboss.dashboard.database.cache.custom.map.AbstractHashedMap
org.jboss.dashboard.database.cache.custom.map.AbstractLinkedMap
org.jboss.dashboard.database.cache.custom.map.LRUMap
org.jboss.dashboard.database.cache.custom.map.SynchronizedLRUMap
public class SynchronizedLRUMap
Synchronizes ALL public methods, not only those defined by Map interface
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jboss.dashboard.database.cache.custom.map.AbstractLinkedMap |
|---|
AbstractLinkedMap.EntrySetIterator, AbstractLinkedMap.KeySetIterator, AbstractLinkedMap.LinkEntry, AbstractLinkedMap.LinkIterator, AbstractLinkedMap.LinkMapIterator, AbstractLinkedMap.ValuesIterator |
| Nested classes/interfaces inherited from class org.jboss.dashboard.database.cache.custom.map.AbstractHashedMap |
|---|
AbstractHashedMap.EntrySet, AbstractHashedMap.HashEntry, AbstractHashedMap.HashIterator, AbstractHashedMap.HashMapIterator, AbstractHashedMap.KeySet, AbstractHashedMap.Values |
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary |
|---|
| Fields inherited from class org.jboss.dashboard.database.cache.custom.map.LRUMap |
|---|
DEFAULT_MAX_SIZE |
| Fields inherited from class org.jboss.dashboard.database.cache.custom.map.AbstractLinkedMap |
|---|
header |
| Fields inherited from class org.jboss.dashboard.database.cache.custom.map.AbstractHashedMap |
|---|
data, DEFAULT_CAPACITY, DEFAULT_LOAD_FACTOR, DEFAULT_THRESHOLD, entrySet, GETKEY_INVALID, GETVALUE_INVALID, keySet, loadFactor, MAXIMUM_CAPACITY, modCount, NO_NEXT_ENTRY, NO_PREVIOUS_ENTRY, NULL, REMOVE_INVALID, SETVALUE_INVALID, size, threshold, values |
| Constructor Summary | |
|---|---|
SynchronizedLRUMap(int size)
|
|
| Method Summary | |
|---|---|
void |
clear()
Clears the map, resetting the size to zero and nullifying references to avoid garbage collection issues. |
Object |
clone()
Clones the map without cloning the keys or values. |
boolean |
containsKey(Object key)
Checks whether the map contains the specified key. |
boolean |
containsValue(Object value)
Checks whether the map contains the specified value. |
Set |
entrySet()
Gets the entrySet view of the map. |
boolean |
equals(Object obj)
Compares this map with another. |
Object |
firstKey()
Gets the first key in the map, which is the most recently inserted. |
Object |
get(Object key)
Gets the value mapped to the key specified. |
int |
hashCode()
Gets the standard Map hashCode. |
boolean |
isEmpty()
Checks whether the map is currently empty. |
boolean |
isFull()
Returns true if this map is full and no new mappings can be added. |
boolean |
isScanUntilRemovable()
Whether this LRUMap will scan until a removable entry is found when the map is full. |
Set |
keySet()
Gets the keySet view of the map. |
Object |
lastKey()
Gets the last key in the map, which is the first inserted. |
org.apache.commons.collections.MapIterator |
mapIterator()
Gets an iterator over the map. |
int |
maxSize()
Gets the maximum size of the map (the bound). |
Object |
nextKey(Object key)
Gets the next key in sequence. |
org.apache.commons.collections.OrderedMapIterator |
orderedMapIterator()
Gets a bidirectional iterator over the map. |
Object |
previousKey(Object key)
Gets the previous key in sequence. |
Object |
put(Object key,
Object value)
Puts a key-value mapping into this map. |
void |
putAll(Map map)
Puts all the values from the specified map into this map. |
Object |
remove(Object key)
Removes the specified mapping from this map. |
int |
size()
Gets the size of the map. |
String |
toString()
Gets the map as a String. |
Collection |
values()
Gets the values view of the map. |
| Methods inherited from class org.jboss.dashboard.database.cache.custom.map.LRUMap |
|---|
addMapping, doReadObject, doWriteObject, moveToMRU, removeLRU, reuseMapping, updateEntry |
| Methods inherited from class org.jboss.dashboard.database.cache.custom.map.AbstractLinkedMap |
|---|
addEntry, createEntry, createEntrySetIterator, createKeySetIterator, createValuesIterator, entryAfter, entryBefore, getEntry, init, removeEntry |
| Methods inherited from class org.jboss.dashboard.database.cache.custom.map.AbstractHashedMap |
|---|
calculateNewCapacity, calculateThreshold, checkCapacity, convertKey, destroyEntry, ensureCapacity, entryHashCode, entryKey, entryNext, entryValue, getEntry, hash, hashIndex, isEqualKey, isEqualValue, removeMapping, reuseEntry |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SynchronizedLRUMap(int size)
| Method Detail |
|---|
public Object get(Object key)
LRUMap
get in interface Mapget in class LRUMapkey - the key
public boolean isFull()
LRUMap
isFull in interface BoundedMapisFull in class LRUMaptrue if the map is fullpublic int maxSize()
LRUMap
maxSize in interface BoundedMapmaxSize in class LRUMappublic boolean isScanUntilRemovable()
LRUMap
isScanUntilRemovable in class LRUMappublic Object clone()
LRUMap
clone in class LRUMappublic String toString()
AbstractHashedMap
toString in class AbstractHashedMappublic int hashCode()
AbstractHashedMap
hashCode in interface MaphashCode in class AbstractHashedMappublic boolean equals(Object obj)
AbstractHashedMap
equals in interface Mapequals in class AbstractHashedMapobj - the object to compare to
public Collection values()
AbstractHashedMapAbstractHashedMap.mapIterator().
values in interface Mapvalues in class AbstractHashedMappublic Set keySet()
AbstractHashedMapAbstractHashedMap.mapIterator().
keySet in interface MapkeySet in class AbstractHashedMappublic Set entrySet()
AbstractHashedMapAbstractHashedMap.mapIterator().
entrySet in interface MapentrySet in class AbstractHashedMappublic Object remove(Object key)
AbstractHashedMap
remove in interface Mapremove in class AbstractHashedMapkey - the mapping to remove
public void putAll(Map map)
AbstractHashedMapAbstractHashedMap.put(Object, Object).
putAll in interface MapputAll in class AbstractHashedMapmap - the map to add
public Object put(Object key,
Object value)
AbstractHashedMap
put in interface Mapput in class AbstractHashedMapkey - the key to addvalue - the value to add
public boolean containsKey(Object key)
AbstractHashedMap
containsKey in interface MapcontainsKey in class AbstractHashedMapkey - the key to search for
public boolean isEmpty()
AbstractHashedMap
isEmpty in interface MapisEmpty in class AbstractHashedMappublic int size()
AbstractHashedMap
size in interface Mapsize in class AbstractHashedMappublic org.apache.commons.collections.OrderedMapIterator orderedMapIterator()
AbstractLinkedMap
orderedMapIterator in interface org.apache.commons.collections.OrderedMaporderedMapIterator in class AbstractLinkedMappublic org.apache.commons.collections.MapIterator mapIterator()
AbstractLinkedMap
mapIterator in interface org.apache.commons.collections.IterableMapmapIterator in class AbstractLinkedMappublic Object previousKey(Object key)
AbstractLinkedMap
previousKey in interface org.apache.commons.collections.OrderedMappreviousKey in class AbstractLinkedMapkey - the key to get before
public Object nextKey(Object key)
AbstractLinkedMap
nextKey in interface org.apache.commons.collections.OrderedMapnextKey in class AbstractLinkedMapkey - the key to get after
public Object lastKey()
AbstractLinkedMap
lastKey in interface org.apache.commons.collections.OrderedMaplastKey in class AbstractLinkedMappublic Object firstKey()
AbstractLinkedMap
firstKey in interface org.apache.commons.collections.OrderedMapfirstKey in class AbstractLinkedMappublic void clear()
AbstractLinkedMap
clear in interface Mapclear in class AbstractLinkedMappublic boolean containsValue(Object value)
AbstractLinkedMap
containsValue in interface MapcontainsValue in class AbstractLinkedMapvalue - the value to search for
|
Dashboard Builder Commons 6.0.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||