org.ozoneDB.DxLib
Class DxTreeSet
java.lang.Object
org.ozoneDB.DxLib.DxObject
org.ozoneDB.DxLib.DxAbstractCollection
org.ozoneDB.DxLib.DxAbstractSet
org.ozoneDB.DxLib.DxTreeSet
- All Implemented Interfaces:
- java.lang.Cloneable, DxCollection, DxCompatible, DxSet, org.ozoneDB.DxLib.DxTreeCollection, java.io.Externalizable, java.io.Serializable
- public class DxTreeSet
- extends DxAbstractSet
- implements org.ozoneDB.DxLib.DxTreeCollection
- Version:
- $Revision: 1.1 $Date: 2001/12/18 10:31:30 $
- Author:
- SMB
- See Also:
- Serialized Form
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()
|
org.ozoneDB.DxLib.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 java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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 org.ozoneDB.DxLib.DxBBTree internalTree()
- Specified by:
internalTree
in interface org.ozoneDB.DxLib.DxTreeCollection
Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.