Commit Graph

2816 Commits

Author SHA1 Message Date
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
Thomas Neidhart 5214f66618 [COLLECTIONS-551] Move partition methods from CollectionUtils to IterableUtils. Make method consistent: do not allow null predicates, return the same for a null iterable as for an empty one.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683894 13f79535-47bb-0310-9956-ffa450edef68
2015-06-06 08:54:54 +00:00
Thomas Neidhart ed39f93348 Add more tests, add emptyIterable() method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683759 13f79535-47bb-0310-9956-ffa450edef68
2015-06-05 14:06:47 +00:00
Thomas Neidhart 8d78483013 Fix checkstyle warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683722 13f79535-47bb-0310-9956-ffa450edef68
2015-06-05 12:00:32 +00:00
Thomas Neidhart c33d3969a3 Add more FluentIterable tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683688 13f79535-47bb-0310-9956-ffa450edef68
2015-06-05 09:41:04 +00:00
Thomas Neidhart 2403bf6543 Fix checkstyle warning.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683648 13f79535-47bb-0310-9956-ffa450edef68
2015-06-04 21:33:43 +00:00
Thomas Neidhart bafb7096f0 Minor changes to FluentIterable, added toList to IterableUtils, added first FluentIterable tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683646 13f79535-47bb-0310-9956-ffa450edef68
2015-06-04 21:12:09 +00:00
Thomas Neidhart d1270edd92 Formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683632 13f79535-47bb-0310-9956-ffa450edef68
2015-06-04 20:38:03 +00:00
Thomas Neidhart 73d69dfe86 [COLLECTIONS-566] Use natural ordering in IteratorUtils#collate when the provided comparator is null.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683631 13f79535-47bb-0310-9956-ffa450edef68
2015-06-04 20:36:25 +00:00
Thomas Neidhart 7c99c6234c Fix checkstyle warning.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683576 13f79535-47bb-0310-9956-ffa450edef68
2015-06-04 15:23:56 +00:00
Thomas Neidhart 2d00ed4676 [COLLECTIONS-551] Move more methods from CollectionUtils.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683492 13f79535-47bb-0310-9956-ffa450edef68
2015-06-04 08:52:55 +00:00
Thomas Neidhart ee1a5f5639 Catch correct exception.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683041 13f79535-47bb-0310-9956-ffa450edef68
2015-06-02 04:59:59 +00:00