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

Quick Search    Search Deep

org.apache.commons.collections.iterators: Javadoc index of package org.apache.commons.collections.iterators.


Package Samples:

org.apache.commons.collections.iterators: Java Collections Framework extensions.  

Classes:

ObjectGraphIterator: An Iterator that can traverse multiple iterators down an object graph. This iterator can extract multiple objects from a complex tree-like object graph. The iteration starts from a single root object. It uses a Transformer to extract the iterators and elements. Its main benefit is that no intermediate List is created. For example, consider an object graph: |- Branch -- Leaf | \- Leaf |- Tree | /- Leaf | |- Branch -- Leaf Forest | \- Leaf | |- Branch -- Leaf | | \- Leaf |- Tree | /- Leaf |- Branch -- Leaf |- Branch -- Leaf The following Transformer , used in this class, will extract all the Leaf ...
ArrayListIterator: Implements a java.util.ListIterator over an array. The array can be either an array of object or of primitives. If you know that you have an object array, the ObjectArrayListIterator class is a better choice, as it will perform better. This iterator does not support add(Object) 55 or ArrayIterator.remove() 55 , as the array cannot be changed in size. The set(Object) 55 method is supported however.
ObjectArrayListIterator: Implements a java.util.ListIterator over an array of objects. This iterator does not support add(java.lang.Object) 55 or ObjectArrayIterator.remove() 55 , as the object array cannot be structurally modified. The set(java.lang.Object) 55 method is supported however. The iterator implements a reset() 55 method, allowing the reset of the iterator back to the start if required.
IteratorChain: An IteratorChain is an Iterator that wraps one or more Iterators. When any method from the Iterator interface is called, the IteratorChain will proxy to a single underlying Iterator. The IteratorChain will invoke the Iterators in sequence until all Iterators are exhausted completely. Under many circumstances, linking Iterators together in this manner is more efficient (and convenient) than reading out the contents of each Iterator into a List and creating a new Iterator. Calling a method that adds new Iterator after a method in the Iterator interface has been called will result in an UnsupportedOperationException. ...
ObjectArrayIterator: An java.util.Iterator over an array of objects. This iterator does not support remove() 55 , as the object array cannot be structurally modified. The iterator implements a reset() 55 method, allowing the reset of the iterator back to the start if required.
CollatingIterator: Provides an ordered iteration over the elements contained in a collection of ordered java.util.Iterator s. In other words, given two ordered java.util.Iterator s A and B , my next() 55 method will return the lesser of A.next() and B.next() .
LoopingIterator: An Iterator that restarts when it reaches the end. The iterator will loop continuously around the provided elements, unless there are no elements in the collection to begin with, or all the elements have been removed 55 . Concurrent modifications are not directly supported, and for most collection implementations will throw a ConcurrentModificationException.
FilterIterator: A Proxy Iterator which takes a Predicate instance to filter out objects from an underlying Iterator instance. Only objects for which the specified Predicate evaluates to true are returned.
FilterListIterator: A proxy ListIterator which takes a Predicate instance to filter out objects from an underlying ListIterator instance. Only objects for which the specified Predicate evaluates to true are returned by the iterator.
AbstractTestOrderedMapIterator: Abstract class for testing the OrderedMapIterator interface. This class provides a framework for testing an implementation of MapIterator. Concrete subclasses must provide the list iterator to be tested. They must also specify certain details of how the list iterator operates by overriding the supportsXxx() methods if necessary.
AbstractTestListIterator: Abstract class for testing the ListIterator interface. This class provides a framework for testing an implementation of ListIterator. Concrete subclasses must provide the list iterator to be tested. They must also specify certain details of how the list iterator operates by overriding the supportsXxx() methods if necessary.
AbstractTestMapIterator: Abstract class for testing the MapIterator interface. This class provides a framework for testing an implementation of MapIterator. Concrete subclasses must provide the list iterator to be tested. They must also specify certain details of how the list iterator operates by overriding the supportsXxx() methods if necessary.
AbstractTestIterator: Abstract class for testing the Iterator interface. This class provides a framework for testing an implementation of Iterator. Concrete subclasses must provide the iterator to be tested. They must also specify certain details of how the iterator operates by overriding the supportsXxx() methods if necessary.
TransformIterator: A Proxy Iterator which uses a Transformer instance to transform the contents of the Iterator into some other form
EntrySetMapIterator: Implements a MapIterator using a Map entrySet. Reverse iteration is not supported. MapIterator it = map.mapIterator(); while (it.hasNext()) { Object key = it.next(); Object value = it.getValue(); it.setValue(newValue); }
EmptyListIterator: Provides an implementation of an empty list iterator. This class provides an implementation of an empty list iterator. This class provides for binary compatability between Commons Collections 2.1.1 and 3.1 due to issues with IteratorUtils .
EmptyIterator: Provides an implementation of an empty iterator. This class provides an implementation of an empty iterator. This class provides for binary compatability between Commons Collections 2.1.1 and 3.1 due to issues with IteratorUtils .
IteratorEnumeration: Adapter to make an Iterator instance appear to be an Enumeration instances
EnumerationIterator: Adapter to make Enumeration instances appear to be Iterator instances.
TestUniqueFilterIterator: Tests the ArrayIterator to ensure that the next() method will actually perform the iteration rather than the hasNext() method. The code of this test was supplied by Mauricio S. Moura
TestIteratorChain: Tests the ArrayIterator to ensure that the next() method will actually perform the iteration rather than the hasNext() method. The code of this test was supplied by Mauricio S. Moura
TestArrayIterator: Tests the ArrayIterator to ensure that the next() method will actually perform the iteration rather than the hasNext() method. The code of this test was supplied by Mauricio S. Moura
TestCollatingIterator: Unit test suite for CollatingIterator .
UniqueFilterIterator: A FilterIterator which only returns "unique" Objects. Internally, the Iterator maintains a Set of objects it has already encountered, and duplicate Objects are skipped.
AbstractOrderedMapIteratorDecorator: Provides basic behaviour for decorating an ordered map iterator with extra functionality. All methods are forwarded to the decorated map iterator.

Home | Contact Us | Privacy Policy | Terms of Service