|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Collection
The LEAP (environment-dependent) version of the &qote;java.util.Collection&qote; interface. This interface appears to be exactly the same in J2SE, PJAVA and MIDP. The internal implementation is different in the three cases however.
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object o)
Adds an element. |
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. |
| Method Detail |
|---|
boolean add(java.lang.Object o)
boolean isEmpty()
boolean remove(java.lang.Object o)
o - the element to be removed
Iterator iterator()
java.lang.Object[] toArray()
int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||