Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.collections.map
Class ListOrderedMap.ValuesView  view ListOrderedMap.ValuesView download ListOrderedMap.ValuesView.java

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byorg.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


Field Summary
private  ListOrderedMap parent
           
 
Constructor Summary
(package private) ListOrderedMap.ValuesView(ListOrderedMap parent)
           
 
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.
 
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
 

Field Detail

parent

private final ListOrderedMap parent
Constructor Detail

ListOrderedMap.ValuesView

ListOrderedMap.ValuesView(ListOrderedMap parent)
Method Detail

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.