ozone core API

org.ozoneDB.DxLib
Class DxTreeSet

java.lang.Object
  extended byorg.ozoneDB.DxLib.DxObject
      extended byorg.ozoneDB.DxLib.DxAbstractCollection
          extended byorg.ozoneDB.DxLib.DxAbstractSet
              extended byorg.ozoneDB.DxLib.DxTreeSet
All Implemented Interfaces:
java.lang.Cloneable, DxCollection, DxCompatible, DxSet, DxTreeCollection, java.io.Externalizable, java.io.Serializable

public class DxTreeSet
extends DxAbstractSet
implements DxTreeCollection

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

Field Summary
protected  DxBBTree bbtree
           
protected  DxComparator comparator
           
(package private) static long serialVersionUID
           
 
Constructor Summary
DxTreeSet()
          Constructs a new, empty set.
DxTreeSet(DxComparator _comparator)
          Constructs a new, empty set, sorted according to the given comparator.
 
Method Summary
 boolean add(java.lang.Object obj)
           
 void clear()
           
 java.lang.Object clone()
          liefert eine kopie des objektes; sollte von subclasses ueberschrieben werden;
 boolean contains(java.lang.Object obj)
          Returns true is this collection contains an object that equals to the specified object.
 int count()
           
 DxBBTree internalTree()
           
 boolean isEmpty()
           
 DxIterator iterator()
           
 boolean remove(java.lang.Object obj)
          Remove the first occurence of an object that equals the the specified object.
 
Methods inherited from class org.ozoneDB.DxLib.DxAbstractSet
equals, retainAll
 
Methods inherited from class org.ozoneDB.DxLib.DxAbstractCollection
addAll, addAll, clone, containsAll, readExternal, removeAll, toArray, valueClone, writeExternal
 
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, containsAll, removeAll, toArray, valueClone
 
Methods inherited from interface org.ozoneDB.DxLib.DxCompatible
equals, isLess
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

bbtree

protected transient DxBBTree bbtree

comparator

protected DxComparator comparator
Constructor Detail

DxTreeSet

public DxTreeSet()
Constructs a new, empty set. All keys inserted into the map must implement the DxComparable interface.


DxTreeSet

public DxTreeSet(DxComparator _comparator)
Constructs a new, empty set, sorted according to the given comparator. All inserted objects must be comparable by the given comparator.

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

add

public boolean add(java.lang.Object obj)
Specified by:
add in interface DxCollection

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

contains

public boolean contains(java.lang.Object obj)
Description copied from class: DxAbstractCollection
Returns true is this collection contains an object that equals to the specified object.

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

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

internalTree

public DxBBTree internalTree()
Specified by:
internalTree in interface DxTreeCollection

ozone core API

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