java.lang.Object
java.util.AbstractCollection
org.apache.commons.collections.map.ListOrderedMap.ValuesView
- All Implemented Interfaces:
- java.util.Collection, java.lang.Iterable
- Enclosing class:
- ListOrderedMap
- static class ListOrderedMap.ValuesView
- extends java.util.AbstractCollection
|
Method Summary |
void |
clear()
Remove all elements from the collection (optional operation). |
boolean |
contains(java.lang.Object value)
Test whether this collection contains a given object. |
java.util.Iterator |
iterator()
Return an Iterator over this collection. |
int |
size()
Return the number of elements in this collection. |
parent
private final ListOrderedMap parent
ListOrderedMap.ValuesView
ListOrderedMap.ValuesView(ListOrderedMap parent)
size
public int size()
- Description copied from class:
java.util.AbstractCollection
- Return the number of elements in this collection. If there are more than
Integer.MAX_VALUE elements, return Integer.MAX_VALUE.
contains
public boolean contains(java.lang.Object value)
- Description copied from class:
java.util.AbstractCollection
- Test whether this collection contains a given object. That is, if the
collection has an element e such that (o == null ? e == null :
o.equals(e)). This implementation obtains an iterator over the collection
and iterates over it, testing each element for equality with the given
object. If it is equal, true is returned. Otherwise false is returned when
the end of the collection is reached.
clear
public void clear()
- Description copied from class:
java.util.AbstractCollection
- Remove all elements from the collection (optional operation). This
implementation obtains an iterator over the collection and calls next
and remove on it repeatedly (thus this method will fail with an
UnsupportedOperationException if the Iterator's remove method does)
until there are no more elements to remove.
Many implementations will have a faster way of doing this.
iterator
public java.util.Iterator iterator()
- Description copied from class:
java.util.AbstractCollection
- Return an Iterator over this collection. The iterator must provide the
hasNext and next methods and should in addition provide remove if the
collection is modifiable.