|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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 Set
iterator
in class AbstractCollection
public boolean contains(Object o)
Set
e
such that (o==null ? e==null :
o.equals(e))
.
contains
in interface Set
contains
in class AbstractCollection
o
- object to be checked for containment in this collection.
public boolean remove(Object o)
Set
e
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 Set
remove
in class AbstractCollection
o
- element to be removed from this collection, if present.
public int size()
Set
size
in interface Set
size
in class AbstractCollection
public void clear()
Set
clear
in interface Set
clear
in class AbstractCollection
public Object[] toArray()
Set
toArray
in interface Set
toArray
in class AbstractCollection
public Object[] toArray(Object[] a)
Set
toArray
in interface Set
toArray
in class AbstractCollection
a
- 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 |