org.ozoneDB.DxLib
Class DxMultiMap
java.lang.Object
org.ozoneDB.DxLib.DxObject
org.ozoneDB.DxLib.DxAbstractCollection
org.ozoneDB.DxLib.DxMultiMap
- All Implemented Interfaces:
- java.lang.Cloneable, DxCollection, DxCompatible, DxMap, java.io.Externalizable, java.io.Serializable
- public class DxMultiMap
- extends DxAbstractCollection
- implements DxMap, java.io.Externalizable
- Version:
- $Revision: 1.8 $Date: 2000/10/28 16:55:14 $
- Author:
- SMB
- See Also:
- Serialized Form
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
map
protected transient DxMap map
containerFactory
protected transient DxCollection containerFactory
multiItemCount
protected transient int multiItemCount
DxMultiMap
public DxMultiMap()
DxMultiMap
public DxMultiMap(DxMap _map,
DxCollection _containerFactory)
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
valueClone
public DxCollection valueClone()
- Description copied from class:
DxAbstractCollection
- erzeugt einen clone der collection und der objekte;
Achtung: alle objekte in der collection muessen DxCompatible sein
- Specified by:
valueClone
in interface DxCollection
- Overrides:
valueClone
in class DxAbstractCollection
equals
public boolean equals(java.lang.Object obj)
- Compares two multimaps for equality.
- Specified by:
equals
in interface DxCompatible
- Overrides:
equals
in class DxAbstractCollection
keySet
public DxSet keySet()
- Specified by:
keySet
in interface DxMap
elementSet
public DxSet elementSet()
- Specified by:
elementSet
in interface DxMap
add
public boolean add(java.lang.Object obj)
- Specified by:
add
in interface DxCollection
buildKey
public java.lang.Object buildKey(java.lang.Object obj)
- Description copied from interface:
DxMap
- This method is not declared abstract because it does not need to
be implemented in any case.
- Specified by:
buildKey
in interface DxMap
addForKey
public boolean addForKey(java.lang.Object obj,
java.lang.Object key)
- Specified by:
addForKey
in interface DxMap
elementsForKey
public DxCollection elementsForKey(java.lang.Object key)
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
removeAllKeys
public boolean removeAllKeys(DxCollection coll)
- Specified by:
removeAllKeys
in interface DxMap
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interface DxMap
iterator
public DxIterator iterator()
- Specified by:
iterator
in interface DxCollection
count
public int count()
- Specified by:
count
in interface DxCollection
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface DxCollection
clear
public void clear()
- Specified by:
clear
in interface DxCollection
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal
in interface java.io.Externalizable
- Overrides:
writeExternal
in class DxAbstractCollection
- Throws:
java.io.IOException
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal
in interface java.io.Externalizable
- Overrides:
readExternal
in class DxAbstractCollection
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.