net.metanotion.util
Class PriorityBufferMap<K,V extends Cacheable>
java.lang.Object
net.metanotion.util.PriorityBufferMap<K,V>
- All Implemented Interfaces:
- java.lang.Iterable<java.util.Map.Entry<K,V>>, java.util.Map<K,V>
public class PriorityBufferMap<K,V extends Cacheable>
- extends java.lang.Object
- implements java.util.Map<K,V>, java.lang.Iterable<java.util.Map.Entry<K,V>>
| Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
|
Field Summary |
protected net.metanotion.util.PriorityBufferMap.LinkEl |
first
|
protected net.metanotion.util.PriorityBufferMap.LinkEl |
last
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
first
protected net.metanotion.util.PriorityBufferMap.LinkEl first
last
protected net.metanotion.util.PriorityBufferMap.LinkEl last
PriorityBufferMap
public PriorityBufferMap(long maxWeight)
iterator
public java.util.Iterator<java.util.Map.Entry<K,V>> iterator()
- Specified by:
iterator in interface java.lang.Iterable<java.util.Map.Entry<K,V extends Cacheable>>
put
public V put(K k,
V v)
- Specified by:
put in interface java.util.Map<K,V extends Cacheable>
remove
public V remove(java.lang.Object o)
- Specified by:
remove in interface java.util.Map<K,V extends Cacheable>
get
public V get(java.lang.Object o)
- Specified by:
get in interface java.util.Map<K,V extends Cacheable>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface java.util.Map<K,V extends Cacheable>
size
public int size()
- Specified by:
size in interface java.util.Map<K,V extends Cacheable>
weight
public long weight()
entrySet
public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
- Specified by:
entrySet in interface java.util.Map<K,V extends Cacheable>
keySet
public java.util.Set<K> keySet()
- Specified by:
keySet in interface java.util.Map<K,V extends Cacheable>
values
public java.util.Collection<V> values()
- Specified by:
values in interface java.util.Map<K,V extends Cacheable>
clear
public void clear()
- Specified by:
clear in interface java.util.Map<K,V extends Cacheable>
putAll
public void putAll(java.util.Map<? extends K,? extends V> m)
- Specified by:
putAll in interface java.util.Map<K,V extends Cacheable>
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue in interface java.util.Map<K,V extends Cacheable>
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey in interface java.util.Map<K,V extends Cacheable>