Commit Graph

2261 Commits

Author SHA1 Message Date
Rodney Waldhoff f146a43e76 add ArrayUnsignedShortList, and tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130915 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 18:04:52 +00:00
Rodney Waldhoff 37b1a12876 apply Rich Dougherty's patch fixing NodeCachingLinkedList unit tests
this also adds CommonsLinkedList and tests


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130914 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 15:18:15 +00:00
Rodney Waldhoff 8f77a02066 * fix problems with IntListList and ListIntList equals methods
* throw IndexOutOfBounds instead of IllegalArgument, where necessary
* re-enable TestArrayIntList suite
* re-enable primitives.TestAll suite from root (not clear why this would have been disabled)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130913 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 13:24:52 +00:00
Rodney Waldhoff fc65ecbb81 add toString
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130912 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 01:34:07 +00:00
Rodney Waldhoff 4f633bcf7f screwed up the unit tests somehow, comment out for now (will fix in the AM)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130911 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 01:29:28 +00:00
Rodney Waldhoff 0ff5503e97 * add additional adapters
* modify wrappers so that equals compares wrapped types
* clarify IntList.equals with javadoc


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130910 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 00:59:51 +00:00
Rodney Waldhoff 6572959b52 follow Stefan's advice and use ${year} instead of "2003"
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130909 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 00:08:38 +00:00
Rodney Waldhoff 5bf91f7575 * run test as part of dist -- good for gump, good for releases
* update © to include 2003


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130908 13f79535-47bb-0310-9956-ffa450edef68
2003-01-06 13:00:54 +00:00
Rodney Waldhoff 4149f26f94 cosmetic changes only
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130907 13f79535-47bb-0310-9956-ffa450edef68
2003-01-06 12:54:57 +00:00
Rodney Waldhoff f6c5790d9f expose ${javac.debug}, ${javac.deprecation} and ${javac.optimize} properties
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130906 13f79535-47bb-0310-9956-ffa450edef68
2003-01-06 12:54:05 +00:00
Rodney Waldhoff 5cec4b2b96 better deprecation messages
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130905 13f79535-47bb-0310-9956-ffa450edef68
2003-01-06 04:05:39 +00:00
Rodney Waldhoff 6ce6f9ccbc * add ArrayIntList, AbstractRandomAccessIntList
* add missing addAll(int,IntCollection) method to IntList
* add tests


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130904 13f79535-47bb-0310-9956-ffa450edef68
2003-01-06 03:59:12 +00:00
Rodney Waldhoff 2c7a674eea add IntList to List adapter
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130903 13f79535-47bb-0310-9956-ffa450edef68
2003-01-06 03:57:42 +00:00
Rodney Waldhoff 5033cc3758 add IntListIterator to ListIterator adapter
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130902 13f79535-47bb-0310-9956-ffa450edef68
2003-01-06 03:57:15 +00:00
Rodney Waldhoff 081e3fcc15 oops, retainAll should delegate to retainAll, not removeAll
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130901 13f79535-47bb-0310-9956-ffa450edef68
2003-01-06 03:56:21 +00:00
Rodney Waldhoff 8922bd8321 make package doc scalable
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130900 13f79535-47bb-0310-9956-ffa450edef68
2003-01-05 13:33:05 +00:00
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