ozone API

org.ozoneDB.DxLib
Class DxHashMap

java.lang.Object
  extended byorg.ozoneDB.DxLib.DxObject
      extended byorg.ozoneDB.DxLib.DxAbstractCollection
          extended byorg.ozoneDB.DxLib.DxAbstractMap
              extended byorg.ozoneDB.DxLib.DxHashMap
All Implemented Interfaces:
java.lang.Cloneable, DxCollection, DxCompatible, org.ozoneDB.DxLib.DxHashCollection, DxMap, java.io.Externalizable, java.io.Serializable

public class DxHashMap
extends DxAbstractMap
implements org.ozoneDB.DxLib.DxHashCollection

A DxMap implementation based on java.util.Hashtable.

Version:
$Revision: 1.1 $Date: 2001/12/18 10:31:30 $, $Revision: 1.1 $Date: 2001/12/18 10:31:30 $
Author:
SMB, SMB
See Also:
Serialized Form

Constructor Summary
DxHashMap()
           
DxHashMap(int size)
           
 
Method Summary
 boolean addForKey(java.lang.Object obj, java.lang.Object key)
           
 void clear()
           
 java.lang.Object clone()
          liefert eine kopie des objektes; sollte von subclasses ueberschrieben werden;
 boolean containsKey(java.lang.Object key)
           
 int count()
           
 java.lang.Object elementForKey(java.lang.Object key)
           
 java.util.Hashtable internalHashtable()
           
 boolean isEmpty()
           
 DxIterator iterator()
           
 java.lang.Object keyForElement(java.lang.Object obj)
          Returns the key for the given object, which has to be the same object as stored in the map.
 boolean remove(java.lang.Object obj)
          Remove the first occurence of an object that equals the the specified object.
 java.lang.Object removeForKey(java.lang.Object key)
           
 
Methods inherited from class org.ozoneDB.DxLib.DxAbstractMap
add, addAll, buildKey, clone, elementSet, equals, keySet, readExternal, removeAllKeys, valueClone, writeExternal
 
Methods inherited from class org.ozoneDB.DxLib.DxAbstractCollection
addAll, clone, contains, containsAll, removeAll, toArray
 
Methods inherited from class org.ozoneDB.DxLib.DxObject
isLess
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ozoneDB.DxLib.DxCollection
add, addAll, addAll, contains, containsAll, removeAll, toArray, valueClone
 
Methods inherited from interface org.ozoneDB.DxLib.DxCompatible
equals, isLess
 

Constructor Detail

DxHashMap

public DxHashMap()

DxHashMap

public DxHashMap(int size)
Method Detail

clone

public java.lang.Object clone()
Description copied from class: DxObject
liefert eine kopie des objektes; sollte von subclasses ueberschrieben werden;

Specified by:
clone in interface DxCollection
Overrides:
clone in class DxObject

addForKey

public boolean addForKey(java.lang.Object obj,
                         java.lang.Object key)
Specified by:
addForKey in interface DxMap

elementForKey

public java.lang.Object elementForKey(java.lang.Object key)
Specified by:
elementForKey in interface DxMap

keyForElement

public java.lang.Object keyForElement(java.lang.Object obj)
Description copied from interface: DxMap
Returns the key for the given object, which has to be the same object as stored in the map.

Specified by:
keyForElement in interface DxMap

removeForKey

public java.lang.Object removeForKey(java.lang.Object key)
Specified by:
removeForKey in interface DxMap

remove

public boolean remove(java.lang.Object obj)
Description copied from class: DxAbstractCollection
Remove the first occurence of an object that equals the the specified object.

Specified by:
remove in interface DxCollection
Overrides:
remove in class DxAbstractCollection

count

public int count()
Specified by:
count in interface DxCollection

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface DxCollection

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface DxMap
Overrides:
containsKey in class DxAbstractMap

iterator

public DxIterator iterator()
Specified by:
iterator in interface DxCollection

clear

public void clear()
Specified by:
clear in interface DxCollection

internalHashtable

public java.util.Hashtable internalHashtable()
Specified by:
internalHashtable in interface org.ozoneDB.DxLib.DxHashCollection

ozone API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.