protonpack icon indicating copy to clipboard operation
protonpack copied to clipboard

Stream utilities for Java 8

Results 6 protonpack issues
Sort by recently updated
recently updated
newest added

…used Since Java 16 Stream has a toList method too, so the compiler is stumped on the original line ` return of(collect(groupingBy(Entry::getKey, mapping(Entry::getValue, toList()))));` Helped by adding `Collectors`

Hi, This is a helpful shortcut to filter entries without dealing with the extraction of key or value. I know it adds to the maintenance but it is a common...

Maybe i am using it wrongly, but I guess it should be useful to transform values `Indexed => Indexed` in a more natural way. I have a sequential `Stream`, I...

It would be more idiomatic to map in a stream a indexed value this way. Closes #47

Bumps [junit](https://github.com/junit-team/junit4) from 4.13 to 4.13.1. Release notes Sourced from junit's releases. JUnit 4.13.1 Please refer to the release notes for details. Changelog Sourced from junit's changelog. Summary of changes...

dependencies

Method StreamUtil.interleaving() seems to be broken in v1.14. I keep getting this exception: ``` java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String; at com.codepoetics.protonpack.InterleavingSpliterator.tryAdvance(InterleavingSpliterator.java:48) at java.util.Spliterator.forEachRemaining(Spliterator.java:326) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) at...