commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian McCallister <mccallis...@forthillcompany.com>
Subject [PATCH] [collections] CompositeSet and CompositeMap
Date Fri, 28 Nov 2003 18:44:50 GMT
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


Mime
View raw message