Rodney Waldhoff
8d77ea4efc
@deprecate some replaced types
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130998 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 06:24:07 +00:00
Rodney Waldhoff
32a08d4038
add LongCollection, LongList, etc. and tests
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130997 13f79535-47bb-0310-9956-ffa450edef68
2003-04-08 18:24:36 +00:00
Rodney Waldhoff
3766fc5ad2
remove unused import
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130996 13f79535-47bb-0310-9956-ffa450edef68
2003-04-07 16:57:33 +00:00
Stephen Colebourne
af6d9f164f
Add lazyMap versions that use a Transformer as their factory.
...
These are in fact incredibly powerful, especially if wrapped in a synchronized wrapper.
In this case it forms a self-populating cache.
Idea by Dennis Mitchell, bugzilla ref 17953
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130994 13f79535-47bb-0310-9956-ffa450edef68
2003-04-06 20:07:55 +00:00
Stephen Colebourne
7f942e98b6
Add javadoc comments for inner classes
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130993 13f79535-47bb-0310-9956-ffa450edef68
2003-04-06 19:32:18 +00:00
Stephen Colebourne
95c52f129b
Add typed decorator collections to utility classes
...
from Matthew Hawthorne
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130992 13f79535-47bb-0310-9956-ffa450edef68
2003-04-04 22:22:29 +00:00
Stephen Colebourne
7b7011dde6
Add licence
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130991 13f79535-47bb-0310-9956-ffa450edef68
2003-04-04 22:20:44 +00:00
Stephen Colebourne
de8be58655
Add new equals and hashCode methods that aid implementors of the interfaces
...
from Neil O'Toole
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130990 13f79535-47bb-0310-9956-ffa450edef68
2003-04-04 20:42:03 +00:00
Stephen Colebourne
a73594a4b2
Initial checkin of MultiKey
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130989 13f79535-47bb-0310-9956-ffa450edef68
2003-03-09 00:07:41 +00:00
Rodney Waldhoff
2c36de79a9
clean up TODO list a bit
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130988 13f79535-47bb-0310-9956-ffa450edef68
2003-03-05 19:10:51 +00:00
Rodney Waldhoff
fb7e0d9b44
scrub imports
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130987 13f79535-47bb-0310-9956-ffa450edef68
2003-03-05 19:03:33 +00:00
Rodney Waldhoff
aa7cc64c4f
add tests, make 'em pass ;)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130986 13f79535-47bb-0310-9956-ffa450edef68
2003-03-03 23:23:40 +00:00
Stephen Colebourne
2298039999
Improve javadoc to clatify role of read-only properties
...
noted by BluePhelix@web.de
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130985 13f79535-47bb-0310-9956-ffa450edef68
2003-03-03 19:41:29 +00:00
Rodney Waldhoff
487ccad396
* add tests
...
* make a few minor changes so that those tests pass
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130983 13f79535-47bb-0310-9956-ffa450edef68
2003-03-01 00:47:29 +00:00
Rodney Waldhoff
b9fbf5945b
better handling of serializablity w.r.t. sublists
...
make some types final
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130982 13f79535-47bb-0310-9956-ffa450edef68
2003-02-28 21:21:51 +00:00
Rodney Waldhoff
02687ec175
toward better serialization contract support in sublists
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130981 13f79535-47bb-0310-9956-ffa450edef68
2003-02-28 00:17:56 +00:00
Rodney Waldhoff
9697e648ba
* add tests
...
* support serializable
* tweak equals contract to match List.equals better
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130980 13f79535-47bb-0310-9956-ffa450edef68
2003-02-26 19:17:24 +00:00
Rodney Waldhoff
d10b146e18
make ArrayIntList serializable
...
add additional tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130979 13f79535-47bb-0310-9956-ffa450edef68
2003-02-26 15:45:19 +00:00
Rodney Waldhoff
4b88bc49c1
dynamically disable certain serialization tests when run under clover
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130977 13f79535-47bb-0310-9956-ffa450edef68
2003-02-26 01:33:22 +00:00
Rodney Waldhoff
fa08d185aa
some cleanup, re-org methods, reduce scope on some
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130976 13f79535-47bb-0310-9956-ffa450edef68
2003-02-26 00:35:19 +00:00
Stephen Colebourne
a1dc756f64
Use correct internal method, from Andrew Freeman
...
Update licence and javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130975 13f79535-47bb-0310-9956-ffa450edef68
2003-02-20 23:14:03 +00:00
Stephen Colebourne
dbee289a00
Tidy up imports
...
from Andrew Freeman
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130974 13f79535-47bb-0310-9956-ffa450edef68
2003-02-19 20:33:20 +00:00
Stephen Colebourne
a3ff1ee25b
Tidy up imports
...
from Andrew Freeman
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130973 13f79535-47bb-0310-9956-ffa450edef68
2003-02-19 20:14:27 +00:00
Stephen Colebourne
d7e506ef8e
Fix bug in remove()
...
from Leo Sutic
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130972 13f79535-47bb-0310-9956-ffa450edef68
2003-02-19 19:54:12 +00:00
Stephen Colebourne
ae4e066007
Enable remove() in FilterIterator
...
from Ralph Wagner
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130970 13f79535-47bb-0310-9956-ffa450edef68
2003-01-30 23:11:58 +00:00
Stephen Colebourne
389ea88c76
Enable remove()
...
from Ralph Wagner
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130969 13f79535-47bb-0310-9956-ffa450edef68
2003-01-30 23:10:29 +00:00
Rodney Waldhoff
74d78a6d46
add test demonstrating that CollectionUtils.intersection et al uses the method equals(), not the operator ==.
...
(see <http://archives.apache.org/eyebrowse/ReadMsg?listId=105&msgNo=1993 >; "Question about CollectionUtils semantics" on commons-user, 27 Jan 2002)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130968 13f79535-47bb-0310-9956-ffa450edef68
2003-01-27 23:19:28 +00:00
Stephen Colebourne
597f6553d0
Add isSetSupported test to allow for immutable Lists
...
from Rich Dougherty, bug fix 15128
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130967 13f79535-47bb-0310-9956-ffa450edef68
2003-01-25 12:55:43 +00:00
Stephen Colebourne
775f3598fd
Improved javadoc of purge method.
...
from Eduardo Francos, bug fix #14889
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130966 13f79535-47bb-0310-9956-ffa450edef68
2003-01-25 12:33:02 +00:00
Stephen Colebourne
2d6bc87ba8
Fix initialized flag so it actually gets set
...
from Walt, fixes bug #16225
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130965 13f79535-47bb-0310-9956-ffa450edef68
2003-01-25 12:21:19 +00:00
Stephen Colebourne
5069664f18
Make getReadMethod and getWriteMethod public
...
Solves bug 15897
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130964 13f79535-47bb-0310-9956-ffa450edef68
2003-01-25 12:06:55 +00:00
Stephen Colebourne
a164d04789
Add exists() to test if any one element in the collection matches the predicate
...
from Peter KoBek
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130963 13f79535-47bb-0310-9956-ffa450edef68
2003-01-25 11:40:26 +00:00
Stephen Colebourne
075ed28c88
Add testing for null parameters passed to filter, transform and countMatches
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130962 13f79535-47bb-0310-9956-ffa450edef68
2003-01-25 11:31:12 +00:00
Stephen Colebourne
ea11630b2d
Improve performance by not using local variables in iterator loops
...
Javadoc null comment tidying
from Peter KoBek
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130961 13f79535-47bb-0310-9956-ffa450edef68
2003-01-25 11:29:37 +00:00
Stephen Colebourne
acf5ebf5a0
Improve speed of countMatches()
...
from Peter KoBek
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130960 13f79535-47bb-0310-9956-ffa450edef68
2003-01-20 01:29:30 +00:00
Stephen Colebourne
c07fc446f6
Improve performance of clear()
...
Update licence
Javadoc and formatting
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130958 13f79535-47bb-0310-9956-ffa450edef68
2003-01-18 14:03:28 +00:00
Stephen Colebourne
a790423ef1
Update clear() methods to run faster
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130957 13f79535-47bb-0310-9956-ffa450edef68
2003-01-18 13:37:12 +00:00
Stephen Colebourne
2c15f60080
Update licence
...
Javadoc improvements
Layout changes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130956 13f79535-47bb-0310-9956-ffa450edef68
2003-01-18 12:47:34 +00:00
Stephen Colebourne
4f55140322
Test Unmodifiable/Resetable combination iterators
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130954 13f79535-47bb-0310-9956-ffa450edef68
2003-01-15 22:02:33 +00:00
Stephen Colebourne
7c3665288a
Make Empty Iterators implement Resetable
...
Handle Unmodifiable/Resetable combination iterators
Expose Resetable Iterators as return types from methods
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130953 13f79535-47bb-0310-9956-ffa450edef68
2003-01-15 21:55:43 +00:00
Stephen Colebourne
9445bdcd93
Update licence
...
Test reset() on Singleton iterators
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130952 13f79535-47bb-0310-9956-ffa450edef68
2003-01-15 21:54:12 +00:00
Stephen Colebourne
55178c1244
Implement new Resetable Iterator interfaces
...
Update licence
Update since and version tags
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130951 13f79535-47bb-0310-9956-ffa450edef68
2003-01-15 21:53:14 +00:00
Stephen Colebourne
c08ffff306
Implement new Resetable Iterator interfaces
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130950 13f79535-47bb-0310-9956-ffa450edef68
2003-01-15 21:52:39 +00:00
Stephen Colebourne
d8af72c544
New Resetable Iterator interfaces
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130949 13f79535-47bb-0310-9956-ffa450edef68
2003-01-15 21:49:59 +00:00
Stephen Colebourne
9340ca5e76
Update licence
...
Update since and version tags
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130948 13f79535-47bb-0310-9956-ffa450edef68
2003-01-15 21:49:14 +00:00
Stephen Colebourne
60aa1d0752
Add access method for new BooleanComparator
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130947 13f79535-47bb-0310-9956-ffa450edef68
2003-01-15 20:37:22 +00:00
Stephen Colebourne
993d3b50e2
Javadoc the cached method
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130946 13f79535-47bb-0310-9956-ffa450edef68
2003-01-15 20:36:38 +00:00
Rodney Waldhoff
0b3070cdc0
* only javadoc public members
...
* fix resulting javadoc warnings
* add one-arg (Map) constructor to DefaultMapBag, use it in HashBag and TreeBag
* fix license typos in touched files
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130945 13f79535-47bb-0310-9956-ffa450edef68
2003-01-13 23:54:38 +00:00
Rodney Waldhoff
22ae5553ac
* make AbstractIntCollection public
...
* add copy constructor to AbstractIntCollection
* add javadoc to AbstractIntCollection
* hava AbstractRandomAccessIntList use AbstractIntCollection copy constructor
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130944 13f79535-47bb-0310-9956-ffa450edef68
2003-01-13 23:07:08 +00:00
Rodney Waldhoff
ab1cf8de16
* fix ComparatorChain for the case in which an underlying comparator returns Integer.MIN_VALUE, add test that demonstrates
...
* minor javadocs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130943 13f79535-47bb-0310-9956-ffa450edef68
2003-01-13 22:52:34 +00:00
Rodney Waldhoff
4b47c895c4
* reduce ComparableComparator.compare to "return ((Comparable)o1).compareTo(o2)"
...
* some javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130942 13f79535-47bb-0310-9956-ffa450edef68
2003-01-13 22:34:57 +00:00
Rodney Waldhoff
799b3be413
javadocs
...
add test
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130941 13f79535-47bb-0310-9956-ffa450edef68
2003-01-13 21:52:28 +00:00
Rodney Waldhoff
dc7995810d
* add copy constructors to AbstractRandomAccessIntList, ArrayIntList and ArrayUnsignedShortList
...
* more javadocs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130940 13f79535-47bb-0310-9956-ffa450edef68
2003-01-13 12:59:45 +00:00
Rodney Waldhoff
c40e37a018
minor license, javadoc fixes
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130939 13f79535-47bb-0310-9956-ffa450edef68
2003-01-12 15:23:20 +00:00
Rodney Waldhoff
6d2d1970fb
more minor javadoc fixes
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130938 13f79535-47bb-0310-9956-ffa450edef68
2003-01-11 21:34:39 +00:00
Rodney Waldhoff
ce4f5d6bcb
javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130937 13f79535-47bb-0310-9956-ffa450edef68
2003-01-11 21:32:20 +00:00
Rodney Waldhoff
e887366de0
license fixes (acknowlegement ->acknowledgment; Group -> Software Foundation)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130936 13f79535-47bb-0310-9956-ffa450edef68
2003-01-11 21:28:03 +00:00
Rodney Waldhoff
fcc3dec6f0
* fix gump's javadoc warnings
...
* fix spelling of "acknowledgment"
* remove duplicate @author entry
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130935 13f79535-47bb-0310-9956-ffa450edef68
2003-01-11 01:07:13 +00:00
Rodney Waldhoff
43e7d53839
document IntList.equals and IntList.hashCode contracts
...
add test ensuring proper implementation of IntList.hashCode
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130934 13f79535-47bb-0310-9956-ffa450edef68
2003-01-10 21:13:19 +00:00
Rodney Waldhoff
58e491f4b4
fix various javadoc warnings
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130933 13f79535-47bb-0310-9956-ffa450edef68
2003-01-10 20:21:25 +00:00
Rodney Waldhoff
e648a45b61
add javadocs to Int[List]Iterator
...
fix typo in IntList javadocs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130932 13f79535-47bb-0310-9956-ffa450edef68
2003-01-10 19:24:10 +00:00
Rodney Waldhoff
40a2554a07
remove duplicate @version tag
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130931 13f79535-47bb-0310-9956-ffa450edef68
2003-01-10 18:55:13 +00:00
Rodney Waldhoff
abd1fe5068
move IntListIterator back up to primitives package (oops, didn't mean to move it down to adapter in the first place)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130930 13f79535-47bb-0310-9956-ffa450edef68
2003-01-10 18:52:38 +00:00
Rodney Waldhoff
3a44e9291a
javadocs
...
also fix spelling of "acknowledgment" in the license text
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130929 13f79535-47bb-0310-9956-ffa450edef68
2003-01-10 18:47:15 +00:00
Rodney Waldhoff
0f4975fe36
adding serialized version of BooleanComparator, enabling relevant tests
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130928 13f79535-47bb-0310-9956-ffa450edef68
2003-01-10 17:08:29 +00:00
Rodney Waldhoff
8ae0426500
scrub imports
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130927 13f79535-47bb-0310-9956-ffa450edef68
2003-01-10 13:28:34 +00:00
Rodney Waldhoff
d1b9647e25
extract superclass TestIntList
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130926 13f79535-47bb-0310-9956-ffa450edef68
2003-01-10 13:27:55 +00:00
Rodney Waldhoff
69c423e40f
add BooleanComparator and tests
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130925 13f79535-47bb-0310-9956-ffa450edef68
2003-01-10 00:21:08 +00:00
Rodney Waldhoff
c97200ea71
add test ensuring makeObject.equals(null) doesn't fail
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130924 13f79535-47bb-0310-9956-ffa450edef68
2003-01-10 00:15:09 +00:00
Rodney Waldhoff
8f5eb39aa4
move primitive/object adapters down to adapter sub-package
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130923 13f79535-47bb-0310-9956-ffa450edef68
2003-01-09 13:40:11 +00:00
Rodney Waldhoff
a55fe3e992
add base testSerializeDeserializeThenCompare test, modify concrete TestCases so that they pass this test (or when necessary, skip them)
...
this tests the Comparator.equals contract, among others
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130922 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 23:44:20 +00:00
Stephen Colebourne
a11c82f3bc
Add Apache licence
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130921 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 23:40:57 +00:00
Rodney Waldhoff
b5f981ff98
override equals and hashCode to match Comparator contract
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130920 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 23:26:47 +00:00
Rodney Waldhoff
3264047c67
support equals and hashCode per Comparator contract
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130919 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 23:05:33 +00:00
Rodney Waldhoff
57335290f7
adjust arg name to match javadoc comment
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130918 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 18:49:01 +00:00
Rodney Waldhoff
f150178847
support equals as per the Comparator contract
...
support hashCode for this equals as per the Object contract
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130917 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 18:40:45 +00:00
Rodney Waldhoff
4c71dedc3a
cosmetic changes only (convert tabs to spaces, add braces one line blocks)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130916 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 18:20:07 +00:00
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
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
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
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
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
d2369cf6d4
2.1 will be 2.1 spec :)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130845 13f79535-47bb-0310-9956-ffa450edef68
2002-10-20 04:09:20 +00:00
Henri Yandell
b92d5e054f
This needs to be changed to change the manifest. doh :)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130843 13f79535-47bb-0310-9956-ffa450edef68
2002-10-18 07:19:02 +00:00
Henri Yandell
fbf05cfc64
No point recording how long it's been in Avalon now that it's not in Avalon.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130841 13f79535-47bb-0310-9956-ffa450edef68
2002-10-18 07:03:12 +00:00
Stephen Colebourne
04765f1d41
Delay primitives to 2.2 release
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130836 13f79535-47bb-0310-9956-ffa450edef68
2002-10-15 21:51:21 +00:00
Stephen Colebourne
7b54609df8
Javadoc improvement
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130833 13f79535-47bb-0310-9956-ffa450edef68
2002-10-13 22:31:35 +00:00
Stephen Colebourne
86df16092e
Fix to avoid javadoc generation warnings
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130832 13f79535-47bb-0310-9956-ffa450edef68
2002-10-13 13:55:35 +00:00
Stephen Colebourne
de7c3085ac
Add tests for negative size constructors
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130831 13f79535-47bb-0310-9956-ffa450edef68
2002-10-13 13:00:23 +00:00
Stephen Colebourne
30f22f1ba9
Use field access not method for testing
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130830 13f79535-47bb-0310-9956-ffa450edef68
2002-10-13 12:59:52 +00:00
Stephen Colebourne
f6692b29e6
Tidy javadoc and code layout
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130829 13f79535-47bb-0310-9956-ffa450edef68
2002-10-13 12:59:04 +00:00
Stephen Colebourne
49d9fa86a6
Add no args constructor
...
Tidy javadoc and code layout
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130828 13f79535-47bb-0310-9956-ffa450edef68
2002-10-13 12:57:12 +00:00
Stephen Colebourne
3aba1278c3
Enable nulls to be added to the stack
...
Add initial size constructor
Tidy javadoc and code layout
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130827 13f79535-47bb-0310-9956-ffa450edef68
2002-10-13 12:56:42 +00:00
Stephen Colebourne
374e746bb0
Deprecate in favour of StringUtils in [lang]
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130825 13f79535-47bb-0310-9956-ffa450edef68
2002-10-13 11:17:57 +00:00
Stephen Colebourne
4e2452d242
Javadoc improvements, especially exception descriptions
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130822 13f79535-47bb-0310-9956-ffa450edef68
2002-10-13 00:38:36 +00:00
Stephen Colebourne
332b8ff8d8
Remove as added after 2.0, and is now in subpackage
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130821 13f79535-47bb-0310-9956-ffa450edef68
2002-10-12 23:25:27 +00:00
Stephen Colebourne
9a451b11ca
Fix unused imports (patch from Steve Downey)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130820 13f79535-47bb-0310-9956-ffa450edef68
2002-10-12 22:36:23 +00:00
Stephen Colebourne
3b553f88ce
Add whole package testing class for comparators
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130819 13f79535-47bb-0310-9956-ffa450edef68
2002-10-12 22:35:37 +00:00
Stephen Colebourne
febd99c162
Add whole package testing class
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130818 13f79535-47bb-0310-9956-ffa450edef68
2002-10-12 22:35:10 +00:00
Stephen Colebourne
9ba0768cf5
Fix unused imports and javadoc links (patch from Steve Downey)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130816 13f79535-47bb-0310-9956-ffa450edef68
2002-10-12 22:15:21 +00:00
Stephen Colebourne
f93b13144b
Removed unused variable (patch from Steve Downey)
...
Added class level javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130815 13f79535-47bb-0310-9956-ffa450edef68
2002-10-12 22:04:59 +00:00
Stephen Colebourne
3f22cc8398
Removed unused variable (patch from Steve Downey)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130814 13f79535-47bb-0310-9956-ffa450edef68
2002-10-12 21:59:45 +00:00
Rodney Waldhoff
a47d25a4ff
* allow zero as an initial capacity for the primitive array lists (once again). (java.util.ArrayList allows it, why shouldn't we?)
...
* add tests to enforce the contract
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130812 13f79535-47bb-0310-9956-ffa450edef68
2002-09-07 20:33:32 +00:00
Rodney Waldhoff
034ec419ea
add containsAny(Collection,Collection) and tests
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130811 13f79535-47bb-0310-9956-ffa450edef68
2002-09-07 19:49:49 +00:00
Rodney Waldhoff
52cc5cbef2
minor doc change
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130810 13f79535-47bb-0310-9956-ffa450edef68
2002-09-07 00:28:53 +00:00
pjack
3b4a050148
Added better class JavaDoc as suggested by Jonathan Carlson.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130809 13f79535-47bb-0310-9956-ffa450edef68
2002-08-23 17:31:28 +00:00
pjack
cb3d67cf61
Added some notes about the abstraction layers.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130808 13f79535-47bb-0310-9956-ffa450edef68
2002-08-22 02:08:32 +00:00
pjack
f7e4fdd91d
Added better class-level documentation as suggested by Jonathan Carlson.
...
Also provided default implementations for many of the abstract methods
in Abstract*List.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130807 13f79535-47bb-0310-9956-ffa450edef68
2002-08-22 01:50:54 +00:00
pjack
ebdaf3cb68
Placed Abstract*ArrayList layer under Abstract*List layer. Erased
...
Serializable declarations from all abstract superclasses (but kept it in
all concrete implementations).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130806 13f79535-47bb-0310-9956-ffa450edef68
2002-08-21 23:54:18 +00:00
pjack
ab21cb546c
Removed TestSoftRefHashMap. It was never invoked by TestAll, and the
...
class it tests has been deprecated; this removal eliminates a
deprecation warning from the build.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130804 13f79535-47bb-0310-9956-ffa450edef68
2002-08-20 00:16:30 +00:00
pjack
32dc4757e6
Fixed JavaDoc errors.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130803 13f79535-47bb-0310-9956-ffa450edef68
2002-08-19 21:56:18 +00:00
pjack
cddf8c5c66
Renamed AbstractIntArrayList, AbstractShortArrayList,
...
AbstractLongArrayList to AbstractIntList, AbstractShortList,
AbstractLongList. New names follow general naming pattern in
Collections Framework, and anticipate later IntList, ShortList and
LongList interfaces.
Recommended by Jonathan Carlson (joncrlsn2 at yahoo dot com).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130802 13f79535-47bb-0310-9956-ffa450edef68
2002-08-19 21:19:03 +00:00
pjack
f9d36a36f4
ReferenceMap is no longer serializable. There were issues with its
...
serialization methods on Java 1.3 (but 1.2 and 1.4 worked). Issue will
be addressed in a later release.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130801 13f79535-47bb-0310-9956-ffa450edef68
2002-08-19 19:44:59 +00:00
pjack
901deeeeff
Removed bounded decorators from the source. We might resurrect these
...
after the 2.1 release, if we can address their difficulties.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130798 13f79535-47bb-0310-9956-ffa450edef68
2002-08-18 20:11:38 +00:00
Stephen Colebourne
aee5310ddd
Test filter() and transform()
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130797 13f79535-47bb-0310-9956-ffa450edef68
2002-08-18 15:26:43 +00:00
Stephen Colebourne
41be9cbfa9
Add filter() and transform()
...
Add lots of javadoc
Deprecate empty iterator
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130796 13f79535-47bb-0310-9956-ffa450edef68
2002-08-18 15:26:20 +00:00
Stephen Colebourne
844eb0adcc
Rename public field (naming conventions)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130795 13f79535-47bb-0310-9956-ffa450edef68
2002-08-17 22:17:53 +00:00
Stephen Colebourne
d72a2c1442
Test IteratorUtils added
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130794 13f79535-47bb-0310-9956-ffa450edef68
2002-08-17 22:14:47 +00:00
Stephen Colebourne
5b1e839241
Add specific classes (singleton) for empty cases
...
Add toList and toArray
Rename certain methods to toXxx and asXxx
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130793 13f79535-47bb-0310-9956-ffa450edef68
2002-08-17 22:14:22 +00:00
pjack
a24ad64d19
More IllegalArgument checks to decorators.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130792 13f79535-47bb-0310-9956-ffa450edef68
2002-08-17 21:10:46 +00:00
Stephen Colebourne
db484419cb
ComparatorUtils renamed methods
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130791 13f79535-47bb-0310-9956-ffa450edef68
2002-08-17 12:07:24 +00:00
Stephen Colebourne
49f3fe1be6
Rename methods
...
Add chainedComparator
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130790 13f79535-47bb-0310-9956-ffa450edef68
2002-08-17 12:06:56 +00:00
Stephen Colebourne
5578341679
Add reference to IteratorUtils
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130789 13f79535-47bb-0310-9956-ffa450edef68
2002-08-17 12:06:20 +00:00
Stephen Colebourne
8e2ad0efd5
Test SingletonListIterator
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130787 13f79535-47bb-0310-9956-ffa450edef68
2002-08-17 11:39:16 +00:00
Stephen Colebourne
702882dd76
Initial checkin
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130786 13f79535-47bb-0310-9956-ffa450edef68
2002-08-17 11:38:53 +00:00
Stephen Colebourne
babbe098f8
Deprecate getIterator
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130785 13f79535-47bb-0310-9956-ffa450edef68
2002-08-17 11:38:35 +00:00
Stephen Colebourne
ed1a9d333d
Added extra null validation
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130784 13f79535-47bb-0310-9956-ffa450edef68
2002-08-17 11:33:09 +00:00
Stephen Colebourne
cb996e1b98
Javadoc changes
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130783 13f79535-47bb-0310-9956-ffa450edef68
2002-08-17 11:29:38 +00:00
Stephen Colebourne
18c63e1eff
Remove List constructor
...
Added three new constructors
Added get for iterator list
Added extra null validation
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130782 13f79535-47bb-0310-9956-ffa450edef68
2002-08-17 11:28:36 +00:00
Stephen Colebourne
14603b3c26
Added two new constructors
...
Added set and get for iterator list
Added extra null validation
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130781 13f79535-47bb-0310-9956-ffa450edef68
2002-08-17 11:24:58 +00:00
pjack
21b77034c4
Removing these because we'd only deprecate them later. There is
...
every intention to move Factory, Closure, Predicate and Transformer to
another lower-level project, possibly [lang] or [pattern]. Currently
they live in [pattern], and the Util classes in that project are far
superior to these.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130779 13f79535-47bb-0310-9956-ffa450edef68
2002-08-16 00:02:41 +00:00
pjack
82a5501d1c
Edited package.html files to include recent stuff.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130778 13f79535-47bb-0310-9956-ffa450edef68
2002-08-16 00:00:23 +00:00
pjack
f26c68bf7b
Moved all iterators to new iterators subpackage.
...
Deprecated all iterator classes in the main package released in 2.0.
Removed all iterator classes from the main package that were not
released yet.
Moved test code for iterators into new iterators subpackage.
Deleted old iterator test code in the main package.
Modified main package TestAll to invoke iterators subpackage TestAll.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130777 13f79535-47bb-0310-9956-ffa450edef68
2002-08-15 23:13:52 +00:00
pjack
fceaa29c48
Renamed Factory.createObject() to Factory.create().
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130776 13f79535-47bb-0310-9956-ffa450edef68
2002-08-15 20:09:38 +00:00
pjack
8ab071ff5d
Documented (almost) all public/protected members.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130775 13f79535-47bb-0310-9956-ffa450edef68
2002-08-15 20:04:31 +00:00
pjack
8d61930eab
Enabled full suite of TestMap tests, and activated checks to see that
...
collection views are backed by map etc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130774 13f79535-47bb-0310-9956-ffa450edef68
2002-08-15 03:23:08 +00:00
pjack
869725582c
1. Collection views are now backed by map.
...
2. Used bit-mixing hash function.
3. Added docs about the non-atomic nature of bulk operations.
4. Improved performance of size() operation.
5. Added atomic(Runnable) method.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130773 13f79535-47bb-0310-9956-ffa450edef68
2002-08-15 03:22:29 +00:00
pjack
43c829d318
Added documentation to classes in primitives package.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130772 13f79535-47bb-0310-9956-ffa450edef68
2002-08-13 19:41:36 +00:00
pjack
642cb02b25
The collection views of FastArrayList, FastTreeMap and FastHashMap are
...
now backed by the parent collection, even in fast mode, and those
classes now pass all unit tests in fast mode. The unit tests were
altered so that they actually test the classes with setFast(true).
PR:7924
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130771 13f79535-47bb-0310-9956-ffa450edef68
2002-08-13 04:34:09 +00:00
pjack
7230a4e5ea
Renamed SimpleObjectFactory to Factory.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130770 13f79535-47bb-0310-9956-ffa450edef68
2002-08-13 01:19:00 +00:00
pjack
a5e5273b8d
Added package.html for comparators and primitives subpackages.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130769 13f79535-47bb-0310-9956-ffa450edef68
2002-08-13 01:05:21 +00:00
pjack
d3f3a8aa3d
Fixed some JavaDoc errors.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130768 13f79535-47bb-0310-9956-ffa450edef68
2002-08-13 01:04:19 +00:00
pjack
6b7155d174
Forgot the license AGAIN. <slap>
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130767 13f79535-47bb-0310-9956-ffa450edef68
2002-08-13 00:49:59 +00:00
pjack
8191cf918f
Added @since tags to files that were missing them. Also added some
...
@version tags to files that were missing them. Also added private
constructor to ComparatorUtils.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130766 13f79535-47bb-0310-9956-ffa450edef68
2002-08-13 00:46:25 +00:00
pjack
e18f4e691a
Added new decorators, and modified existing decorators to fit the
...
conventions outlined in the developer's guide.
Decorators are package-protected inner classes, not part of the public
API. Existing lazy and predicated decorators were moved to
CollectionUtils, ListUtils etc. New classes SetUtils, BagUtils were
added for decorators of those types.
New bounded and fixed size decorators were added for appropriate types.
Unmodifiable and synchronized decorators were added for Buffers and
Bags.
Unit tests were added where possible. No unit tests for synchronized
collection wrappers; not sure how to implement a valid test for proper
synchronization.
Also, no unit tests for Bag decorators, because the decorator unit tests
require the TestCollection framework, which won't work with Bag since it
violates the Collection contract.
Modified Files:
src/java/org/apache/commons/collections/BufferUtils.java
src/java/org/apache/commons/collections/CollectionUtils.java
src/java/org/apache/commons/collections/ListUtils.java
src/java/org/apache/commons/collections/MapUtils.java
src/java/org/apache/commons/collections/PredicateUtils.java
src/test/org/apache/commons/collections/TestAll.java
src/test/org/apache/commons/collections/TestCollectionUtils.java
src/test/org/apache/commons/collections/TestList.java
Added Files:
src/java/org/apache/commons/collections/BagUtils.java
src/java/org/apache/commons/collections/SetUtils.java
src/test/org/apache/commons/collections/TestBoundedCollection.java
src/test/org/apache/commons/collections/TestBufferUtils.java
src/test/org/apache/commons/collections/TestListUtils.java
src/test/org/apache/commons/collections/TestMapUtils.java
src/test/org/apache/commons/collections/TestPredicatedCollection.java
src/test/org/apache/commons/collections/TestSetUtils.java
Removed Files:
src/java/org/apache/commons/collections/LazyCollections.java
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130765 13f79535-47bb-0310-9956-ffa450edef68
2002-08-13 00:26:52 +00:00
pjack
6043494121
Fixed infinite recursion in equals(Object) method.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130764 13f79535-47bb-0310-9956-ffa450edef68
2002-08-12 22:51:13 +00:00
pjack
dcbca14341
Added serialVersionUid for compatibility...
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130763 13f79535-47bb-0310-9956-ffa450edef68
2002-08-12 19:59:49 +00:00
pjack
5462527ed3
Deprecated SoftRefHashMap.
...
PR:9571
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130762 13f79535-47bb-0310-9956-ffa450edef68
2002-08-12 18:24:33 +00:00
pjack
19538d0671
Forgot the license. Heh. Ahem.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130761 13f79535-47bb-0310-9956-ffa450edef68
2002-08-12 18:16:05 +00:00
pjack
81f6b79a48
Added new ReferenceMap class.
...
PR:9571
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130760 13f79535-47bb-0310-9956-ffa450edef68
2002-08-12 18:13:09 +00:00
pjack
7e650946d4
Some unit tests were failing under JDK1.2.2, because of bugs in the
...
source for JDK1.2.2 TreeMap and HashMap (they incorrectly return false
when a null value is removed from the collection views).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130758 13f79535-47bb-0310-9956-ffa450edef68
2002-08-12 18:00:46 +00:00
pjack
9adb578a23
Added BeanMap.putAllWriteable(BeanMap) method, and unit test.
...
PR:11262
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130756 13f79535-47bb-0310-9956-ffa450edef68
2002-08-10 02:05:20 +00:00