|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.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 Collectioniterator in class AbstractCollectionpublic int size()
AbstractCollection
size in interface Collectionsize in class AbstractCollectionpublic boolean contains(Object o)
AbstractCollectionThis implementation iterates over the elements in the collection, checking each element in turn for equality with the specified element.
contains in interface Collectioncontains in class AbstractCollectiono - object to be checked for containment in this collection.
public void clear()
AbstractCollectionThis 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 Collectionclear in class AbstractCollection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||