
no.mnemonic.commons.utilities.lambda.TryStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utilities Show documentation
Show all versions of utilities Show documentation
Simple stand-alone utility functions
The newest version!
package no.mnemonic.commons.utilities.lambda;
import java.util.stream.Collector;
import java.util.stream.IntStream;
import java.util.stream.LongStream;
import java.util.stream.Stream;
/**
* Simplified stream interface accepting functions and consumers with checked exception signature.
*/
public interface TryStream {
TryStream map(ExceptionalFunction super T, ? extends R, E> mapper);
TryStream filter(ExceptionalPredicate super T, E> predicate);
R collect(Collector super T, A, R> collector) throws E;
void forEach(ExceptionalConsumer super T, E> consumer) throws E;
Stream stream() throws E;
LongStream mapToLong(ExceptionalFunction super T, Long, E> function) throws E;
IntStream mapToInt(ExceptionalFunction super T, Integer, E> function) throws E;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy