org.jobrunr.storage.nosql.redis.AbstractPipelinedStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jobrunr Show documentation
Show all versions of jobrunr Show documentation
An easy way to perform background processing on the JVM. Backed by persistent storage. Open and free for commercial use.
package org.jobrunr.storage.nosql.redis;
import java.util.Comparator;
import java.util.Iterator;
import java.util.Optional;
import java.util.Spliterator;
import java.util.function.*;
import java.util.stream.*;
public abstract class AbstractPipelinedStream implements Stream {
protected final Stream initialStream;
protected AbstractPipelinedStream(Stream initialStream) {
this.initialStream = initialStream;
}
@Override
public Stream filter(Predicate super T> predicate) {
return initialStream.filter(predicate);
}
@Override
public Stream map(Function super T, ? extends R> function) {
return initialStream.map(function);
}
@Override
public IntStream mapToInt(ToIntFunction super T> toIntFunction) {
return initialStream.mapToInt(toIntFunction);
}
@Override
public LongStream mapToLong(ToLongFunction super T> toLongFunction) {
return initialStream.mapToLong(toLongFunction);
}
@Override
public DoubleStream mapToDouble(ToDoubleFunction super T> toDoubleFunction) {
return initialStream.mapToDouble(toDoubleFunction);
}
@Override
public Stream flatMap(Function super T, ? extends Stream extends R>> function) {
return initialStream.flatMap(function);
}
@Override
public IntStream flatMapToInt(Function super T, ? extends IntStream> function) {
return initialStream.flatMapToInt(function);
}
@Override
public LongStream flatMapToLong(Function super T, ? extends LongStream> function) {
return initialStream.flatMapToLong(function);
}
@Override
public DoubleStream flatMapToDouble(Function super T, ? extends DoubleStream> function) {
return initialStream.flatMapToDouble(function);
}
@Override
public Stream distinct() {
return initialStream.distinct();
}
@Override
public Stream sorted() {
return initialStream.sorted();
}
@Override
public Stream sorted(Comparator super T> comparator) {
return initialStream.sorted(comparator);
}
@Override
public Stream peek(Consumer super T> consumer) {
return initialStream.peek(consumer);
}
@Override
public void forEach(Consumer super T> consumer) {
initialStream.forEach(consumer);
}
@Override
public void forEachOrdered(Consumer super T> consumer) {
initialStream.forEachOrdered(consumer);
}
@Override
public Object[] toArray() {
return initialStream.toArray();
}
@Override
public A[] toArray(IntFunction intFunction) {
return initialStream.toArray(intFunction);
}
@Override
public T reduce(T t, BinaryOperator binaryOperator) {
return initialStream.reduce(t, binaryOperator);
}
@Override
public Optional reduce(BinaryOperator binaryOperator) {
return initialStream.reduce(binaryOperator);
}
@Override
public U reduce(U u, BiFunction biFunction, BinaryOperator binaryOperator) {
return initialStream.reduce(u, biFunction, binaryOperator);
}
@Override
public R collect(Supplier supplier, BiConsumer biConsumer, BiConsumer biConsumer1) {
return initialStream.collect(supplier, biConsumer, biConsumer1);
}
@Override
public R collect(Collector super T, A, R> collector) {
return initialStream.collect(collector);
}
@Override
public Optional min(Comparator super T> comparator) {
return initialStream.min(comparator);
}
@Override
public Optional max(Comparator super T> comparator) {
return initialStream.max(comparator);
}
@Override
public long count() {
return initialStream.count();
}
@Override
public boolean anyMatch(Predicate super T> predicate) {
return initialStream.anyMatch(predicate);
}
@Override
public boolean allMatch(Predicate super T> predicate) {
return initialStream.allMatch(predicate);
}
@Override
public boolean noneMatch(Predicate super T> predicate) {
return initialStream.noneMatch(predicate);
}
@Override
public Optional findFirst() {
return initialStream.findFirst();
}
@Override
public Optional findAny() {
return initialStream.findAny();
}
public static Builder builder() {
return Stream.builder();
}
public static Stream empty() {
return Stream.empty();
}
public static Stream of(T1 t1) {
return Stream.of(t1);
}
@SafeVarargs
public static Stream of(T1... values) {
return Stream.of(values);
}
public static Stream iterate(T1 seed, UnaryOperator f) {
return Stream.iterate(seed, f);
}
public static Stream generate(Supplier extends T1> s) {
return Stream.generate(s);
}
public static Stream concat(Stream extends T1> a, Stream extends T1> b) {
return Stream.concat(a, b);
}
@Override
public Iterator iterator() {
return initialStream.iterator();
}
@Override
public Spliterator spliterator() {
return initialStream.spliterator();
}
@Override
public boolean isParallel() {
return initialStream.isParallel();
}
@Override
public Stream sequential() {
return initialStream.sequential();
}
@Override
public Stream parallel() {
return initialStream.parallel();
}
@Override
public Stream unordered() {
return initialStream.unordered();
}
@Override
public Stream onClose(Runnable runnable) {
return initialStream.onClose(runnable);
}
@Override
public void close() {
initialStream.close();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy