|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface abstracts the Persistent TreeSet data structure so that it can be mapped to various persistent and transient datastores. It basically uses the JDK1.1.2 java.util.TreeSet to derive the interface. The interface extends PersistentCapableIfc and Serializable.
PersistentCapableIfc
,
Serializable
Method Summary | |
boolean |
add(java.lang.Object object)
Adds the specified element to this set if it is not already present.If the element alsready exists then return false, otherwise return true. |
void |
clear()
Removes all of the elements from this set. |
java.util.Comparator |
comparator()
Returns the comparator used to order this set or null if this set uses natural ordering |
boolean |
contains(java.lang.Object object)
Test whether the set contains the speciied object.If the object cannot be compared with other elements in the set the ClassCastException is raised. |
java.lang.Object |
first()
Returns the first (lowest) key currently in this sorted set.It throws NoSuchElementException if the element does not exist. |
boolean |
isEmpty()
Test is the set is empty |
java.util.Iterator |
iterator()
Returns an iterator for the elements in this set. |
java.lang.Object |
last()
Returns the last (highest) key currently in this sorted map.It throws NoSuchElementException if the element does not exist. |
boolean |
remove(java.lang.Object object)
Removes the given element from this set if it is present. |
int |
size()
Returns the number elements in the set |
Methods inherited from interface org.exolab.core.foundation.PersistentCapableIfc |
getMinimumObjectSize, getObjectId, getObjectVersion, setMinimumObjectSize |
Method Detail |
public java.util.Iterator iterator()
public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object object)
object
- object to test for
java.lang.ClassCastException
public boolean add(java.lang.Object object)
object
- object to add
java.lang.ClassCastException
public boolean remove(java.lang.Object object)
object
- object to remove
java.lang.ClassCastException
public void clear()
public java.util.Comparator comparator()
public java.lang.Object first()
NoSuchElementException
public java.lang.Object last()
NoSuchElementException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |