Commit Graph

604 Commits

Author SHA1 Message Date
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 5cc930c282 Update licence
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130955 13f79535-47bb-0310-9956-ffa450edef68
2003-01-15 22:07:57 +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 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