Commit Graph

1176 Commits

Author SHA1 Message Date
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 cec79200d7 make "maven clover" work
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130978 13f79535-47bb-0310-9956-ffa450edef68
2003-02-26 01:45:53 +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 2b91f90172 Add BooleanComparator
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130959 13f79535-47bb-0310-9956-ffa450edef68
2003-01-19 17:44:00 +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 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