Commit Graph

3075 Commits

Author SHA1 Message Date
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
Thomas Neidhart 6937f0de2a Fix javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683020 13f79535-47bb-0310-9956-ffa450edef68
2015-06-01 22:42:18 +00:00
Thomas Neidhart ad618b7af9 Deprecate MultiValueMap and MultiMap, replaced by MultiValuedMap.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683019 13f79535-47bb-0310-9956-ffa450edef68
2015-06-01 22:41:56 +00:00
Thomas Neidhart 7727c1cc08 Deprecate MultiValueMap and MultiMap, replaced by MultiValuedMap.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683018 13f79535-47bb-0310-9956-ffa450edef68
2015-06-01 22:41:31 +00:00
Thomas Neidhart e3edcb9349 Fix javadoc problem.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683016 13f79535-47bb-0310-9956-ffa450edef68
2015-06-01 22:40:56 +00:00
Thomas Neidhart 0ec653ec42 Update unit test after method changes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683014 13f79535-47bb-0310-9956-ffa450edef68
2015-06-01 22:28:43 +00:00
Thomas Neidhart 6b323f0f53 First review of MultiValuedMap: formatting, throw NullPointerException for null inputs.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683013 13f79535-47bb-0310-9956-ffa450edef68
2015-06-01 22:27:22 +00:00
Thomas Neidhart 1c0b6089f4 [COLLECTIONS-533] Revert incomplete implementation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683011 13f79535-47bb-0310-9956-ffa450edef68
2015-06-01 21:59:10 +00:00
Thomas Neidhart d4fbeefc52 Convert to Junit 4 tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683010 13f79535-47bb-0310-9956-ffa450edef68
2015-06-01 21:54:51 +00:00
Thomas Neidhart d684f950c4 [COLLECTIONS-551] First bunch of methods which take an Iterable/Iterator/Enumeration as input shall be moved to the appropriate Util classes. Mark existing methods in CollectionUtils as deprecated.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683009 13f79535-47bb-0310-9956-ffa450edef68
2015-06-01 21:53:01 +00:00
Thomas Neidhart 2eb1586bf7 [COLLECTIONS-557] Added support to specify the initial size of a LRUMap. Thanks to Philippe Mouawad.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682859 13f79535-47bb-0310-9956-ffa450edef68
2015-06-01 10:12:13 +00:00
Thomas Neidhart 8b04e57194 Make FluentIterable method covariant.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682776 13f79535-47bb-0310-9956-ffa450edef68
2015-05-31 19:31:15 +00:00
Thomas Neidhart b3fd256017 Use long instead of int.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682774 13f79535-47bb-0310-9956-ffa450edef68
2015-05-31 19:08:47 +00:00
Thomas Neidhart 121dba83e0 Remove obsolete TODO.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682771 13f79535-47bb-0310-9956-ffa450edef68
2015-05-31 18:51:15 +00:00
Thomas Neidhart 4c818fb356 [COLLECTIONS-518] Revert and postpone change to 5.0.TODO.txt
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682770 13f79535-47bb-0310-9956-ffa450edef68
2015-05-31 18:50:54 +00:00
Thomas Neidhart 159b36e66e [COLLECTIONS-565] Add decorators for NavigableSet interface.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682768 13f79535-47bb-0310-9956-ffa450edef68
2015-05-31 18:35:18 +00:00
Thomas Neidhart 8b328d838e Remove accidental commit.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682423 13f79535-47bb-0310-9956-ffa450edef68
2015-05-29 11:34:10 +00:00
Thomas Neidhart 6ed868d4d0 Rename SetUtils.identityHashSet to SetUtils.newIdentityHashSet to better reflect that it returns a new instance.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682416 13f79535-47bb-0310-9956-ffa450edef68
2015-05-29 10:59:39 +00:00
Thomas Neidhart 1a3337262c Simplify.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682394 13f79535-47bb-0310-9956-ffa450edef68
2015-05-29 08:39:06 +00:00
Thomas Neidhart fe95eebf7d Simplify.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682393 13f79535-47bb-0310-9956-ffa450edef68
2015-05-29 08:35:51 +00:00
Thomas Neidhart 71d8237307 Update default properties.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682217 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 11:55:37 +00:00
Thomas Neidhart ba72be98b6 Fix checkstyle warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682211 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 11:16:44 +00:00
Thomas Neidhart b1e21c8a6e Add unit test for ZippingIterator, add factory methods to IteratorUtils, add changelog entry.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682196 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 09:58:09 +00:00
Thomas Neidhart c193f6556f Add unit test for SkippingIterator, fix bug.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682188 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 09:42:01 +00:00
Thomas Neidhart 83e81cb270 Update developer list.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682179 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 09:04:56 +00:00
Thomas Neidhart 9cb3de6713 Add apply method to FluentIterable.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682126 13f79535-47bb-0310-9956-ffa450edef68
2015-05-27 21:34:35 +00:00
Thomas Neidhart e57282bd9c Add collating, zipping, reversing methods to FluentIterable, add ZippingIterator.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1682121 13f79535-47bb-0310-9956-ffa450edef68
2015-05-27 21:18:19 +00:00
Thomas Neidhart db0582a60e Add changelog entries for COLLECTIONS-464
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1681858 13f79535-47bb-0310-9956-ffa450edef68
2015-05-26 20:46:25 +00:00
Thomas Neidhart eb5e737f8f Add javadoc, simplify IterableUtils.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1681857 13f79535-47bb-0310-9956-ffa450edef68
2015-05-26 20:46:09 +00:00
Thomas Neidhart 27a92653a0 [COLLECTIONS-464] Add first version of a FluentIterable implementation, cleanup recently toString methods in IterableUtils, add SkippingIterator and additional methods to IteratorUtils and IterableUtils.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1681783 13f79535-47bb-0310-9956-ffa450edef68
2015-05-26 15:54:09 +00:00
Thomas Neidhart 1918bb005e [COLLECTIONS-556] Added method SetUtils.identityHashSet.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1681635 13f79535-47bb-0310-9956-ffa450edef68
2015-05-25 19:18:50 +00:00
Thomas Neidhart 0e11402b98 [COLLECTIONS-562] Upgrade minimum java requirement to Java 6. Replace ArrayStack with ArrayDeque.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1681434 13f79535-47bb-0310-9956-ffa450edef68
2015-05-24 10:49:58 +00:00
Thomas Neidhart 289e7a769e javadoc improvements to collect methods.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1681429 13f79535-47bb-0310-9956-ffa450edef68
2015-05-24 09:54:09 +00:00
Sebastian Bazley 140f9c1e28 Each Version must be in its own release section
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1678361 13f79535-47bb-0310-9956-ffa450edef68
2015-05-08 14:28:59 +00:00
Benedikt Ritter 12a803b8d9 More and more contributors coming via github - replace README.txt with README.md and add CONTRIBUTING.md
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1672138 13f79535-47bb-0310-9956-ffa450edef68
2015-04-08 18:44:36 +00:00
Thomas Neidhart ccad4919ac Add missing Since tag.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1671835 13f79535-47bb-0310-9956-ffa450edef68
2015-04-07 12:48:37 +00:00
Thomas Neidhart df22e0c5d2 [COLLECTIONS-543] Do not override equals and hashCode for abstract collections.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1671833 13f79535-47bb-0310-9956-ffa450edef68
2015-04-07 12:29:46 +00:00
Thomas Neidhart 0f4a98cfe1 [COLLECTIONS-395] Added LRUMap#get(Object, boolean) to query the map without affecting the lru order. Thanks to David Hawthorne.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1671832 13f79535-47bb-0310-9956-ffa450edef68
2015-04-07 12:25:18 +00:00
Thomas Neidhart 640670bd86 [COLLECTIONS-558] Change return type of ListOrderedSet#remove(int) to the generic type parameter. Thanks to Felix Rabe
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1669140 13f79535-47bb-0310-9956-ffa450edef68
2015-03-25 16:02:45 +00:00
Thomas Neidhart ae97a498d1 Remove @Override annotation on interface.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1669139 13f79535-47bb-0310-9956-ffa450edef68
2015-03-25 16:01:54 +00:00
Thomas Neidhart 2ff3914b33 Update to latest parent.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1660705 13f79535-47bb-0310-9956-ffa450edef68
2015-02-18 19:35:29 +00:00
Thomas Neidhart 583d96b089 [COLLECTIONS-555] Added clarification to TreeBag#add(Object) wrt null arguments. Thanks to M Kim.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1660515 13f79535-47bb-0310-9956-ffa450edef68
2015-02-17 22:02:59 +00:00