org.apache.commons.collections.set

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

This package contains implementations of the {@link java.util.Set Set} and {@link java.util.SortedSet SortedSet} interfaces.

The implementations are in the form of direct implementations and decorators. A decorator wraps another implementation of the interface to add some specific additional functionality.

The following implementations are provided in the package:

  • CompositeSet - a set that combines multiple sets into one
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
  • ListOrdered - ensures that insertion order is retained
  • MapBackedSet - a set formed by decorating a Map
Java Source File NameTypeComment
AbstractSerializableSetDecorator.javaClass Serializable subclass of AbstractSetDecorator.
AbstractSetDecorator.javaClass Decorates another Set to provide additional behaviour.
AbstractSortedSetDecorator.javaClass Decorates another SortedSet to provide additional behaviour.
AbstractTestSet.javaClass Abstract test class for Set methods and contracts.

Since Set doesn't stipulate much new behavior that isn't already found in Collection , this class basically just adds tests for Set.equals and Set.hashCode along with an updated AbstractTestSet.verify() that ensures elements do not appear more than once in the set.

To use, subclass and override the AbstractTestSet.makeEmptySet() method.

AbstractTestSortedSet.javaClass Abstract test class for SortedSet methods and contracts.

To use, subclass and override the AbstractTestSortedSet.makeEmptySet() method.

CompositeSet.javaClass Decorates a set of other sets to provide a single unified view.
ListOrderedSet.javaClass Decorates another Set to ensure that the order of addition is retained and used by the iterator.

If an object is added to the set for a second time, it will remain in the original position in the iteration. The order can be observed from the set via the iterator or toArray methods.

The ListOrderedSet also has various useful direct methods.

MapBackedSet.javaClass Decorates a Map to obtain Set behaviour.

This class is used to create a Set with the same properties as the key set of any map.

PredicatedSet.javaClass Decorates another Set to validate that all additions match a specified predicate.
PredicatedSortedSet.javaClass Decorates another SortedSet to validate that all additions match a specified predicate.
SynchronizedSet.javaClass Decorates another Set to synchronize its behaviour for a multi-threaded environment.
SynchronizedSortedSet.javaClass Decorates another SortedSet to synchronize its behaviour for a multi-threaded environment.
TestAll.javaClass Entry point for tests.
TestCompositeSet.javaClass Extension of AbstractTestSet for exercising the CompositeSet implementation.
TestListOrderedSet.javaClass Extension of TestSet for exercising the ListOrderedSet implementation.
since:
   Commons Collections 3.0
version:
   $Revision: 332769 $ $Date: 2005-11-12 12:40:01 +0000 (Sat, 12 Nov 2005) $
author:
   Henning P.
TestListOrderedSet2.javaClass Extension of TestSet for exercising the ListOrderedSet implementation.
since:
   Commons Collections 3.1
version:
   $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $
author:
   Henning P.
TestMapBackedSet.javaClass JUnit test.
TestMapBackedSet2.javaClass JUnit test.
TestPredicatedSet.javaClass Extension of TestSet for exercising the PredicatedSet implementation.
TestPredicatedSortedSet.javaClass Extension of AbstractTestSortedSet for exercising the PredicatedSortedSet implementation.
TestSynchronizedSet.javaClass Extension of AbstractTestSet for exercising the SynchronizedSet implementation.
TestSynchronizedSortedSet.javaClass Extension of AbstractTestSet for exercising the SynchronizedSortedSet implementation.
TestTransformedSet.javaClass Extension of TestSet for exercising the TransformedSet implementation.
TestTransformedSortedSet.javaClass Extension of TestSortedSet for exercising the TransformedSortedSet implementation.
TestTypedSet.javaClass Extension of AbstractTestSet for exercising the TypedSet implementation.
TestTypedSortedSet.javaClass Extension of AbstractTestSortedSet for exercising the TypedSortedSet implementation.
TestUnmodifiableSet.javaClass Extension of AbstractTestSet for exercising the UnmodifiableSet implementation.
TestUnmodifiableSortedSet.javaClass Extension of AbstractTestSortedSet for exercising the UnmodifiableSortedSet implementation.
TransformedSet.javaClass Decorates another Set to transform objects that are added.
TransformedSortedSet.javaClass Decorates another SortedSet to transform objects that are added.
TypedSet.javaClass Decorates another Set to validate that elements added are of a specific type.

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

TypedSortedSet.javaClass Decorates another SortedSet to validate that elements added are of a specific type.

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

UnmodifiableSet.javaClass Decorates another Set to ensure it can't be altered.
UnmodifiableSortedSet.javaClass Decorates another SortedSet 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.