org.apache.commons.collections.iterators

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Library » Apache common Collections » org.apache.commons.collections.iterators 
org.apache.commons.collections.iterators

This package contains implementations of the {@link java.util.Iterator Iterator} interface.

You may also consider using {@link org.apache.commons.collections.IteratorUtils IteratorUtils}, which is a single class that uses static methods to construct instances of the classes in this package.

Java Source File NameTypeComment
AbstractEmptyIterator.javaClass Provides an implementation of an empty iterator.
AbstractIteratorDecorator.javaClass Provides basic behaviour for decorating an iterator with extra functionality.
AbstractListIteratorDecorator.javaClass Provides basic behaviour for decorating a list iterator with extra functionality.
AbstractMapIteratorDecorator.javaClass Provides basic behaviour for decorating a map iterator with extra functionality.
AbstractOrderedMapIteratorDecorator.javaClass Provides basic behaviour for decorating an ordered map iterator with extra functionality.
AbstractTestIterator.javaClass Abstract class for testing the Iterator interface.
AbstractTestListIterator.javaClass Abstract class for testing the ListIterator interface.
AbstractTestMapIterator.javaClass Abstract class for testing the MapIterator interface.
AbstractTestOrderedMapIterator.javaClass Abstract class for testing the OrderedMapIterator interface.
ArrayIterator.javaClass Implements an java.util.Iterator Iterator over any array.

The array can be either an array of object or of primitives.

ArrayListIterator.javaClass Implements a ListIterator over an array.
CollatingIterator.javaClass Provides an ordered iteration over the elements contained in a collection of ordered Iterators.
EmptyIterator.javaClass Provides an implementation of an empty iterator.
EmptyListIterator.javaClass Provides an implementation of an empty list iterator.
EmptyMapIterator.javaClass Provides an implementation of an empty map iterator.
EmptyOrderedIterator.javaClass Provides an implementation of an empty ordered iterator.
EmptyOrderedMapIterator.javaClass Provides an implementation of an empty ordered map iterator.
EntrySetMapIterator.javaClass Implements a MapIterator using a Map entrySet.
EnumerationIterator.javaClass Adapter to make Enumeration Enumeration instances appear to be Iterator Iterator instances.
FilterIterator.javaClass Decorates another Iterator using a predicate to filter elements.
FilterListIterator.javaClass Decorates another ListIterator using a predicate to filter elements.
IteratorChain.javaClass An IteratorChain is an Iterator that wraps a number of Iterators.

This class makes multiple iterators look like one to the caller When any method from the Iterator interface is called, the IteratorChain will delegate to a single underlying Iterator.

IteratorEnumeration.javaClass Adapter to make an Iterator Iterator instance appear to be an Enumeration Enumeration instance.
ListIteratorWrapper.javaClass Converts an iterator into a list iterator by caching the returned entries.

The ListIterator interface has additional useful methods for navigation - previous() and the index methods. This class allows a regular Iterator to behave as a ListIterator.

LoopingIterator.javaClass 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 LoopingIterator.remove removed .

Concurrent modifications are not directly supported, and for most collection implementations will throw a ConcurrentModificationException.

LoopingListIterator.javaClass A ListIterator that restarts when it reaches the end or when it reaches the beginning.
ObjectArrayIterator.javaClass An Iterator over an array of objects.

This iterator does not support ObjectArrayIterator.remove , as the object array cannot be structurally modified.

The iterator implements a ObjectArrayIterator.reset method, allowing the reset of the iterator back to the start if required.
since:
   Commons Collections 3.0
version:
   $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $
author:
   James Strachan
author:
   Mauricio S.

ObjectArrayListIterator.javaClass Implements a ListIterator over an array of objects.

This iterator does not support ObjectArrayListIterator.add or ObjectArrayListIterator.remove , as the object array cannot be structurally modified.

