Commit Graph

852 Commits

Author SHA1 Message Date
Stephen Colebourne 36e0dc40a1 Start the process of writing 3.0 release notes - iterator package
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131207 13f79535-47bb-0310-9956-ffa450edef68
2003-09-29 22:46:15 +00:00
Stephen Colebourne 28f121b39b Spelling
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131206 13f79535-47bb-0310-9956-ffa450edef68
2003-09-29 22:44:14 +00:00
Stephen Colebourne 1088244314 Javadoc and Code tidy
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131205 13f79535-47bb-0310-9956-ffa450edef68
2003-09-29 22:37:40 +00:00
Stephen Colebourne 22d14c1895 Javadoc format for <code>
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131204 13f79535-47bb-0310-9956-ffa450edef68
2003-09-29 22:02:33 +00:00
Phil Steitz b6d03843b2 Fixed previousIndex() and nextIndex() methods in ArrayListIterator and ObjectArrayListIterator to conform to ListIterator interface specification.
Modified ObjectArrayIterator constructor to throw ArrayOutOfBoundsException when start index is out of range (as advertised).
Added test cases to TestIteratorUtils.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131203 13f79535-47bb-0310-9956-ffa450edef68
2003-09-29 03:56:12 +00:00
Phil Steitz 4bdb893378 javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131202 13f79535-47bb-0310-9956-ffa450edef68
2003-09-29 03:38:44 +00:00
Stephen Colebourne 1c4942acca Add ObservableSortedBag/Set
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131201 13f79535-47bb-0310-9956-ffa450edef68
2003-09-28 21:54:35 +00:00
Stephen Colebourne 52f05aba78 Add ObservableSortedBag
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131200 13f79535-47bb-0310-9956-ffa450edef68
2003-09-28 21:50:37 +00:00
Stephen Colebourne 8b6040783b Javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131199 13f79535-47bb-0310-9956-ffa450edef68
2003-09-28 21:49:50 +00:00
Timothy O'Brien f236265e32 Added common commons nav to the collections Maven site
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131198 13f79535-47bb-0310-9956-ffa450edef68
2003-09-28 12:21:57 +00:00
Stephen Colebourne f68637922c Refactor test class to share code
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131197 13f79535-47bb-0310-9956-ffa450edef68
2003-09-27 12:06:36 +00:00
Stephen Colebourne 0720c33003 Remove deprecated primitive classes
Prepare for primitive release


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131196 13f79535-47bb-0310-9956-ffa450edef68
2003-09-27 10:54:06 +00:00
Stephen Colebourne aaa866d0d6 Rename Pair to KeyValue
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131195 13f79535-47bb-0310-9956-ffa450edef68
2003-09-27 10:33:34 +00:00
Stephen Colebourne 007d3e3702 Change CursorableLinkedList to use weak references to avoid memory leaks
from Simon Kitching


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131194 13f79535-47bb-0310-9956-ffa450edef68
2003-09-27 10:07:14 +00:00
Matthew Hawthorne 04c90229bb Updated logic in put() to remove pair on duplicate value. Because of this, TestBidiMap can no longer extend TestMap since this seems to break the Map contract.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131193 13f79535-47bb-0310-9956-ffa450edef68
2003-09-26 23:28:43 +00:00
Stephen Colebourne 43c1bd31e8 New Pair implementations
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131192 13f79535-47bb-0310-9956-ffa450edef68
2003-09-25 22:47:49 +00:00
Stephen Colebourne 224b283473 Add additional constructor
Javadoc and tidy up


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131191 13f79535-47bb-0310-9956-ffa450edef68
2003-09-25 22:47:14 +00:00
Phil Steitz 491b06c0a6 Added test case for index method with SortedMap input.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131190 13f79535-47bb-0310-9956-ffa450edef68
2003-09-25 07:19:42 +00:00
Stephen Colebourne 36d6f4b3b3 Refactor tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131189 13f79535-47bb-0310-9956-ffa450edef68
2003-09-24 08:24:46 +00:00
Stephen Colebourne e28dab2be3 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131188 13f79535-47bb-0310-9956-ffa450edef68
2003-09-24 08:23:56 +00:00
Matthew Hawthorne ea34dd7a1e Added self as committer (signed in blood)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131187 13f79535-47bb-0310-9956-ffa450edef68
2003-09-23 20:45:50 +00:00
Matthew Hawthorne afe7736f62 Added initial implementation of HashBidiMap, plus tests.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131186 13f79535-47bb-0310-9956-ffa450edef68
2003-09-23 20:29:34 +00:00
Phil Steitz 03b59c2469 Added tests for collect, decorator factories.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131185 13f79535-47bb-0310-9956-ffa450edef68
2003-09-22 08:22:53 +00:00
Phil Steitz 949b9ffcb0 Fixed optimization logic error in containsAny.
Iteration should be over the smaller collection.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131184 13f79535-47bb-0310-9956-ffa450edef68
2003-09-22 02:20:56 +00:00
Phil Steitz 129cc2869b Javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131183 13f79535-47bb-0310-9956-ffa450edef68
2003-09-21 23:47:09 +00:00
Phil Steitz deffdc372c Improved test coverage
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131182 13f79535-47bb-0310-9956-ffa450edef68
2003-09-21 20:56:51 +00:00
Stephen Colebourne 957094fb79 Add ObservableSortedSet
Rename range to view


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131181 13f79535-47bb-0310-9956-ffa450edef68
2003-09-21 20:01:53 +00:00
Stephen Colebourne 21cc633fde Rename range to view
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131180 13f79535-47bb-0310-9956-ffa450edef68
2003-09-21 20:00:29 +00:00
Stephen Colebourne 74e8d90a8c Add observableXxx methods to Utils classes
Switch to our Unmodified/Synchonized classes


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131179 13f79535-47bb-0310-9956-ffa450edef68
2003-09-21 16:26:08 +00:00
Stephen Colebourne 93534d8124 Rename Observed to Observable
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131178 13f79535-47bb-0310-9956-ffa450edef68
2003-09-21 16:00:56 +00:00
Stephen Colebourne 0a0b14cfaf Initial checkin
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131177 13f79535-47bb-0310-9956-ffa450edef68
2003-09-21 15:23:04 +00:00
Stephen Colebourne b37dddd867 Initial checkin
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131176 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 20:24:30 +00:00
Stephen Colebourne 3ce63a9f1d Organize imports
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131175 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 17:05:36 +00:00
Stephen Colebourne b53b689032 Strengthen test
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131174 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 17:00:32 +00:00
Stephen Colebourne 341361b38b Make tests alphabetical and grouped
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131173 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 16:58:19 +00:00
Stephen Colebourne c3c28e3dae Enhance OrderedSet to support List like functions
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131172 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 16:57:47 +00:00
Stephen Colebourne 460a6e5b8b Make tests alphabetical
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131171 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 16:57:20 +00:00
Stephen Colebourne d4b4a8f7bf Fix problem with Serialization and Cursors hidden from original tests.
Reported by Rodney


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131170 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 14:03:57 +00:00
Stephen Colebourne be72e12a5d Javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131169 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 14:01:17 +00:00
Stephen Colebourne ea5ad586aa Improve test to not assume iterator order.
bug 23201


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131168 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 12:13:59 +00:00
Stephen Colebourne 3e9e81696a Javadoc and code tidying
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131167 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 12:03:52 +00:00
Stephen Colebourne 1ad748d9aa Remove System out debugging
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131166 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 11:26:57 +00:00
Stephen Colebourne c18b0e1e5e Make MapUtils threadsafe and remove synchronized keyword.
Change is partially backwards incompatible:
- protected method is removed
- two threads outputting a Map may now overlap


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131165 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 11:26:32 +00:00
Phil Steitz ab33c74b1e Added Tests for BagUtils and typed bags.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131164 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 02:51:50 +00:00
Phil Steitz 2daa7e098e Modified TestPredicatedBag, TestPredicatedSortedBag to use identically true predicate in makeBag override. Previous versions depended on the fact that TestBag only adds Strings.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131163 13f79535-47bb-0310-9956-ffa450edef68
2003-09-19 22:21:53 +00:00
Phil Steitz c9aca369b7 Clarified blocking behavior in javadoc.
Submitted by: Janek Bogucki
Reviewed/Edited by: Phil Steitz
Pr #23234


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131162 13f79535-47bb-0310-9956-ffa450edef68
2003-09-18 05:09:15 +00:00
Phil Steitz 9f3a1ecf83 Modified BlockingBuffer add method to notifyAll
instead of notify.
Added tests to verify blocking behavior.
Patch submitted by: Janek Bogucki
Reviewed by: Phil Steitz
Pr #23232, 23159


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131161 13f79535-47bb-0310-9956-ffa450edef68
2003-09-18 03:28:28 +00:00
Stephen Colebourne c3992caf1d Add StringValue transformer
from  James Carman


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131160 13f79535-47bb-0310-9956-ffa450edef68
2003-09-17 20:28:30 +00:00
Stephen Colebourne e41abcddc6 Fix Map debug output for recursion
bug 23041, from Janek Bogucki/Arun Mammen Thomas


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131159 13f79535-47bb-0310-9956-ffa450edef68
2003-09-17 19:59:45 +00:00
Stephen Colebourne b15a189be9 Javadoc fixes
bug 23087, from Janek Bogucki


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131158 13f79535-47bb-0310-9956-ffa450edef68
2003-09-17 08:38:59 +00:00