|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface is intended to parallel the JDK 1.2 Collection interface. Please see the JDK 1.2 documenation for further details.
| Method Summary | |
boolean |
add(java.lang.Object o)
Add the specified element to the collection (optional operation). |
boolean |
addAll(Collection c)
Adds all of the elements from the specified collection to this collection (optional operation). |
void |
clear()
Removes all of the elements from this collection (optional operation). |
boolean |
contains(java.lang.Object object)
Returns true if the collection contains the specified object. |
boolean |
containsAll(Collection c)
Returns true is this collection contains all the elements of the specified collection. |
boolean |
equals(java.lang.Object o)
Returns true if the specified argument is equal to this collection. |
int |
hashCode()
Returns a hash code for this collection. |
boolean |
isEmpty()
Returns true if the collection is empty. |
Iterator |
iterator()
Returns an iterator for the collection. |
boolean |
remove(java.lang.Object o)
Removes an element from the collection (optional operation). |
boolean |
removeAll(Collection c)
Removes all the elements of the specified collection from this collection (optional operation). |
boolean |
retainAll(Collection c)
Retains only the elements from the specified collection (optional operation). |
int |
size()
Returns the size of the collection. |
java.lang.Object[] |
toArray()
Returns a new array of elements from the collection. |
java.lang.Object[] |
toArray(java.lang.Object[] a)
Returns an array of all the elements from the collection. |
| Method Detail |
public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object object)
object - the object to be tested for containment
public Iterator iterator()
public java.lang.Object[] toArray()
public java.lang.Object[] toArray(java.lang.Object[] a)
a - the array in to which the elements will be stored (if big
enough)
public boolean add(java.lang.Object o)
o - the element to add to the collection
public boolean remove(java.lang.Object o)
o - the element to remove from the collection
public boolean containsAll(Collection c)
c - the collection to be checked
public boolean addAll(Collection c)
c - the collection from which elements are added
public boolean removeAll(Collection c)
c - the elements to be removed from this collection
public boolean retainAll(Collection c)
c - the elements to be retained for this collection
public void clear()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to be compared for equality
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||