|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection java.util.HashMap.Values
Constructor Summary | |
private |
HashMap.Values()
|
Method Summary | |
void |
clear()
Removes all of the elements from this collection (optional operation). |
boolean |
contains(Object o)
Returns true if this collection contains the specified element. |
Iterator |
iterator()
Returns an iterator over the elements contained in this collection. |
int |
size()
Returns the number of elements in this collection. |
Methods inherited from class java.util.AbstractCollection |
add, addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
equals, hashCode |
Constructor Detail |
private HashMap.Values()
Method Detail |
public Iterator iterator()
AbstractCollection
iterator
in interface Collection
iterator
in class AbstractCollection
public int size()
AbstractCollection
size
in interface Collection
size
in class AbstractCollection
public boolean contains(Object o)
AbstractCollection
This implementation iterates over the elements in the collection, checking each element in turn for equality with the specified element.
contains
in interface Collection
contains
in class AbstractCollection
o
- object to be checked for containment in this collection.
public void clear()
AbstractCollection
This implementation iterates over this collection, removing each element using the Iterator.remove operation. Most implementations will probably choose to override this method for efficiency.
Note that this implementation will throw an UnsupportedOperationException if the iterator returned by this collection's iterator method does not implement the remove method and this collection is non-empty.
clear
in interface Collection
clear
in class AbstractCollection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |