Commit Graph

2827 Commits

Author SHA1 Message Date
Thomas Neidhart ffe13cfcca Add abstract class to simplify creation of MultiSet implementations, needed for MultiValuedMap; additional cleanup.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1715563 13f79535-47bb-0310-9956-ffa450edef68
2015-11-21 20:13:35 +00:00
Thomas Neidhart 52372e8f2b Fix checkstyle warnings, add missing AL header.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1715492 13f79535-47bb-0310-9956-ffa450edef68
2015-11-21 10:09:31 +00:00
Thomas Neidhart 7d2507ee16 Fix apache license header.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1715490 13f79535-47bb-0310-9956-ffa450edef68
2015-11-21 09:52:05 +00:00
Thomas Neidhart c64fb87ebe Add security report.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1715489 13f79535-47bb-0310-9956-ffa450edef68
2015-11-21 09:51:39 +00:00
Thomas Neidhart 313babb6e2 Add 3.2.2 changes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1715488 13f79535-47bb-0310-9956-ffa450edef68
2015-11-21 09:51:19 +00:00
Thomas Neidhart b2b8f4adc5 [COLLECTIONS-580] Do not use InstantiateFactory anymore for MultiValuedMaps: different MultiValuedMap implementations are now fully typed for the used underlying map and value collection class being used. This has pros and cons, but it is certainly safer to do it that way.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1715302 13f79535-47bb-0310-9956-ffa450edef68
2015-11-19 23:08:01 +00:00
Thomas Neidhart ccda2db161 Add toString method in AbstractMultiValuedMap#KeysMultiSet.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1714708 13f79535-47bb-0310-9956-ffa450edef68
2015-11-16 23:09:01 +00:00
Thomas Neidhart 8ed80d9d68 Fix size calculation of entrySet in MultiSet.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1714707 13f79535-47bb-0310-9956-ffa450edef68
2015-11-16 23:08:26 +00:00
Thomas Neidhart 76f0eece9e Fix javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1714484 13f79535-47bb-0310-9956-ffa450edef68
2015-11-15 18:20:41 +00:00
Thomas Neidhart ebd02bb33a Add changelog entry for COLLECTIONS-551.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1714464 13f79535-47bb-0310-9956-ffa450edef68
2015-11-15 15:13:13 +00:00
Thomas Neidhart a5e5edfef6 Added changelog entry.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1714463 13f79535-47bb-0310-9956-ffa450edef68
2015-11-15 15:08:39 +00:00
Thomas Neidhart 59c6e94d52 [COLLECTIONS-567] Add missing unit tests, fix problems with remove method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1714462 13f79535-47bb-0310-9956-ffa450edef68
2015-11-15 15:04:19 +00:00
Thomas Neidhart e58963b51e [COLLECTIONS-567] Add MultiSetUtils, fix typos, remove references to bag.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1714424 13f79535-47bb-0310-9956-ffa450edef68
2015-11-15 10:06:16 +00:00
Thomas Neidhart 78d47d4d09 [COLLECTIONS-580] Clarify class javadoc of utils that only unsafe classes are serializable anymore.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1714362 13f79535-47bb-0310-9956-ffa450edef68
2015-11-14 20:38:02 +00:00
Thomas Neidhart 3eee44cf63 [COLLECTIONS-580] Add validation to MultiValueMap#ReflectionFactory: only Collection classes are support.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1714360 13f79535-47bb-0310-9956-ffa450edef68
2015-11-14 20:24:42 +00:00
Thomas Neidhart 7a72b1983c Update 3.2.2 release notes site + add link to release notes in navigation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1714331 13f79535-47bb-0310-9956-ffa450edef68
2015-11-14 14:16:00 +00:00
Thomas Neidhart 0d1c6168f4 Temporarily disable tests for new multi-valued maps wrt serialization until support is restored.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1714322 13f79535-47bb-0310-9956-ffa450edef68
2015-11-14 13:38:05 +00:00
Thomas Neidhart eaea717cc6 Update pom with latest release.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1714321 13f79535-47bb-0310-9956-ffa450edef68
2015-11-14 13:37:36 +00:00
Thomas Neidhart d153d6bffd Update doap file with latest release information.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1714320 13f79535-47bb-0310-9956-ffa450edef68
2015-11-14 13:37:20 +00:00
Thomas Neidhart adf63bc15a Update site for latest 3.2.2 release.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1714319 13f79535-47bb-0310-9956-ffa450edef68
2015-11-14 13:37:02 +00:00
Thomas Neidhart da1a5fe00d [COLLECTIONS-580] Remove serialization tests for classes which are not serializable anymore.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1714318 13f79535-47bb-0310-9956-ffa450edef68
2015-11-14 13:24:24 +00:00
Thomas Neidhart e585cd0433 [COLLECTIONS-580] Removed serialization support for the identified unsafe classes in the collections4 branch.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1714262 13f79535-47bb-0310-9956-ffa450edef68
2015-11-13 20:08:45 +00:00
Thomas Neidhart 3b691712fd [COLLECTIONS-577] Add additional test cases for fixed problems with prefixMap. Thanks to Chris Duncan
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1705637 13f79535-47bb-0310-9956-ffa450edef68
2015-09-28 09:42:00 +00:00
Thomas Neidhart f8bd75d37c [COLLECTIONS-576] Fix de-serialization of MultiKey subclasses: hashcode was not re-calculated. Thanks to Stephan Roch.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1705620 13f79535-47bb-0310-9956-ffa450edef68
2015-09-28 08:53:44 +00:00
Sebastian Bazley 3a9c4718ee Move assembly to standard location
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1696445 13f79535-47bb-0310-9956-ffa450edef68
2015-08-18 15:17:23 +00:00
Sebastian Bazley c87eeaa4f7 CP37 => CP38
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1688413 13f79535-47bb-0310-9956-ffa450edef68
2015-06-30 09:53:30 +00:00
Thomas Neidhart 92406348db Clarify that returned uniqueSet only supports removal operations.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1688313 13f79535-47bb-0310-9956-ffa450edef68
2015-06-29 21:31:56 +00:00
Thomas Neidhart 0db8c22eb1 [COLLECTIONS-567] Add Predicated and Synchronized decorators.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1688308 13f79535-47bb-0310-9956-ffa450edef68
2015-06-29 21:28:54 +00:00
Thomas Neidhart 74199bc2ba Add reference to parent ticket.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1688303 13f79535-47bb-0310-9956-ffa450edef68
2015-06-29 20:41:17 +00:00
Thomas Neidhart 3ac225d9a5 Fix checkstyle warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1686950 13f79535-47bb-0310-9956-ffa450edef68
2015-06-22 21:51:07 +00:00
Thomas Neidhart 9314193c8c [COLLECTIONS-572] Add set operations to SetUtils.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1686948 13f79535-47bb-0310-9956-ffa450edef68
2015-06-22 21:49:27 +00:00
Thomas Neidhart 90509ce84e Add indexOf methods to IterableUtils and IteratorUtils, replace last occurrence of ArrayStack with ArrayDeque.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1686921 13f79535-47bb-0310-9956-ffa450edef68
2015-06-22 19:48:47 +00:00
Thomas Neidhart 68bbd2cf4a [COLLECTIONS-570] Consistently use a NullPointerException if a required input is null.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1686855 13f79535-47bb-0310-9956-ffa450edef68
2015-06-22 13:00:27 +00:00
Thomas Neidhart 0acb702f3e [COLLECTIONS-571] Deprecate CollectionUtils.{synchronized,unmodifiable}Collection.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1686826 13f79535-47bb-0310-9956-ffa450edef68
2015-06-22 10:17:20 +00:00
Thomas Neidhart 9f363c0dae Fix checkstyle warnings, cleanup IteratorUtils, fix throws clauses.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1685902 13f79535-47bb-0310-9956-ffa450edef68
2015-06-16 20:13:13 +00:00
Thomas Neidhart 68b92abce7 Revert to returning null.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1685310 13f79535-47bb-0310-9956-ffa450edef68
2015-06-13 19:38:32 +00:00
Thomas Neidhart 1954a51bb5 Continue review of multimap package.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1685299 13f79535-47bb-0310-9956-ffa450edef68
2015-06-13 18:27:11 +00:00
Thomas Neidhart 4f5a854b28 Continue review of MultiValuedMap interface and implementations: code style and formatting, use NullPointerException for null arguments, use MultiSet instead of Bag.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1684983 13f79535-47bb-0310-9956-ffa450edef68
2015-06-11 22:07:08 +00:00
Thomas Neidhart fb08d55cbe Add unmodifiable multiset decorator, abstract base test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1684982 13f79535-47bb-0310-9956-ffa450edef68
2015-06-11 22:05:50 +00:00
Thomas Neidhart eced8829bf [COLLECTIONS-567] Add interface / skeleton code and first implementation of a MultiSet.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1684969 13f79535-47bb-0310-9956-ffa450edef68
2015-06-11 20:30:39 +00:00
Thomas Neidhart f188400b22 Fix comments.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1684859 13f79535-47bb-0310-9956-ffa450edef68
2015-06-11 11:57:24 +00:00
Thomas Neidhart bb7ddb5396 Add missing svn:keywords.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1684264 13f79535-47bb-0310-9956-ffa450edef68
2015-06-08 20:06:29 +00:00
Thomas Neidhart b653182a8a Add ComparatorUtilsTest.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1684262 13f79535-47bb-0310-9956-ffa450edef68
2015-06-08 20:05:37 +00:00
Thomas Neidhart be1e92fa79 Complete unit tests for FluentIterable, fix exception for toArray.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1684252 13f79535-47bb-0310-9956-ffa450edef68
2015-06-08 19:38:26 +00:00
Thomas Neidhart f4693f0adf Clarify null argument behavior of IterableUtils and FluentIterable: decorators do not accept null values, whereas utility methods are null-safe wrt Iterable instances.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1684147 13f79535-47bb-0310-9956-ffa450edef68
2015-06-08 11:08:42 +00:00
Thomas Neidhart a049083c8f Rename cardinatlity to frequency, apply to forEach, add empty and singleton methods to FluentIterable.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1684123 13f79535-47bb-0310-9956-ffa450edef68
2015-06-08 08:53:26 +00:00
Thomas Neidhart fd7506f4d7 Add missing @Override tags.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683951 13f79535-47bb-0310-9956-ffa450edef68
2015-06-06 20:19:03 +00:00
Thomas Neidhart 80b08f8c3a Move cardinality method, rename frequency to countMatches.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683914 13f79535-47bb-0310-9956-ffa450edef68
2015-06-06 14:29:12 +00:00
Thomas Neidhart ed1d755bab Add emptyIfNull method, simplification.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683900 13f79535-47bb-0310-9956-ffa450edef68
2015-06-06 12:16:11 +00:00
Thomas Neidhart 6c8caea331 [COLLECTIONS-551] Move forAllButLastDo methods, add unmodifiableIterable.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683897 13f79535-47bb-0310-9956-ffa450edef68
2015-06-06 12:00:46 +00:00