Stephen Colebourne
69ebc9f4ac
Better error for debugging
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131231 13f79535-47bb-0310-9956-ffa450edef68
2003-10-04 00:49:27 +00:00
Stephen Colebourne
333541bc3c
Deprecate DefaultMapEntry in the main package
...
Fix resultant deprecation warnings
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131230 13f79535-47bb-0310-9956-ffa450edef68
2003-10-03 23:19:32 +00:00
Phil Steitz
3b50d3cef8
Changed references to TestMap to AbstractTestMap in TestOrderedMap
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131229 13f79535-47bb-0310-9956-ffa450edef68
2003-10-03 12:54:54 +00:00
Henri Yandell
3a5194a37a
more cleaning up, removing negative comments :)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131228 13f79535-47bb-0310-9956-ffa450edef68
2003-10-03 06:31:03 +00:00
Henri Yandell
79908ade0a
tidied up the entryset code
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131227 13f79535-47bb-0310-9956-ffa450edef68
2003-10-03 06:25:03 +00:00
Henri Yandell
9804521d1d
Adding in OrderedMap class. Similar functionality to a SequencedHashmap, it is
...
decorable and able to sit on top of other Map implementations.
This is the first version to pass the unit tests, so I'm pushing it in. The
major thing I know it doesn't do is that keySet/entrySet and values iterator()
methods do not back their remove()'s onto the Map itself. The views themselves
do, just not their iterators yet.
This shows that we need unit tests for these :)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131226 13f79535-47bb-0310-9956-ffa450edef68
2003-10-03 06:24:13 +00:00
Henri Yandell
5c8de4eb74
Added a toString to map the normal output from a HashMaps Map.Entry
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131225 13f79535-47bb-0310-9956-ffa450edef68
2003-10-03 06:20:54 +00:00
Stephen Colebourne
f18bec8711
Add ability to create testframework jar
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131224 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 23:46:54 +00:00
Stephen Colebourne
7c3480003d
Rename TestMap to AbstractTestMap
...
Rename TestSortedMap to AbstractTestSortedMap
Javadoc and tidy
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131223 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 23:01:10 +00:00
Stephen Colebourne
6318d9964c
Rename TestSet to AbstractTestSet
...
Rename TestSortedSet to AbstractTestSortedSet
Javadoc and tidy
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131222 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 22:48:41 +00:00
Stephen Colebourne
e476647953
Rename TestBag to AbstractTestBag
...
Rename TestSortedBag to AbstractTestSortedBag
Javadoc and tidy
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131221 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 22:35:31 +00:00
Matthew Hawthorne
54f2a8e85b
Adding SetList decorator from bug #22826
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131220 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 22:34:44 +00:00
Stephen Colebourne
a3155911c2
Rename TestObject to AbstractTestObject
...
Rename TestCollection to AbstractTestCollection
Rename TestList to AbstractTestList
Javadoc and tidy
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131219 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 22:14:35 +00:00
Stephen Colebourne
03fe3cdb91
Ensure Ant tests all the packages
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131218 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 20:36:11 +00:00
Henri Yandell
aea2f2fa32
Added a test to prove that a Map's keySet method is backed by the map. Also added a series of TODOs to cover all the other backing/non-backing possibilities.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131217 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 04:04:22 +00:00
Henri Yandell
e7eba5076a
removed tabs
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131216 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 03:42:03 +00:00
Henri Yandell
105c1ac930
Removed debug I stupidly left in.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131215 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 03:11:08 +00:00
Henri Yandell
62543d554d
Have made the OrderedSet use the underlying List's toString and not the Set's toString. It's important that the toString retains the correct order, else things can get quite confusing when debugging. Fortunately List and Set toStrings are the same, unless someone has custom versions in place.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131214 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 03:10:37 +00:00
Stephen Colebourne
63a4d98529
Add tests for pairs package
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131213 13f79535-47bb-0310-9956-ffa450edef68
2003-10-01 22:36:49 +00:00
Stephen Colebourne
0b58a2fb6b
Add missing abstract keyword
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131212 13f79535-47bb-0310-9956-ffa450edef68
2003-10-01 22:36:07 +00:00
Stephen Colebourne
513ef0ae75
Rename TestComparator to AbstractTestComparator
...
Tidy comparator test classes licenses/javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131211 13f79535-47bb-0310-9956-ffa450edef68
2003-10-01 22:14:48 +00:00
Stephen Colebourne
dd7f7aca14
Rename TestIterator to AbstractTestIterator
...
Rename TestListIterator to AbstractTestListIterator
Add extra tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131210 13f79535-47bb-0310-9956-ffa450edef68
2003-10-01 21:54:56 +00:00
Stephen Colebourne
21fb588f46
Puts back the jar files to where they were to get builds going again
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131209 13f79535-47bb-0310-9956-ffa450edef68
2003-10-01 20:03:35 +00:00
Matthew Hawthorne
927cbd80c0
Updated entry sets to modify underlying maps.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131208 13f79535-47bb-0310-9956-ffa450edef68
2003-09-29 23:24:18 +00:00
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