se.unlogic.standardutils.collections
Class StrictTreeMap<Key,Value>
java.lang.Object
se.unlogic.standardutils.collections.StrictTreeMap<Key,Value>
- All Implemented Interfaces:
- java.util.Map<Key,Value>, StrictMap<Key,Value>
public class StrictTreeMap<Key,Value>
- extends java.lang.Object
- implements StrictMap<Key,Value>
| Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
treeMap
protected final java.util.TreeMap<Key,Value> treeMap
StrictTreeMap
public StrictTreeMap(java.util.Comparator<Key> comparator)
put
public Value put(Key key,
Value value)
throws KeyAlreadyCachedException
- Specified by:
put in interface java.util.Map<Key,Value>- Specified by:
put in interface StrictMap<Key,Value>
- Throws:
KeyAlreadyCachedException
update
public Value update(Key key,
Value value)
throws KeyNotCachedException
- Specified by:
update in interface StrictMap<Key,Value>
- Throws:
KeyNotCachedException
remove
public Value remove(java.lang.Object key)
throws KeyNotCachedException
- Specified by:
remove in interface java.util.Map<Key,Value>- Specified by:
remove in interface StrictMap<Key,Value>
- Throws:
KeyNotCachedException
clear
public void clear()
- Specified by:
clear in interface java.util.Map<Key,Value>
clone
public java.lang.Object clone()
- Overrides:
clone in class java.lang.Object
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey in interface java.util.Map<Key,Value>
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue in interface java.util.Map<Key,Value>
entrySet
public java.util.Set<java.util.Map.Entry<Key,Value>> entrySet()
- Specified by:
entrySet in interface java.util.Map<Key,Value>
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals in interface java.util.Map<Key,Value>- Overrides:
equals in class java.lang.Object
get
public Value get(java.lang.Object key)
- Specified by:
get in interface java.util.Map<Key,Value>
hashCode
public int hashCode()
- Specified by:
hashCode in interface java.util.Map<Key,Value>- Overrides:
hashCode in class java.lang.Object
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface java.util.Map<Key,Value>
keySet
public java.util.Set<Key> keySet()
- Specified by:
keySet in interface java.util.Map<Key,Value>
size
public int size()
- Specified by:
size in interface java.util.Map<Key,Value>
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
values
public java.util.Collection<Value> values()
- Specified by:
values in interface java.util.Map<Key,Value>
putAll
public void putAll(java.util.Map<? extends Key,? extends Value> map)
throws KeyAlreadyCachedException
- Specified by:
putAll in interface java.util.Map<Key,Value>
- Throws:
KeyAlreadyCachedException
Copyright © 2011. All Rights Reserved.