You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Brian McCallister <mc...@forthillcompany.com> on 2003/11/28 19:45:40 UTC
Fwd: [PATCH] [collections] CompositeSet and CompositeMap
Accidentally sent this to User instead of Dev, sorry about that.
-Brian
> From: Brian McCallister <mc...@forthillcompany.com>
> Date: Fri Nov 28, 2003 1:44:50 PM US/Eastern
> To: "Jakarta Commons Users List" <co...@jakarta.apache.org>
> Subject: [PATCH] [collections] CompositeSet and CompositeMap
> Reply-To: "Jakarta Commons Users List"
> <co...@jakarta.apache.org>
>
> 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
>