se.unlogic.standardutils.collections
Class StrictHashMap<Key,Value>

java.lang.Object
  extended by se.unlogic.standardutils.collections.StrictHashMap<Key,Value>
All Implemented Interfaces:
Map<Key,Value>, StrictMap<Key,Value>

public class StrictHashMap<Key,Value>
extends Object
implements StrictMap<Key,Value>


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
StrictHashMap()
           
 
Method Summary
 void clear()
           
 Object clone()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<Key,Value>> entrySet()
           
 boolean equals(Object o)
           
 Value get(Object key)
           
 int hashCode()
           
 boolean isEmpty()
           
 Set<Key> keySet()
           
 Value put(Key key, Value value)
           
 void putAll(Map<? extends Key,? extends Value> map)
           
 Value remove(Object key)
           
 int size()
           
 String toString()
           
 Value update(Key key, Value value)
           
 Collection<Value> values()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StrictHashMap

public StrictHashMap()
Method Detail

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.