Rodney Waldhoff
9262cd48a0
add basic adapters
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130899 13f79535-47bb-0310-9956-ffa450edef68
2003-01-05 03:03:42 +00:00
Rodney Waldhoff
456a094e3f
add base int collection impl
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130898 13f79535-47bb-0310-9956-ffa450edef68
2003-01-05 03:03:14 +00:00
Rodney Waldhoff
44e2acadff
get should return int not Object
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130897 13f79535-47bb-0310-9956-ffa450edef68
2003-01-04 23:16:29 +00:00
Rodney Waldhoff
8302eabc7b
add IntCollection, IntList, IntIterator, IntListIterator
...
deprecate various AbstractIntList implementations as a warning of impending change
(note that nothing in primitives.* has yet been released)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130896 13f79535-47bb-0310-9956-ffa450edef68
2003-01-04 15:00:57 +00:00
Rodney Waldhoff
ceba1806c3
should have updated copyright with last commit
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130895 13f79535-47bb-0310-9956-ffa450edef68
2003-01-04 13:43:10 +00:00
Rodney Waldhoff
42f142840e
name the file we're looking for on test failure
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130894 13f79535-47bb-0310-9956-ffa450edef68
2003-01-04 13:10:27 +00:00
Stephen Colebourne
968607b9c5
Add empty unmodifiable implementations for all collections
...
Add synchronized/unmodifiable implementations for all collections
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130892 13f79535-47bb-0310-9956-ffa450edef68
2002-12-15 13:05:03 +00:00
Stephen Colebourne
7fe55f624b
Test reworked array iterators to include Iterator and ListIterator implementations.
...
Also test Object array versions.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130891 13f79535-47bb-0310-9956-ffa450edef68
2002-12-13 12:10:48 +00:00
Stephen Colebourne
93b9f67629
Rework array iterators to include Iterator and ListIterator implementations.
...
Also add Object array versions for better performance.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130890 13f79535-47bb-0310-9956-ffa450edef68
2002-12-13 12:04:16 +00:00
Stephen Colebourne
3f3e957206
Add test for remove on an iterator
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130889 13f79535-47bb-0310-9956-ffa450edef68
2002-12-13 12:03:46 +00:00
Stephen Colebourne
a84170e095
Add method to indicate that iterator doesn't support remove.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130888 13f79535-47bb-0310-9956-ffa450edef68
2002-12-13 12:03:06 +00:00
Stephen Colebourne
4ca0da456a
Fix remove method to throw correct exception
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130887 13f79535-47bb-0310-9956-ffa450edef68
2002-12-13 11:03:42 +00:00
Stephen Colebourne
50a4521771
Reuse UnmodifiableIterator in IteratorUtils, from Rich Dougherty
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130886 13f79535-47bb-0310-9956-ffa450edef68
2002-12-11 19:05:14 +00:00
Stephen Colebourne
ba27ecd2d4
Add IteratorUtils unmodifiable iterators, from Rich Dougherty
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130885 13f79535-47bb-0310-9956-ffa450edef68
2002-12-08 15:42:35 +00:00
Stephen Colebourne
257fbcc0a5
Update to latest package status
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130884 13f79535-47bb-0310-9956-ffa450edef68
2002-12-08 15:30:58 +00:00
Stephen Colebourne
35041694f4
Add new countMatches method
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130883 13f79535-47bb-0310-9956-ffa450edef68
2002-12-08 15:29:59 +00:00
Stephen Colebourne
92d67a604d
Test the new countMatches method
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130882 13f79535-47bb-0310-9956-ffa450edef68
2002-12-08 15:29:26 +00:00
Stephen Colebourne
0ac46dd1c3
Add tests for select/selectRejected methods
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130881 13f79535-47bb-0310-9956-ffa450edef68
2002-11-24 21:12:30 +00:00
Stephen Colebourne
aa139cebf0
Add selectRejected methods, from BluePhelix@web.de (Peter)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130880 13f79535-47bb-0310-9956-ffa450edef68
2002-11-24 21:11:27 +00:00
Stephen Colebourne
607a1f8418
Test for indexOf, from Johal
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130879 13f79535-47bb-0310-9956-ffa450edef68
2002-11-24 20:49:29 +00:00
Stephen Colebourne
f6d8876a41
Fix bug in indexOf, identified by Johal
...
Reformat and Javadoc file
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130878 13f79535-47bb-0310-9956-ffa450edef68
2002-11-24 20:48:35 +00:00
Stephen Colebourne
fe74db761c
Remove map key collection when it becomes empty so equals works.
...
from Serhiy Yevtushenko
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130877 13f79535-47bb-0310-9956-ffa450edef68
2002-11-24 20:25:55 +00:00
Stephen Colebourne
9770d8be10
Add test for equals that demonstrates a bug
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130876 13f79535-47bb-0310-9956-ffa450edef68
2002-11-24 20:24:49 +00:00
Stephen Colebourne
0cad010ce8
Fix bug that values() was not backed by Map
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130875 13f79535-47bb-0310-9956-ffa450edef68
2002-11-24 19:38:09 +00:00
Stephen Colebourne
c8de9e8066
Applied fixes from Julien Buret to improve MultiMap including
...
- values() backed by real map
- clone works properly
- ArrayLists can be added to a MultiMap
Javadoc class
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130874 13f79535-47bb-0310-9956-ffa450edef68
2002-11-24 19:36:48 +00:00
Stephen Colebourne
7c12e16836
Improve javadoc description of what a MultiMap is
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130873 13f79535-47bb-0310-9956-ffa450edef68
2002-11-24 19:33:19 +00:00
Stephen Colebourne
12f98e4bc4
Fix Concurrent Modification bug in purge(), from Eduardo Francos
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130872 13f79535-47bb-0310-9956-ffa450edef68
2002-11-24 17:30:15 +00:00
Stephen Colebourne
e02e9818cf
Add BoundedCollection, from Herve Quiroz
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130871 13f79535-47bb-0310-9956-ffa450edef68
2002-11-24 16:23:21 +00:00
Stephen Colebourne
9edc197ec3
Add LoopingIterator, from Jonathan Carlson
...
Add more TODOs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130870 13f79535-47bb-0310-9956-ffa450edef68
2002-11-21 23:09:57 +00:00
Stephen Colebourne
9d123df763
Add LoopingIterator, from Jonathan Carlson
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130869 13f79535-47bb-0310-9956-ffa450edef68
2002-11-21 23:09:26 +00:00
Stephen Colebourne
af5dd4d71a
Add LoopingIterator
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130868 13f79535-47bb-0310-9956-ffa450edef68
2002-11-21 23:08:27 +00:00
Stephen Colebourne
e28052ee76
Test Performance optimised LinkedList, from Jeff Varszegi
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130867 13f79535-47bb-0310-9956-ffa450edef68
2002-11-18 23:58:46 +00:00
Stephen Colebourne
4fbfa16c6e
Performance optimised LinkedList, from Jeff Varszegi
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130866 13f79535-47bb-0310-9956-ffa450edef68
2002-11-18 23:58:17 +00:00
Henri Yandell
7510ff1b6d
Unused variables removed.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130865 13f79535-47bb-0310-9956-ffa450edef68
2002-11-07 21:43:36 +00:00
Henri Yandell
49f5da622f
Unable to justify its algorithm lookup for finding a value as generic enough.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130864 13f79535-47bb-0310-9956-ffa450edef68
2002-11-07 21:42:45 +00:00
Henri Yandell
827fe6c697
Removed unused local variable max.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130863 13f79535-47bb-0310-9956-ffa450edef68
2002-11-07 21:32:36 +00:00
Rodney Waldhoff
db708754f6
allow cardinality(null,collection) and add test for it
...
(fixing http://issues.apache.org/bugzilla/show_bug.cgi?id=13785 per suggestion of Serhiy Yevtushenko)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130862 13f79535-47bb-0310-9956-ffa450edef68
2002-11-01 19:54:27 +00:00
Rodney Waldhoff
fcad5944ac
add javadoc comment
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130861 13f79535-47bb-0310-9956-ffa450edef68
2002-11-01 19:41:00 +00:00
Rodney Waldhoff
aa959e46cf
add generic TestMap test for http://issues.apache.org/bugzilla/show_bug.cgi?id=9573 (values isn't backed by map), but override the test in TestMultiHashMap for now
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130860 13f79535-47bb-0310-9956-ffa450edef68
2002-11-01 19:36:54 +00:00
Rodney Waldhoff
0cb8046cd3
have all setUp and tearDown methods throw Exception, so they can be extended more easily (see http://issues.apache.org/bugzilla/show_bug.cgi?id=14151 )
...
update/fix copyright in a few of these touched files
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130859 13f79535-47bb-0310-9956-ffa450edef68
2002-11-01 19:07:54 +00:00
Rodney Waldhoff
2c0e5353a8
run o.a.c.c.TestAll only for unit tests
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130858 13f79535-47bb-0310-9956-ffa450edef68
2002-11-01 18:58:01 +00:00
Dion Gillard
86379431cb
Ignore stylesheets and logs
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130857 13f79535-47bb-0310-9956-ffa450edef68
2002-11-01 03:34:02 +00:00
Rodney Waldhoff
05c0b3a792
fix bug pointed out bu Jonathan Carlson
...
add test that demonstrates
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130856 13f79535-47bb-0310-9956-ffa450edef68
2002-10-31 21:55:23 +00:00
Rodney Waldhoff
93e25a6291
inception year is 2001
...
fix spelling of "waldhoff"
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130855 13f79535-47bb-0310-9956-ffa450edef68
2002-10-31 16:19:54 +00:00
Michael Smith
52cad22cd6
Update current version to reflect current reality.
...
Add a few collections developers that are conspicously missing.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130854 13f79535-47bb-0310-9956-ffa450edef68
2002-10-27 14:24:43 +00:00
Martin van den Bemt
8ec363d304
Updated the version in project.xml.
...
Thanx Moritz Petersen for pointing us to that.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130853 13f79535-47bb-0310-9956-ffa450edef68
2002-10-26 11:04:46 +00:00
Henri Yandell
8fe3197c56
Uses inheritence in the get() value lookup to decide which value to return.
...
I find this very useful when implementing registries of which Class acts
upon which value. So in a ConvertUtils class, a ClassMap would handle the
many Converters, deciding which Converter to use on which value.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130852 13f79535-47bb-0310-9956-ffa450edef68
2002-10-23 03:35:23 +00:00
Henri Yandell
628285d5a7
okok. 1.19
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130850 13f79535-47bb-0310-9956-ffa450edef68
2002-10-21 02:13:12 +00:00
Henri Yandell
90181ac222
And linked it to the latest, which should be 1.20 by my calculating. Which is always susceptible, I'm a mathematician.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130849 13f79535-47bb-0310-9956-ffa450edef68
2002-10-21 02:11:57 +00:00
Henri Yandell
61b6d91e10
Updated current version to 2.1. Set Planned next release to ?.
...
STATUS.html isn't so tied to a release anyway I thinks.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130848 13f79535-47bb-0310-9956-ffa450edef68
2002-10-21 02:03:29 +00:00