Commit Graph

383 Commits

Author SHA1 Message Date
Thomas Neidhart 81a4b4ace7 Cleanup.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1540639 13f79535-47bb-0310-9956-ffa450edef68
2013-11-11 08:54:12 +00:00
Thomas Neidhart 648a21eb5d [COLLECTIONS-494] Move Equator interface to base package.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1540567 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 22:19:29 +00:00
Thomas Neidhart dcfe8f4a37 Remove spurious hashCode method, which does the same as the inherited one from AbstractMap with the only different that the iterator is sorted, which does not make a difference at all.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1539955 13f79535-47bb-0310-9956-ffa450edef68
2013-11-08 09:13:30 +00:00
Thomas Neidhart e8dfe7c8ca Add release-notes to binary distribution.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1539954 13f79535-47bb-0310-9956-ffa450edef68
2013-11-08 09:00:39 +00:00
Thomas Neidhart 99f82c97b4 Add missing since tag.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1538966 13f79535-47bb-0310-9956-ffa450edef68
2013-11-05 12:25:43 +00:00
Thomas Neidhart 894fd838fb [COLLECTIONS-488] Added CollectionUtils.matchesAll(Iterable, Predicate), thanks to Josh Cain.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1538935 13f79535-47bb-0310-9956-ffa450edef68
2013-11-05 10:50:35 +00:00
Thomas Neidhart 4fca8268a9 [COLLECTIONS-485] Added wildcards to copy-constructors and unmodifiable decorators / iterators, thanks to Hollis Waite.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1533984 13f79535-47bb-0310-9956-ffa450edef68
2013-10-20 21:12:51 +00:00
Thomas Neidhart ba1e716261 [COLLECTIONS-481] Also change to varargs parameter in CompositeCollection.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1521617 13f79535-47bb-0310-9956-ffa450edef68
2013-09-10 20:00:25 +00:00
Thomas Neidhart a4d444d9de [COLLECTIONS-480] Narrow return type of BidiMap.values to Set. Thanks to Hollis Waite.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1521272 13f79535-47bb-0310-9956-ffa450edef68
2013-09-09 20:10:39 +00:00
Thomas Neidhart c151913ae2 [COLLECTIONS-481] Use varargs parameter in CompositeSet.addComposited, fixed conflict resolution when using more than 1 Set as argument. Thanks to Hollis Waite.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1521262 13f79535-47bb-0310-9956-ffa450edef68
2013-09-09 19:38:49 +00:00
Thomas Neidhart 4951344fb2 [COLLECTIONS-475] Fixed conversion of timeout parameters in PassiveExpiringMap.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1503029 13f79535-47bb-0310-9956-ffa450edef68
2013-07-14 19:09:25 +00:00
Gary D. Gregory 719d0c5603 Rename CompliantBag to CollectionBag.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1500007 13f79535-47bb-0310-9956-ffa450edef68
2013-07-05 13:44:02 +00:00
Thomas Neidhart fe63f95fbf [COLLECTIONS-474] Added sanity checks, javadoc clarification, changelog entry.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1496190 13f79535-47bb-0310-9956-ffa450edef68
2013-06-24 20:04:16 +00:00
Sebastian Bazley 7df57879c9 COLLECTIONS-474 Exception in ListOrderedMap#putAll if map contains null values
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1496182 13f79535-47bb-0310-9956-ffa450edef68
2013-06-24 19:48:29 +00:00
Thomas Neidhart 6b41e50c2d Update build.xml based on the one from commons-lang: add additional test-jar target
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1495867 13f79535-47bb-0310-9956-ffa450edef68
2013-06-23 18:27:46 +00:00
Sebastian Bazley 680752e141 Constructors must not invoke overrideable methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1494333 13f79535-47bb-0310-9956-ffa450edef68
2013-06-18 21:59:21 +00:00
Thomas Neidhart 4f00c55389 [COLLECTIONS-455] Changed remaining fields in question to scope package private.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1494296 13f79535-47bb-0310-9956-ffa450edef68
2013-06-18 20:54:29 +00:00
Sebastian Bazley 3361a74940 array can no longer be null, and the setter is history
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1494282 13f79535-47bb-0310-9956-ffa450edef68
2013-06-18 20:09:15 +00:00
Thomas Neidhart 0cba84e103 [COLLECTIONS-473] Made field collection private and added setter for de-serialization.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1494280 13f79535-47bb-0310-9956-ffa450edef68
2013-06-18 20:07:04 +00:00
Thomas Neidhart 125c820e8d Revert varargs parameter to plain array as it breaks tests on jdk 1.5 and 1.6.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1494275 13f79535-47bb-0310-9956-ffa450edef68
2013-06-18 20:02:36 +00:00
Thomas Neidhart b1162d812e [COLLECTIONS-459] Made fields package private, as suggested.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1494267 13f79535-47bb-0310-9956-ffa450edef68
2013-06-18 19:35:36 +00:00
Thomas Neidhart a02dafa47d Remove todos related to privatizing fields -> keep it as is for now.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1493940 13f79535-47bb-0310-9956-ffa450edef68
2013-06-17 21:11:03 +00:00
Thomas Neidhart 7725a72c73 [COLLECTIONS-468] Added CompliantBag decorator which decorates another bag to comply with the Collection contract.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1493938 13f79535-47bb-0310-9956-ffa450edef68
2013-06-17 21:06:00 +00:00
Thomas Neidhart 1c8fbeaec2 Formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1493930 13f79535-47bb-0310-9956-ffa450edef68
2013-06-17 20:42:55 +00:00
Thomas Neidhart 68c0a80d17 [COLLECTIONS-459] Removed setArray methods in ArrayIterator and ObjectArrayIterator, made fields final if possible.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1493922 13f79535-47bb-0310-9956-ffa450edef68
2013-06-17 20:25:23 +00:00
Thomas Neidhart 20619b096c [COLLECTIONS-455] Remove todos: keep decorated object protected.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1493902 13f79535-47bb-0310-9956-ffa450edef68
2013-06-17 19:40:34 +00:00
Thomas Neidhart f9930aa9f3 Remove todo: types have been reviewed.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1493564 13f79535-47bb-0310-9956-ffa450edef68
2013-06-16 18:20:11 +00:00
Thomas Neidhart bf07b37e9a Fix link.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1493555 13f79535-47bb-0310-9956-ffa450edef68
2013-06-16 18:01:59 +00:00
Thomas Neidhart b1e8bcec97 Update assembly descriptor after moving of resources.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1493545 13f79535-47bb-0310-9956-ffa450edef68
2013-06-16 17:47:31 +00:00
Thomas Neidhart 136b96c803 Fix findbugs warning.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1493544 13f79535-47bb-0310-9956-ffa450edef68
2013-06-16 17:47:07 +00:00
Thomas Neidhart 0dee0324f6 Updates to tries: remove synchronized decorator, add javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1493523 13f79535-47bb-0310-9956-ffa450edef68
2013-06-16 15:56:35 +00:00
Thomas Neidhart 4a025d3f8e Refactor trie package: reduce interface by extending IterableSortedMap and only adding prefixMap method, remove all key analyzers but the StringKeyAnalyzer, refactor PatriciaTrie class by moving all remaining methods to AbstractPatriciaTrie and fixing the key type to String, integrating the test classes into the framework.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1492867 13f79535-47bb-0310-9956-ffa450edef68
2013-06-13 21:01:23 +00:00
Thomas Neidhart 83226e162d Refactor trie package: reduce interface by extending IterableSortedMap and only adding prefixMap method, remove all key analyzers but the StringKeyAnalyzer, refactor PatriciaTrie class by moving all remaining methods to AbstractPatriciaTrie and fixing the key type to String, integrating the test classes into the framework.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1492866 13f79535-47bb-0310-9956-ffa450edef68
2013-06-13 21:01:00 +00:00
Thomas Neidhart ed085d064c [COLLECTIONS-470] Renamed TransformedMap class in splitmap package to TransformedSplitMap.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1491944 13f79535-47bb-0310-9956-ffa450edef68
2013-06-11 20:29:22 +00:00
Thomas Neidhart 81e47470cc Further cleanup of trie package & interface, renamed AbstractTrie to AbstractBitwiseTrie, added TODOs.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1491621 13f79535-47bb-0310-9956-ffa450edef68
2013-06-10 22:05:38 +00:00
Thomas Neidhart 467d516b9c Cleanup of trie package.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1491615 13f79535-47bb-0310-9956-ffa450edef68
2013-06-10 21:46:19 +00:00
Thomas Neidhart edd64cfd82 [COLLECTIONS-472] Improved performance of AbstractMapBag#containsAll. Thanks to Adrian Nistor.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1491258 13f79535-47bb-0310-9956-ffa450edef68
2013-06-09 18:35:24 +00:00
Sebastian Bazley 8f5e319af8 A bit more Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1482645 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 23:52:09 +00:00
Thomas Neidhart 2e36e5e908 [COLLECTIONS-461] Added javadoc clarification to Put. Thanks to mbenson.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1482544 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 20:02:25 +00:00
Thomas Neidhart 3b57c46c76 Fix version tag
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1482539 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 19:52:43 +00:00
Thomas Neidhart cdacd4a987 [COLLECTIONS-460] Change IteratorChain to use a Queue internally.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1482514 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 18:36:12 +00:00
Thomas Neidhart 556ac8b0ad Fix javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1482073 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:09:40 +00:00
Thomas Neidhart a86de44927 Removed TODO, as the current API is fine imho: two versions, one for Iterable, one for Iterator.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1481606 13f79535-47bb-0310-9956-ffa450edef68
2013-05-12 16:58:49 +00:00
Thomas Neidhart 709aa7bf9c [COLLECTIONS-466] Replace Collection with Iterable where applicable in CollectionUtils.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1481605 13f79535-47bb-0310-9956-ffa450edef68
2013-05-12 16:56:26 +00:00
Thomas Neidhart 1194c69fb1 Formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1481598 13f79535-47bb-0310-9956-ffa450edef68
2013-05-12 16:28:28 +00:00
Thomas Neidhart 1fe64733a2 [COLLECTIONS-466] Replaced Collection with Iterable in MapUtils.populateMap methods.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1480230 13f79535-47bb-0310-9956-ffa450edef68
2013-05-08 11:35:20 +00:00
Thomas Neidhart 54bbca8904 [COLLECTIONS-463] Add PushbackIterator. Thanks to Andy Seaborne.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1479763 13f79535-47bb-0310-9956-ffa450edef68
2013-05-07 05:28:39 +00:00
Thomas Neidhart d16f842887 Document the reason chainedIterator(Iterator, Iterator) still remains.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1479761 13f79535-47bb-0310-9956-ffa450edef68
2013-05-07 05:19:57 +00:00
Thomas Neidhart 73dcea01b1 [COLLECTIONS-462] Added PeekingIterator. Thanks to Andy Seaborne
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1479760 13f79535-47bb-0310-9956-ffa450edef68
2013-05-07 05:12:06 +00:00
Thomas Neidhart 278eed3e1f Add again chainedIterator method with 2 iterators to avoid generics warning in client code.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1479682 13f79535-47bb-0310-9956-ffa450edef68
2013-05-06 19:12:25 +00:00