|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jade.util.leap.SortedSetImpl
The LEAP (environment-dependent) implementation of the &qote;SortedSet&qote; interface. This class appears to be exactly the same in J2SE, PJAVA and MIDP. The internal implementation is different in the three cases however.
SortedSet
,
TreeSet
Constructor Summary | |
SortedSetImpl()
Default Constructor, creates an empty Set, according to the elements' natural order. |
Method Summary | |
boolean |
add(java.lang.Object o)
Adds an element. |
java.lang.Object |
first()
Returns the first (lowest) element currently in this sorted set. |
boolean |
isEmpty()
Checks if the collection contains elements. |
Iterator |
iterator()
Returns an iterator over the elements in this collection. |
boolean |
remove(java.lang.Object o)
Removes one instance of the specified element. |
int |
size()
Returns the number of elements in this collection. |
java.lang.Object[] |
toArray()
Returns an array containing all of the elements in this collection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SortedSetImpl()
Method Detail |
public boolean add(java.lang.Object o)
Collection
add
in interface Collection
interface
public boolean isEmpty()
Collection
isEmpty
in interface Collection
interface
public boolean remove(java.lang.Object o)
Collection
remove
in interface Collection
o
- the element to be removed
interface
public Iterator iterator()
Collection
iterator
in interface Collection
interface
public java.lang.Object[] toArray()
Collection
toArray
in interface Collection
interface
public int size()
Collection
size
in interface Collection
interface
public java.lang.Object first()
SortedSet
first
in interface SortedSet
interface
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |