Skip to content

Instantly share code, notes, and snippets.

@chtseac
chtseac / __.java
Last active December 11, 2020 02:57
Wrapping stream to improve the .collect experience
import java.util.Collection;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
import java.util.Spliterator;
import java.util.function.BiConsumer;
import java.util.function.BiFunction;
import java.util.function.BinaryOperator;
import java.util.function.Consumer;