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