You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Brian McCallister <mc...@forthillcompany.com> on 2003/11/28 19:44:50 UTC
[PATCH] [collections] CompositeSet and CompositeMap
Attached are CompositeSet and CompositeMap implementations, along with
unit tests and a required change to CompositeCollection to properly
support CompositeSet.
The coarse-grained mutator made for a bit of ugliness in the
CompositeSet implementation, but it works. I am not wholly satisfied so
will probably hack at it some more to try to make the mutator
implementation neater.
Please note that CompositeMap depends on CompositeSet which depends on
CompositeCollection (including the changed version here).
New Files (attached) :
? src/java/org/apache/commons/collections/map/CompositeMap.java
? src/java/org/apache/commons/collections/set/CompositeSet.java
? src/test/org/apache/commons/collections/map/TestCompositeMap.java
? src/test/org/apache/commons/collections/set/TestCompositeSet.java
Modified Files (attached patch) :
M
src/java/org/apache/commons/collections/collection/
CompositeCollection.java
M src/test/org/apache/commons/collections/map/TestAll.java
M src/test/org/apache/commons/collections/set/TestAll.java
-Brian