|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Collection interface; the root of all 1.2 collections.
Method Summary | |
boolean |
add(java.lang.Object x)
Adds an item to this collection. |
void |
clear()
Change the size of this collection to zero. |
boolean |
contains(java.lang.Object x)
Tests if some item is in this collection. |
boolean |
isEmpty()
Tests if this collection is empty. |
Iterator |
iterator()
Obtains an Iterator object used to traverse the collection. |
boolean |
remove(java.lang.Object x)
Removes an item from this collection. |
int |
size()
Returns the number of items in this collection. |
java.lang.Object[] |
toArray()
Obtains a primitive array view of the collection. |
Method Detail |
public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object x)
x
- any object.public boolean add(java.lang.Object x)
x
- any object.public boolean remove(java.lang.Object x)
x
- any object.public void clear()
public Iterator iterator()
public java.lang.Object[] toArray()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |