Skip to content

Commit

Permalink
Implement Collectors2 with makeString and conversion methods for Ecli…
Browse files Browse the repository at this point in the history
…pse Collections containers.
  • Loading branch information
Donald Raab authored and Donald Raab committed May 26, 2016
1 parent 0a03126 commit fc01be7
Show file tree
Hide file tree
Showing 6 changed files with 1,566 additions and 7 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTE_DRAFT.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ New Functionality
* Implemented summarizeInt/Float/Long/Double({Int/Float/Long/Double}Function) on RichIterable
* Implemented summaryStatistics() on Primitive Iterables.
* Implemented reduce(BinaryOperator), reduceInPlace(Collector) and reduceInPlace(Supplier, BiConsumer) on RichIterable.
* Implemented Collectors2 with makeString, toList, toSet, toBag, toStack, toMap, toBiMap, groupBy, to{List/Set/Bag}Multimap.

Optimizations
-------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,10 @@ public interface MutableBag<T>

@Override
<V> MutableBag<V> flatCollect(Function<? super T, ? extends Iterable<V>> function);

/**
* @since 8.0
*/
@Override
ImmutableBag<T> toImmutable();
}
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,4 @@ public interface UnsortedBag<T> extends Bag<T>

@Override
<V> UnsortedBagMultimap<V, T> groupByEach(Function<? super T, ? extends Iterable<V>> function);

/**
* Converts the UnsortedBag to an ImmutableBag. If the bag is immutable, it returns itself.
*/
@Override
ImmutableBag<T> toImmutable();
}
Loading

0 comments on commit fc01be7

Please sign in to comment.