|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.util.leap.SortedSetImpl
public class 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 Collectioninterfacepublic boolean isEmpty()
Collection
isEmpty in interface Collectioninterfacepublic boolean remove(java.lang.Object o)
Collection
remove in interface Collectiono - the element to be removed
interfacepublic Iterator iterator()
Collection
iterator in interface Collectioninterfacepublic java.lang.Object[] toArray()
Collection
toArray in interface Collectioninterfacepublic int size()
Collection
size in interface Collectioninterfacepublic java.lang.Object first()
SortedSet
first in interface SortedSetinterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||