com.github.libxjava.util
Class BasicHashMap

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

public class BasicHashMap
extends HashMap

Version:
libxjava-cdc - 0.3
Author:
Marcel Patzlaff
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry
 
Constructor Summary
BasicHashMap()
           
BasicHashMap(int initialCapacity)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 BasicEnumeration elements()
           
 Object get(Object key)
           
 boolean isEmpty()
           
 BasicEnumeration keys()
           
 Object put(Object key, Object value)
           
 Object 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
Overrides:
clear in class HashMap

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map
Overrides:
containsKey in class HashMap

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map
Overrides:
containsValue in class HashMap

elements

public BasicEnumeration elements()

get

public Object get(Object key)
Specified by:
get in interface Map
Overrides:
get in class HashMap

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map
Overrides:
isEmpty in class HashMap

keys

public BasicEnumeration keys()

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map
Overrides:
put in class HashMap

remove

public Object remove(Object key)
Specified by:
remove in interface Map
Overrides:
remove in class HashMap

size

public int size()
Specified by:
size in interface Map
Overrides:
size in class HashMap

toString

public String toString()
Overrides:
toString in class AbstractMap


Copyright © 2011 Marcel Patzlaff. All Rights Reserved.