|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractSet
java.util.WeakHashMap.EntrySet
| Constructor Summary | |
private |
WeakHashMap.EntrySet()
|
| Method Summary | |
void |
clear()
Removes all of the elements from this set (optional operation). |
boolean |
contains(Object o)
Returns true if this set contains the specified element. |
Iterator |
iterator()
Returns an iterator over the elements in this set. |
boolean |
remove(Object o)
Removes the specified element from this set if it is present (optional operation). |
int |
size()
Returns the number of elements in this set (its cardinality). |
Object[] |
toArray()
Returns an array containing all of the elements in this set. |
Object[] |
toArray(Object[] a)
Returns an array containing all of the elements in this set; the runtime type of the returned array is that of the specified array. |
| Methods inherited from class java.util.AbstractSet |
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
add, addAll, containsAll, isEmpty, retainAll, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
add, addAll, containsAll, isEmpty, retainAll |
| Constructor Detail |
private WeakHashMap.EntrySet()
| Method Detail |
public Iterator iterator()
Set
iterator in interface Setiterator in class AbstractCollectionpublic boolean contains(Object o)
Sete such that (o==null ? e==null :
o.equals(e)).
contains in interface Setcontains in class AbstractCollectiono - object to be checked for containment in this collection.
public boolean remove(Object o)
Sete such that
(o==null ? e==null : o.equals(e)), if the set contains
such an element. Returns true if the set contained the
specified element (or equivalently, if the set changed as a result of
the call). (The set will not contain the specified element once the
call returns.)
remove in interface Setremove in class AbstractCollectiono - element to be removed from this collection, if present.
public int size()
Set
size in interface Setsize in class AbstractCollectionpublic void clear()
Set
clear in interface Setclear in class AbstractCollectionpublic Object[] toArray()
Set
toArray in interface SettoArray in class AbstractCollectionpublic Object[] toArray(Object[] a)
Set
toArray in interface SettoArray in class AbstractCollectiona - the array into which the elements of the collection are to
be stored, if it is big enough; otherwise, a new array of the
same runtime type is allocated for this purpose.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||