ObjectGraphIterator.javaClass 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 objects without creating a combined intermediate list:
 public Object transform(Object input) {
 if (input instanceof Forest) {
 return ((Forest) input).treeIterator();
 }
 if (input instanceof Tree) {
 return ((Tree) input).branchIterator();
 }
 if (input instanceof Branch) {
 return ((Branch) input).leafIterator();
 }
 if (input instanceof Leaf) {
 return input;
 }
 throw new ClassCastException();
 }

Internally, iteration starts from the root object.

ProxyIterator.javaClass A Proxy Iterator Iterator which delegates its methods to a proxy instance.
ProxyListIterator.javaClass A proxy ListIterator ListIterator which delegates its methods to a proxy instance.
ReverseListIterator.javaClass Iterates backwards through a List, starting with the last element and continuing to the first.
SingletonIterator.javaClass SingletonIterator is an Iterator over a single object instance.
SingletonListIterator.javaClass SingletonIterator is an ListIterator over a single object instance.
TestAll.javaClass Entry point for all iterator tests.
TestArrayIterator.javaClass 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.
TestArrayIterator2.javaClass Tests the ArrayIterator with primitive type arrays.
TestArrayListIterator.javaClass Test the ArrayListIterator class.
TestArrayListIterator2.javaClass Test the ArrayListIterator class with primitives.
TestCollatingIterator.javaClass Unit test suite for CollatingIterator .
TestFilterIterator.javaClass Test the filter iterator.
TestFilterListIterator.javaClass Tests the FilterListIterator class.
TestIteratorChain.javaClass Tests the IteratorChain class.
version:
   $Revision: 171347 $ $Date: 2005-05-22 18:27:34 +0100 (Sun, 22 May 2005) $
author:
   James Strachan
author:
   Mauricio S.
TestListIteratorWrapper.javaClass Tests the ListIteratorWrapper to insure that it simulates a ListIterator correctly.
TestLoopingIterator.javaClass Tests the LoopingIterator class.
TestLoopingListIterator.javaClass Tests the LoopingListIterator class.
TestObjectArrayIterator.javaClass Tests the ObjectArrayIterator.
version:
   $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $
author:
   James Strachan
author:
   Mauricio S.
TestObjectArrayListIterator.javaClass Tests the ObjectArrayListIterator class.
TestObjectArrayListIterator2.javaClass Tests the ObjectArrayListIterator class.
TestObjectGraphIterator.javaClass Testcase.
TestReverseListIterator.javaClass Tests the ReverseListIterator.
TestSingletonIterator.javaClass Tests the SingletonIterator to ensure that the next() method will actually perform the iteration rather than the hasNext() method.
TestSingletonIterator2.javaClass Tests the SingletonIterator to ensure that the next() method will actually perform the iteration rather than the hasNext() method.
TestSingletonListIterator.javaClass Tests the SingletonListIterator.
TestUniqueFilterIterator.javaClass Tests the UniqueFilterIterator class.
version:
   $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $
author:
   James Strachan
author:
   Mauricio S.
TestUnmodifiableIterator.javaClass Tests the UnmodifiableIterator.
TestUnmodifiableListIterator.javaClass Tests the UnmodifiableListIterator.
TestUnmodifiableMapIterator.javaClass Tests the UnmodifiableMapIterator.
TestUnmodifiableOrderedMapIterator.javaClass Tests the UnmodifiableOrderedMapIterator.
TransformIterator.javaClass Decorates an iterator such that each element returned is transformed.
UniqueFilterIterator.javaClass A FilterIterator which only returns "unique" Objects.
UnmodifiableIterator.javaClass Decorates an iterator such that it cannot be modified.
UnmodifiableListIterator.javaClass Decorates a list iterator such that it cannot be modified.
UnmodifiableMapIterator.javaClass Decorates a map iterator such that it cannot be modified.
UnmodifiableOrderedMapIterator.javaClass Decorates an ordered map iterator such that it cannot be modified.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.