com.github.libxjava.util
Class BasicHashMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by com.github.libxjava.util.BasicHashMap<K,V>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>
Direct Known Subclasses:
SerialisableHashMap

public class BasicHashMap<K,V>
extends HashMap<K,V>

Version:
libxjava-jse5 - 0.2
Author:
Marcel Patzlaff
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
BasicHashMap()
           
BasicHashMap(int initialCapacity)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 BasicEnumeration<V> elements()
           
 V get(Object key)
           
 boolean isEmpty()
           
 BasicEnumeration<K> keys()
           
 V put(K key, V value)
           
 V remove(Object key)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.util.HashMap
clone, entrySet, keySet, putAll, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

BasicHashMap

public BasicHashMap()

BasicHashMap

public BasicHashMap(int initialCapacity)
Method Detail

clear

public void clear()
Specified by:
clear in interface Map<K,V>
Overrides:
clear in class HashMap<K,V>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<K,V>
Overrides:
containsKey in class HashMap<K,V>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<K,V>
Overrides:
containsValue in class HashMap<K,V>

elements

public BasicEnumeration<V> elements()

get

public V get(Object key)
Specified by:
get in interface Map<K,V>
Overrides:
get in class HashMap<K,V>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<K,V>
Overrides:
isEmpty in class HashMap<K,V>

keys

public BasicEnumeration<K> keys()

put

public V put(K key,
             V value)
Specified by:
put in interface Map<K,V>
Overrides:
put in class HashMap<K,V>

remove

public V remove(Object key)
Specified by:
remove in interface Map<K,V>
Overrides:
remove in class HashMap<K,V>

size

public int size()
Specified by:
size in interface Map<K,V>
Overrides:
size in class HashMap<K,V>

toString

public String toString()
Overrides:
toString in class AbstractMap<K,V>


Copyright © 2010 Marcel Patzlaff. All Rights Reserved.