Commit Graph

593 Commits

Author SHA1 Message Date
Stephen Colebourne ba9cd0f544 Add new abstract decorator classes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131051 13f79535-47bb-0310-9956-ffa450edef68
2003-05-09 16:38:16 +00:00
Stephen Colebourne 645063548a Convert instance variable to protected
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131050 13f79535-47bb-0310-9956-ffa450edef68
2003-05-09 16:37:30 +00:00
Stephen Colebourne f3d1e3c070 Add Bag collection decorators
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131049 13f79535-47bb-0310-9956-ffa450edef68
2003-05-07 13:19:18 +00:00
Stephen Colebourne 0124ad25ac Add Buffer collection decorators
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131048 13f79535-47bb-0310-9956-ffa450edef68
2003-05-07 13:18:53 +00:00
Stephen Colebourne 51ace98326 Add Buffer collection decorators
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131047 13f79535-47bb-0310-9956-ffa450edef68
2003-05-07 12:19:26 +00:00
Stephen Colebourne 7eb41b7cdd Javadoc improvements
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131046 13f79535-47bb-0310-9956-ffa450edef68
2003-05-07 12:18:55 +00:00
Stephen Colebourne db5765e6be Tidy imports, javadoc and field access
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131045 13f79535-47bb-0310-9956-ffa450edef68
2003-05-07 11:20:21 +00:00
Stephen Colebourne 655ef653bc Add Set and SortedSet collection decorators
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131044 13f79535-47bb-0310-9956-ffa450edef68
2003-05-07 11:19:46 +00:00
Robert Burrell Donkin 1ebd856d1f Added ability to make referenced value purgable. This allows an instance to be constructed with weak referenced keys whose values are purged when the keys are garbage collected.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131042 13f79535-47bb-0310-9956-ffa450edef68
2003-05-07 09:18:58 +00:00
Robert Burrell Donkin 1907fd5d4b Rolled back last commit. Accidentally committed everything in commons when I just wanted to commit docs and xdocs. Doh!
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131040 13f79535-47bb-0310-9956-ffa450edef68
2003-05-06 11:19:26 +00:00
Robert Burrell Donkin 0960f86b17 Changed charter as per successful VOTE. We now allow any Apache committers to use the sandbox (upon request).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131039 13f79535-47bb-0310-9956-ffa450edef68
2003-05-06 10:24:01 +00:00
Rodney Waldhoff 4e1cd68bc0 add tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131038 13f79535-47bb-0310-9956-ffa450edef68
2003-05-06 00:04:30 +00:00
Rodney Waldhoff 8f6ef49683 * clean up unused local variables
* scrub imports


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131037 13f79535-47bb-0310-9956-ffa450edef68
2003-05-05 23:25:22 +00:00
Rodney Waldhoff 0eaab38ac2 add *.primitives.decorators.TestAll to the suite
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131036 13f79535-47bb-0310-9956-ffa450edef68
2003-05-04 13:06:14 +00:00
Rodney Waldhoff de09f923b0 add BaseProxyIntCollection, BaseProxyIntList, and tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131035 13f79535-47bb-0310-9956-ffa450edef68
2003-05-04 12:58:48 +00:00
Stephen Colebourne c491e7f4f5 Collection and List decorators (previously inner classes)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131034 13f79535-47bb-0310-9956-ffa450edef68
2003-04-29 18:43:47 +00:00
Stephen Colebourne 046411c42b Test new buffer implementation that overwrites the oldest entry when full
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131033 13f79535-47bb-0310-9956-ffa450edef68
2003-04-26 15:13:54 +00:00
Stephen Colebourne 76fb648c5c Add additional test for null passed to constructor
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131032 13f79535-47bb-0310-9956-ffa450edef68
2003-04-26 15:12:28 +00:00
Stephen Colebourne 4658bffcb6 New buffer implementation that overwrites the oldest entry when full
from Stefano Fornari


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131031 13f79535-47bb-0310-9956-ffa450edef68
2003-04-26 15:10:56 +00:00
Stephen Colebourne ad8bc0e6d9 Minor speed improvement
Javadoc/copyright


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131030 13f79535-47bb-0310-9956-ffa450edef68
2003-04-26 15:09:48 +00:00
Stephen Colebourne 48b7814cf6 Document null behaviour
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131029 13f79535-47bb-0310-9956-ffa450edef68
2003-04-26 14:28:31 +00:00
Stephen Colebourne 36cc05ca35 Add invertMap(Map) method
Add toMap(ResourceBundle) method
from Arun Mammen Thomas


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131028 13f79535-47bb-0310-9956-ffa450edef68
2003-04-26 14:27:46 +00:00
Stephen Colebourne fa44d78ebc Updated javadoc
Updated copyright year


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131027 13f79535-47bb-0310-9956-ffa450edef68
2003-04-26 11:15:34 +00:00
Stephen Colebourne 70a7e6a6a8 Fix bug in test for sub list ignoring set boolean
Updated test for better error messages
from Neil O'Toole


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131026 13f79535-47bb-0310-9956-ffa450edef68
2003-04-26 10:27:59 +00:00
Stephen Colebourne ee342121c5 Updated test for better error messages
from Neil O'Toole


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131025 13f79535-47bb-0310-9956-ffa450edef68
2003-04-26 10:25:35 +00:00
Rodney Waldhoff cec1f64b00 public constructors considered helpful
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131024 13f79535-47bb-0310-9956-ffa450edef68
2003-04-22 21:32:55 +00:00
Rodney Waldhoff 2429ea3deb address bug 19096 by adding a simple toString method
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131023 13f79535-47bb-0310-9956-ffa450edef68
2003-04-18 23:29:24 +00:00
Rodney Waldhoff 06e3ca2d37 address bug 17616, default to ISO-8859-1 encoding when none specified
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131022 13f79535-47bb-0310-9956-ffa450edef68
2003-04-18 23:17:09 +00:00
Rodney Waldhoff d73e9fcf94 close reader, for completeness
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131020 13f79535-47bb-0310-9956-ffa450edef68
2003-04-17 12:13:14 +00:00
Rodney Waldhoff 6a5cf652be add Reader/CharIterator adapters and tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131019 13f79535-47bb-0310-9956-ffa450edef68
2003-04-16 19:45:13 +00:00
Rodney Waldhoff a17d133bb2 a more useful CharList.toString implementation
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131018 13f79535-47bb-0310-9956-ffa450edef68
2003-04-16 19:03:39 +00:00
Rodney Waldhoff 70598bf567 fix minor cut-and-paste issue (needless cast to float)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131017 13f79535-47bb-0310-9956-ffa450edef68
2003-04-16 18:38:09 +00:00
Rodney Waldhoff 1da41c0b71 add char based primitive collections and tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131016 13f79535-47bb-0310-9956-ffa450edef68
2003-04-16 18:32:40 +00:00
Rodney Waldhoff 1df7f75362 add ByteIteratorInputStream and tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131015 13f79535-47bb-0310-9956-ffa450edef68
2003-04-15 17:09:15 +00:00
Rodney Waldhoff 68890c535b additional tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131014 13f79535-47bb-0310-9956-ffa450edef68
2003-04-15 16:26:15 +00:00
Rodney Waldhoff 3171e5c1e7 add InputStreamByteIterator and tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131013 13f79535-47bb-0310-9956-ffa450edef68
2003-04-15 03:07:50 +00:00
Rodney Waldhoff b2528188aa add byte collections and tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131012 13f79535-47bb-0310-9956-ffa450edef68
2003-04-15 01:55:23 +00:00
Rodney Waldhoff 71a2dba44e implement some TestListIterator tests, hence clearing a TODO
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131011 13f79535-47bb-0310-9956-ffa450edef68
2003-04-15 00:27:37 +00:00
Rodney Waldhoff cb320f7403 add double collections and tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131010 13f79535-47bb-0310-9956-ffa450edef68
2003-04-15 00:11:20 +00:00
Rodney Waldhoff 969a6804c1 add TestListIterator placeholder
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131009 13f79535-47bb-0310-9956-ffa450edef68
2003-04-13 23:26:09 +00:00
Rodney Waldhoff f2328ed4c0 deprecate old style FloatArrayList
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131008 13f79535-47bb-0310-9956-ffa450edef68
2003-04-13 23:05:35 +00:00
Rodney Waldhoff f54ad7f89e rename [Test]AbstractRandomAccessXList to just [Test]RandomAccessXList
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131007 13f79535-47bb-0310-9956-ffa450edef68
2003-04-13 22:30:57 +00:00
Rodney Waldhoff 95df194b8b add float types and tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131006 13f79535-47bb-0310-9956-ffa450edef68
2003-04-13 22:08:09 +00:00
Stephen Colebourne 54a2013989 Add new FixedOrderComparator that allows the order to be easily specified
from David Leppik, bug ref 16823


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131005 13f79535-47bb-0310-9956-ffa450edef68
2003-04-13 17:37:26 +00:00
Rodney Waldhoff 37b4ba1135 deprecate old style short collections
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131004 13f79535-47bb-0310-9956-ffa450edef68
2003-04-11 22:01:25 +00:00
Rodney Waldhoff 45ed5c01f7 * add UnsignedByte ShortList
* fix conversion bug in UnsignedShortList.removeElementAt and UnsignedIntList.removeElementAt


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131003 13f79535-47bb-0310-9956-ffa450edef68
2003-04-11 21:50:15 +00:00
Rodney Waldhoff 6f8c285fd6 add short types and tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131002 13f79535-47bb-0310-9956-ffa450edef68
2003-04-11 00:55:37 +00:00
Stephen Colebourne 66a915ccb5 Method names and signatures changed to make more generally useful and clear
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131001 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 23:38:26 +00:00
Stephen Colebourne aa46c52439 Update method names and signatures to make more generally useful and clear
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131000 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 23:37:54 +00:00
Rodney Waldhoff 9bbaba8bcd * add ArrayUnsignedIntList and tests
* deprecate some test cases to reduce the number of deprecation warnings


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130999 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 06:44:34 +00:00
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