Stephen Colebourne
86fc29dc96
Deprecated classes removed for next release
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131075 13f79535-47bb-0310-9956-ffa450edef68
2003-05-11 14:08:23 +00:00
Stephen Colebourne
d10f7f4bb3
Remove deprecated getName method
...
Update licence and javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131074 13f79535-47bb-0310-9956-ffa450edef68
2003-05-11 14:00:09 +00:00
Stephen Colebourne
6e9f2b17d2
Add transformed decorators to static utilities
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131073 13f79535-47bb-0310-9956-ffa450edef68
2003-05-11 13:29:16 +00:00
Stephen Colebourne
530e458fb7
Add transformed decorators
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131071 13f79535-47bb-0310-9956-ffa450edef68
2003-05-11 13:17:57 +00:00
Stephen Colebourne
340c5f0af9
Reformat file layout
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131070 13f79535-47bb-0310-9956-ffa450edef68
2003-05-11 13:14:51 +00:00
Stephen Colebourne
9f14cf8d87
Update licence and javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131066 13f79535-47bb-0310-9956-ffa450edef68
2003-05-11 12:13:58 +00:00
Stephen Colebourne
709b314cde
Deprecate for newer version in decorators subpackage
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131065 13f79535-47bb-0310-9956-ffa450edef68
2003-05-10 17:07:28 +00:00
Stephen Colebourne
4eb9212972
Add sequenced decorator
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131061 13f79535-47bb-0310-9956-ffa450edef68
2003-05-10 15:10:22 +00:00
Stephen Colebourne
4ca59779e7
Add package html for decorators package
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131060 13f79535-47bb-0310-9956-ffa450edef68
2003-05-10 12:51:06 +00:00
Stephen Colebourne
ff648b6cda
Remove decorator inner classes.
...
Transfer static method calls to use new decorators package.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131059 13f79535-47bb-0310-9956-ffa450edef68
2003-05-09 18:41:34 +00:00
Stephen Colebourne
9f2689243b
Update licence and file layout
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131058 13f79535-47bb-0310-9956-ffa450edef68
2003-05-09 18:36:14 +00:00
Stephen Colebourne
5535332edc
Ensure map putAll() method does not recurse
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131056 13f79535-47bb-0310-9956-ffa450edef68
2003-05-09 18:33:27 +00:00
Stephen Colebourne
c284d5a192
Add BoundedCollection collection decorator
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131055 13f79535-47bb-0310-9956-ffa450edef68
2003-05-09 18:01:08 +00:00
Stephen Colebourne
ebc5684efd
Add Map and SortedMap collection decorators
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131054 13f79535-47bb-0310-9956-ffa450edef68
2003-05-09 16:42:36 +00:00
Stephen Colebourne
1c77aedc23
Change typed collections to not implement the interface.
...
Instead they are just placeholders.
This makes the decorate method more usable in IDEs.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131053 13f79535-47bb-0310-9956-ffa450edef68
2003-05-09 16:41:57 +00:00
Stephen Colebourne
da665c0d95
Change to extend AbstractListDecorator (better superclass)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131052 13f79535-47bb-0310-9956-ffa450edef68
2003-05-09 16:39:23 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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