ozone core API

org.ozoneDB.DxLib
Class DxAbstractCollection

java.lang.Object
  |
  +--org.ozoneDB.DxLib.DxObject
        |
        +--org.ozoneDB.DxLib.DxAbstractCollection
All Implemented Interfaces:
java.lang.Cloneable, DxCollection, DxCompatible, java.io.Externalizable, java.io.Serializable
Direct Known Subclasses:
DxAbstractBag, DxAbstractMap, DxAbstractSet, DxMultiMap

public abstract class DxAbstractCollection
extends DxObject
implements DxCollection, java.io.Externalizable

Common super class of all collection classes.

See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
           
 
Constructor Summary
DxAbstractCollection()
           
 
Method Summary
 boolean addAll(DxCollection coll)
           
 boolean addAll(java.lang.Object[] objs)
           
 java.lang.Object clone(DxCollection newInstance)
          Construct the collection out of an array of objects.
 boolean contains(java.lang.Object obj)
          Returns true is this collection contains an object that equals to the specified object.
 boolean containsAll(DxCollection coll)
           
 boolean equals(java.lang.Object obj)
          Compares two collections for equality.
 void readExternal(java.io.ObjectInput in)
           
 boolean remove(java.lang.Object obj)
          Remove the first occurence of an object that equals the the specified object.
 boolean removeAll(DxCollection coll)
           
 java.lang.Object[] toArray()
           
 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.DxObject
clone, 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
add, clear, clone, count, isEmpty, iterator
 
Methods inherited from interface org.ozoneDB.DxLib.DxCompatible
isLess
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

DxAbstractCollection

public DxAbstractCollection()
Method Detail

clone

public java.lang.Object clone(DxCollection newInstance)
Construct the collection out of an array of objects.


valueClone

public DxCollection valueClone()
erzeugt einen clone der collection und der objekte; Achtung: alle objekte in der collection muessen DxCompatible sein

Specified by:
valueClone in interface DxCollection

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface DxCollection

equals

public boolean equals(java.lang.Object obj)
Compares two collections for equality. You have to override this method in the implementation of an actual collections in order to provide another behaviour than the one implemented in Objects.equals().

Specified by:
equals in interface DxCompatible
Overrides:
equals in class java.lang.Object

addAll

public boolean addAll(DxCollection coll)
Specified by:
addAll in interface DxCollection

addAll

public boolean addAll(java.lang.Object[] objs)
Specified by:
addAll in interface DxCollection

remove

public boolean remove(java.lang.Object obj)
Remove the first occurence of an object that equals the the specified object.

Specified by:
remove in interface DxCollection

removeAll

public boolean removeAll(DxCollection coll)
Specified by:
removeAll in interface DxCollection

contains

public boolean contains(java.lang.Object obj)
Returns true is this collection contains an object that equals to the specified object.

Specified by:
contains in interface DxCollection

containsAll

public boolean containsAll(DxCollection coll)
Specified by:
containsAll in interface DxCollection

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
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
java.io.IOException
java.lang.ClassNotFoundException

ozone core API

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