commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian McCallister <bri...@apache.org>
Subject [collections] [PATCH] CompositeCollection class for Commons-Collections
Date Sun, 02 Nov 2003 18:51:16 GMT
Attached is a CompositeCollection class which allows a single 
Collection instance to behave correctly as a composite for N 
collections, and unit tests for that class.

All operations (including iterator removal operations) which are 
deterministic per the Collection spec are implemented directly. 
Nondeterministic operations (add, addAll) are pluggable and throw an 
UnsupportedOperationException if no behavior has been specified.

Implementations of Set and List (which are dependent upon 
CompositeCollection) are forthcoming as soon as I have a chance.

-Brian



Mime
View raw message