org.ozoneDB.DxLib
Class DxHashMap
java.lang.Object
org.ozoneDB.DxLib.DxObject
org.ozoneDB.DxLib.DxAbstractCollection
org.ozoneDB.DxLib.DxAbstractMap
org.ozoneDB.DxLib.DxHashMap
- All Implemented Interfaces:
- java.lang.Cloneable, DxCollection, DxCompatible, DxHashCollection, DxMap, java.io.Externalizable, java.io.Serializable
- public class DxHashMap
- extends DxAbstractMap
- implements 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
Field Summary |
protected java.util.Hashtable |
ht
|
(package private) static long |
serialVersionUID
|
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 java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
ht
protected transient java.util.Hashtable ht
DxHashMap
public DxHashMap()
DxHashMap
public DxHashMap(int size)
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 DxHashCollection
Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.