![JAR search and dependency download from the Maven repository](/logo.png)
no.finn.lambdacompanion.Streams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lambda-companion Show documentation
Show all versions of lambda-companion Show documentation
Functional structures and utilities for Java 8 and lambdas
package no.finn.lambdacompanion;
import java.util.Collection;
import java.util.Map;
import java.util.stream.Collector;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public final class Streams {
public static ExtendedStream stream(final Collection collection) {
return stream(collection.stream());
}
public static ExtendedStream stream(final Stream stream) {
return ExtendedStream.of(stream);
}
public static , K, U> Collector> entryToMap() {
return Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy