|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Set
| Method Summary | |
|---|---|
boolean |
add(Object o)
Attempts to add object to the contents of this
Collection. |
void |
clear()
Removes all elements from this Collection, leaving it empty. |
boolean |
contains(Object o)
Searches this Collection for the specified object. |
boolean |
containsAll(Collection c)
Searches this Collection for all objects in the specified Collection. |
Iterator |
iterator()
Returns an instance of Iterator that may be used to access the
objects contained by this collection. |
boolean |
remove(Object o)
Removes the first occurrence of the specified object from this Collection. |
Object[] |
toArray()
Answers a new array containing all elements contained in this Collection. |
| Methods inherited from interface java.util.Collection |
|---|
addAll, equals, hashCode, isEmpty, removeAll, retainAll, size, toArray |
| Method Detail |
|---|
boolean add(Object o)
Collectionobject to the contents of this
Collection.
add in interface Collectiono - the object to add
true if this Collection is
modified, false otherwiseboolean remove(Object o)
Collection
remove in interface Collectiono - the object to remove
boolean contains(Object o)
Collection
contains in interface Collectiono - the object to search for
Iterator iterator()
CollectionIterator that may be used to access the
objects contained by this collection.
iterator in interface Collectioniterator in interface IterableObject[] toArray()
Collection
toArray in interface Collectionvoid clear()
Collection
clear in interface CollectionCollection.isEmpty(),
Collection.size()boolean containsAll(Collection c)
Collection
containsAll in interface Collectionc - the Collection of objects
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||