|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Collection compatible version.
Method Summary | |
boolean |
add(Object o)
Adds the specified element to this set if it is not already present (optional operation). |
boolean |
addAll(Collection c)
Adds all of the elements in the specified collection to this set if they're not already present (optional operation). |
boolean |
contains(Object o)
Returns true if this collection contains the specified element. |
boolean |
isEmpty()
Returns true if this list contains no elements. |
boolean |
remove(Object o)
Removes the first occurrence in this list of the specified element (optional operation). |
boolean |
removeAll(Collection c)
Removes all this collection's elements that are also contained in the specified collection (optional operation). |
int |
size()
Returns the number of elements in this list. |
Object[] |
toArray()
Returns an array containing all of the elements in this collection. |
Object[] |
toArray(Object[] a)
Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array. |
Method Detail |
public boolean contains(Object o)
o
- The object to look for.
public boolean remove(Object o)
o
- The element to remove.
public boolean removeAll(Collection c)
c
- The collection of elements to remove.
public boolean isEmpty()
public int size()
public Object[] toArray()
public Object[] toArray(Object[] a)
a
- The array from which to get the type.
public boolean add(Object o)
o
- The object to add.
public boolean addAll(Collection c)
c
- The collection.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |