ozone core API

org.ozoneDB.DxLib
Class DxMultiMap

java.lang.Object
  extended byorg.ozoneDB.DxLib.DxObject
      extended byorg.ozoneDB.DxLib.DxAbstractCollection
          extended byorg.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

Field Summary
protected  DxCollection containerFactory
           
protected  DxMap map
           
protected  int multiItemCount
           
(package private) static long serialVersionUID
           
 
Constructor Summary
DxMultiMap()
           
DxMultiMap(DxMap _map, DxCollection _containerFactory)
           
 
Method Summary
 boolean add(java.lang.Object obj)
           
 boolean addForKey(java.lang.Object obj, java.lang.Object key)
           
 java.lang.Object buildKey(java.lang.Object obj)
          This method is not declared abstract because it does not need to be implemented in any case.
 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)
           
 DxSet elementSet()
           
 DxCollection elementsForKey(java.lang.Object key)
           
 boolean equals(java.lang.Object obj)
          Compares two multimaps for equality.
 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.
 DxSet keySet()
           
 void readExternal(java.io.ObjectInput in)
           
 boolean removeAllKeys(DxCollection coll)
           
 java.lang.Object removeForKey(java.lang.Object key)
           
 DxCollection valueClone()
          erzeugt einen clone der collection und der objekte; Achtung: alle objekte in der collection muessen DxCompatible sein
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class org.ozoneDB.DxLib.DxAbstractCollection
addAll, addAll, clone, contains, containsAll, remove, removeAll, toArray
 
Methods inherited from class org.ozoneDB.DxLib.DxObject
isLess
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ozoneDB.DxLib.DxCollection
addAll, addAll, contains, containsAll, remove, removeAll, toArray
 
Methods inherited from interface org.ozoneDB.DxLib.DxCompatible
isLess
 

Field Detail

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
Constructor Detail

DxMultiMap

public DxMultiMap()

DxMultiMap

public DxMultiMap(DxMap _map,
                  DxCollection _containerFactory)
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

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

ozone core API

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