Commit Graph

1123 Commits

Author SHA1 Message Date
Dirk Verbeeck 49da0ff2c6 svn:keywords correction
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@155406 13f79535-47bb-0310-9956-ffa450edef68
2005-02-26 12:55:26 +00:00
Stephen Colebourne 560c4ee8db Fix to SetUniqueList breaks when swapping entries
bug 33294, from Tom Dunham

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@149033 13f79535-47bb-0310-9956-ffa450edef68
2005-01-29 12:51:12 +00:00
Stephen Colebourne 1da9c06f4d Optimise the remove implementation for performance of common case
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131840 13f79535-47bb-0310-9956-ffa450edef68
2005-01-22 00:48:22 +00:00
Stephen Colebourne 46d73eac81 Add lots of tests for bug 33071
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131839 13f79535-47bb-0310-9956-ffa450edef68
2005-01-22 00:47:49 +00:00
Phil Steitz 0b4f8f99f7 Fixed bug in iterator remove. Shift operation was not incrementing indexes
properly.  Also improved documentation.
BZ #33071
Reported by: Amir Tahvildaran


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131837 13f79535-47bb-0310-9956-ffa450edef68
2005-01-15 22:47:41 +00:00
Stephen Colebourne 7b420d7145 Fix MultiHashMap to return null when nothing removed
bug 32366, reported by Tad Marko


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131836 13f79535-47bb-0310-9956-ffa450edef68
2005-01-04 00:13:25 +00:00
Stephen Colebourne 92ec7a0d75 Clarify comment on ListOrderedSet
bug 32073


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131835 13f79535-47bb-0310-9956-ffa450edef68
2005-01-04 00:01:31 +00:00
Stephen Colebourne 6367b6853c Javadoc
bug 31519, from Olaf Krische


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131833 13f79535-47bb-0310-9956-ffa450edef68
2005-01-03 23:52:49 +00:00
Stephen Colebourne 962f0f1b2b Remove unmodifiableXxxCopy methods as they don't add enough value
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131830 13f79535-47bb-0310-9956-ffa450edef68
2004-12-24 11:03:45 +00:00
Stephen Colebourne 2e2ac4ba93 Fix formatting
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131828 13f79535-47bb-0310-9956-ffa450edef68
2004-12-19 16:56:31 +00:00
Neil O'Toole 6a8e5d5380 Added new methods to CollectionUtils (plus associated test cases)
#retainAll(Collection, Collection)
#removeAll(Collection, Collection)
#unmodifiableCollectionCopy(Collection)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131827 13f79535-47bb-0310-9956-ffa450edef68
2004-12-11 06:30:38 +00:00
Neil O'Toole 3b1498f6cd Added new convenience method to MapUtils:
#unmodifiableMapCopy


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131826 13f79535-47bb-0310-9956-ffa450edef68
2004-12-11 06:26:13 +00:00
Neil O'Toole f9188963a8 Added test cases for new methods in ListUtils
#retainAll(Collection, Collection)
#removeAll(Collection, Collection)
#unmodifiableListCopy(Collection)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131825 13f79535-47bb-0310-9956-ffa450edef68
2004-12-11 06:24:10 +00:00
Neil O'Toole dde27ccfcb Added new methods:
#retainAll(Collection, Collection)
#removeAll(Collection, Collection)
#unmodifiableListCopy(Collection)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131824 13f79535-47bb-0310-9956-ffa450edef68
2004-12-11 06:22:58 +00:00
Stephen Colebourne 120e4a6b44 Don't access static methods via instance variable
from Chris Tilden


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131823 13f79535-47bb-0310-9956-ffa450edef68
2004-11-12 00:03:43 +00:00
Stephen Colebourne c970798db6 BoundedFifoBuffer/CircularFifoBuffer - Fix serialization to work in case where buffer serialized when full
bug 31433, from Kalle Gustafsson


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131822 13f79535-47bb-0310-9956-ffa450edef68
2004-10-16 22:23:41 +00:00
Stephen Colebourne 2a8f6db0cd Removing javadoc errors
bug 31519, from Olaf Krische


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131821 13f79535-47bb-0310-9956-ffa450edef68
2004-10-16 21:26:14 +00:00
Stephen Colebourne 2fd95f7526 Javadoc tweak, from Koji Sekiguchi
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131820 13f79535-47bb-0310-9956-ffa450edef68
2004-09-22 23:39:46 +00:00
Stephen Colebourne a162a7925e No longer uses an exception in normal processing
Bug 30497, reported by John Tal


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131819 13f79535-47bb-0310-9956-ffa450edef68
2004-09-22 23:35:03 +00:00
Stephen Colebourne fe0a89a0bb Javadoc tweaks, bug 30191
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131818 13f79535-47bb-0310-9956-ffa450edef68
2004-09-22 23:16:48 +00:00
Stephen Colebourne 079c661ea4 Add method putAll to put an array of key/value pairs into a map
Bug 30882, suggested by Rafael U. C. Afonso


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131817 13f79535-47bb-0310-9956-ffa450edef68
2004-09-22 23:09:54 +00:00
Stephen Colebourne a324ca7a63 Add method putAll to put an array of key/value pairs into a map
Bug 30882, suggested by Rafael U. C. Afonso


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131816 13f79535-47bb-0310-9956-ffa450edef68
2004-09-22 23:03:50 +00:00
Stephen Colebourne ee2a47a0ef Add extra test case to clarify bug 30408
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131814 13f79535-47bb-0310-9956-ffa450edef68
2004-08-03 18:20:41 +00:00
Stephen Colebourne 228637706a Fix scope to allow sub list to be subclassed
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131813 13f79535-47bb-0310-9956-ffa450edef68
2004-07-29 22:28:57 +00:00
Stephen Colebourne 3ae470ee28 CollectionUtils.addIgnoreNull new method
bug 30020, from Rafael U. C. Afonso


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131811 13f79535-47bb-0310-9956-ffa450edef68
2004-07-17 21:38:33 +00:00
Stephen Colebourne df3509d391 Javadoc safeAddToMap
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131810 13f79535-47bb-0310-9956-ffa450edef68
2004-07-17 21:23:59 +00:00
Stephen Colebourne 7da91cadc4 Add LoopingListIterator
bug 30166


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131809 13f79535-47bb-0310-9956-ffa450edef68
2004-07-17 21:08:05 +00:00
Stephen Colebourne 487621cb99 Add LoopingListIterator
bug 30166, from Eric Crampton


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131808 13f79535-47bb-0310-9956-ffa450edef68
2004-07-17 21:02:47 +00:00
Stephen Colebourne 27bc1f9d45 Enable compiliation under JDK1.5
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131803 13f79535-47bb-0310-9956-ffa450edef68
2004-06-26 10:00:42 +00:00
Stephen Colebourne ac06284e5a Fix FastArrayList iterator to work in thread-safe environments
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131802 13f79535-47bb-0310-9956-ffa450edef68
2004-06-23 21:41:49 +00:00
Stephen Colebourne f71a560c8a Add missing since tag on new constructor
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131798 13f79535-47bb-0310-9956-ffa450edef68
2004-06-22 21:54:35 +00:00
Stephen Colebourne d3697544ee Add extends clause to ensure binary compatibility of ReferenceMap
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131796 13f79535-47bb-0310-9956-ffa450edef68
2004-06-22 21:42:12 +00:00
Stephen Colebourne cbfd9aba68 Handle multiple keys better,
bug reported by Wolfgang Hoschek


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131794 13f79535-47bb-0310-9956-ffa450edef68
2004-06-21 23:39:25 +00:00
Stephen Colebourne 57a6f158f4 Add test case for DualTreeBidiMap sort order
bug 29519, from Jonas Van Poucke


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131792 13f79535-47bb-0310-9956-ffa450edef68
2004-06-21 22:30:05 +00:00
Stephen Colebourne 46fd2cb394 Test DualTreeBidiMap with comparator
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131789 13f79535-47bb-0310-9956-ffa450edef68
2004-06-11 23:29:07 +00:00
Stephen Colebourne b03a471292 Fix bug in DualBidiMaps caused by bad design of createMap method
bug 29519


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131788 13f79535-47bb-0310-9956-ffa450edef68
2004-06-11 23:27:37 +00:00
Stephen Colebourne c39712cc37 Update for 3.1 release
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131787 13f79535-47bb-0310-9956-ffa450edef68
2004-06-10 23:24:45 +00:00
Stephen Colebourne 730d3e5569 Fix copy constructor to work on JDK1.3
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131784 13f79535-47bb-0310-9956-ffa450edef68
2004-06-09 22:11:54 +00:00
Stephen Colebourne 27b695d55c Fix test cases to avoid dependency on DefaultMapEntry
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131780 13f79535-47bb-0310-9956-ffa450edef68
2004-06-07 23:14:40 +00:00
Stephen Colebourne 328e867f22 Add since tags
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131779 13f79535-47bb-0310-9956-ffa450edef68
2004-06-07 22:14:42 +00:00
Stephen Colebourne f123eb4877 Inline constant, rename getter and add since tags
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131778 13f79535-47bb-0310-9956-ffa450edef68
2004-06-07 22:13:53 +00:00
Stephen Colebourne a16728cd30 Add new public constructor to ListOrderedMap
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131777 13f79535-47bb-0310-9956-ffa450edef68
2004-06-07 21:51:39 +00:00
Stephen Colebourne cb39538c27 Fix ListOrderedSet to add new factory and direct constructor
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131776 13f79535-47bb-0310-9956-ffa450edef68
2004-06-07 21:42:12 +00:00
Stephen Colebourne e81125154e Javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131775 13f79535-47bb-0310-9956-ffa450edef68
2004-06-07 21:00:58 +00:00
Stephen Colebourne b72b6f471c Improve capacity handling and checks for large maps
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131773 13f79535-47bb-0310-9956-ffa450edef68
2004-06-04 23:27:30 +00:00
Stephen Colebourne f98c8827f6 Reinstate FixedSizeSortedMap superclass to avoid binary incompatibility
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131771 13f79535-47bb-0310-9956-ffa450edef68
2004-06-03 22:26:52 +00:00
Stephen Colebourne 457467bbc4 Make decorator classes serializable, bug 18815
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131769 13f79535-47bb-0310-9956-ffa450edef68
2004-06-03 22:02:13 +00:00
Stephen Colebourne 3bdfa558f2 Make buffers serializable
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131767 13f79535-47bb-0310-9956-ffa450edef68
2004-06-02 23:12:45 +00:00
Stephen Colebourne e00f903d7e Make decorator classes serializable, bug 18815
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131766 13f79535-47bb-0310-9956-ffa450edef68
2004-06-02 22:15:02 +00:00
Stephen Colebourne e96040f146 Make serializable
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131765 13f79535-47bb-0310-9956-ffa450edef68
2004-06-02 22:00:47 +00:00