org.apache.commons.collections.list

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.list 
org.apache.commons.collections.list

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

The following implementations are provided in the package:

  • TreeList - a list that is optimised for insertions and removals at any index in the list
  • CursorableLinkedList - a list that can be modified while the listIterator (cursor) is being used
  • NodeCachingLinkedList - a linked list that caches the storage nodes for a performance gain

The following decorators are provided in the package:

  • Synchronized - synchronizes method access for multi-threaded environments
  • Unmodifiable - ensures the collection cannot be altered
  • Predicated - ensures that only elements that are valid according to a predicate can be added
  • Typed - ensures that only elements that are of a specific type can be added
  • Transformed - transforms each element added
  • FixedSize - ensures that the size of the list cannot change
  • Lazy - creates objects in the list on demand
  • Growth - grows the list instead of erroring when set/add used with index beyond the list size
  • SetUnique - a list that avoids duplicate entries like a Set

Java Source File NameTypeComment
AbstractLinkedList.javaClass An abstract implementation of a linked list which provides numerous points for subclasses to override.

Overridable methods are provided to change the storage node and to change how nodes are added to and removed.

AbstractListDecorator.javaClass Decorates another List to provide additional behaviour.
AbstractSerializableListDecorator.javaClass Serializable subclass of AbstractListDecorator.
AbstractTestList.javaClass Abstract test class for java.util.List methods and contracts.

To use, simply extend this class, and implement the AbstractTestList.makeEmptyList method.

If your List fails one of these tests by design, you may still use this base set of cases.

CursorableLinkedList.javaClass A List implementation with a ListIterator that allows concurrent modifications to the underlying list.

This implementation supports all of the optional List operations. It extends AbstractLinkedList and thus provides the stack/queue/dequeue operations available in java.util.LinkedList .

The main feature of this class is the ability to modify the list and the iterator at the same time.

FixedSizeList.javaClass Decorates another List to fix the size preventing add/remove.
GrowthList.javaClass Decorates another List to make it seamlessly grow when indices larger than the list size are used on add and set, avoiding most IndexOutOfBoundsExceptions.

This class avoids errors by growing when a set or add method would normally throw an IndexOutOfBoundsException. Note that IndexOutOfBoundsException IS returned for invalid negative indices.

Trying to set or add to an index larger than the size will cause the list to grow (using null elements).

LazyList.javaClass Decorates another List to create objects in the list on demand.

When the LazyList.get(int) method is called with an index greater than the size of the list, the list will automatically grow in size and return a new object from the specified factory.

NodeCachingLinkedList.javaClass A List implementation that stores a cache of internal Node objects in an effort to reduce wasteful object creation.

A linked list creates one Node for each item of data added.

PredicatedList.javaClass Decorates another List to validate that all additions match a specified predicate.
SetUniqueList.javaClass Decorates a List to ensure that no duplicates are present much like a Set.
SynchronizedList.javaClass Decorates another List to synchronize its behaviour for a multi-threaded environment.
TestAbstractLinkedList.javaClass Test case for AbstractLinkedList .
TestAll.javaClass Entry point for tests.
TestCursorableLinkedList.javaClass Test class.
TestFixedSizeList.javaClass Extension of TestList for exercising the FixedSizeList implementation.
TestGrowthList.javaClass Extension of TestList for exercising the GrowthList .
TestNodeCachingLinkedList.javaClass Test class for NodeCachingLinkedList, a performance optimised LinkedList.
TestPredicatedList.javaClass Extension of TestList for exercising the PredicatedList implementation.
TestSetUniqueList.javaClass JUnit tests.
TestSynchronizedList.javaClass Extension of TestList for exercising the SynchronizedList implementation.
TestTransformedList.javaClass Extension of TestList for exercising the TransformedList implementation.
TestTreeList.javaClass
TestTypedList.javaClass Extension of TestList for exercising the TypedList implementation.
TestUnmodifiableList.javaClass Extension of AbstractTestList for exercising the UnmodifiableList implementation.
TransformedList.javaClass Decorates another List to transform objects that are added.
TreeList.javaClass A List implementation that is optimised for fast insertions and removals at any index in the list.

This list implementation utilises a tree structure internally to ensure that all insertions and removals are O(log n).

TypedList.javaClass Decorates another List to validate that elements added are of a specific type.

The validation of additions is performed via an instanceof test against a specified Class.

UnmodifiableList.javaClass Decorates another List to ensure it can't be altered.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.