@Deprecated public class ExtendedStream<T> extends Object implements Stream<T>
Stream that provides some missed functions like
foldRight(java.util.function.BiFunction, Object), toList() and toSet()Stream.Builder<T>| Modifier | Constructor and Description |
|---|---|
protected |
ExtendedStream(Stream<T> delegate)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allMatch(Predicate<? super T> predicate)
Deprecated.
|
boolean |
anyMatch(Predicate<? super T> predicate)
Deprecated.
|
void |
close()
Deprecated.
|
<R,A> R |
collect(Collector<? super T,A,R> collector)
Deprecated.
|
<R> R |
collect(Supplier<R> supplier,
BiConsumer<R,? super T> accumulator,
BiConsumer<R,R> combiner)
Deprecated.
|
long |
count()
Deprecated.
|
ExtendedStream<T> |
distinct()
Deprecated.
|
ExtendedStream<T> |
filter(Predicate<? super T> predicate)
Deprecated.
|
Optional<T> |
findAny()
Deprecated.
|
Optional<T> |
findFirst()
Deprecated.
|
StreamableOptional<T> |
findLast()
Deprecated.
|
<R> ExtendedStream<R> |
flatMap(Function<? super T,? extends Stream<? extends R>> mapper)
Deprecated.
|
<R> ExtendedStream<R> |
flatMapCollection(Function<? super T,? extends Collection<? extends R>> mapper)
Deprecated.
|
<R> ExtendedStream<R> |
flatMapOptional(Function<? super T,Optional<? extends R>> mapper)
Deprecated.
|
DoubleStream |
flatMapToDouble(Function<? super T,? extends DoubleStream> mapper)
Deprecated.
|
IntStream |
flatMapToInt(Function<? super T,? extends IntStream> mapper)
Deprecated.
|
LongStream |
flatMapToLong(Function<? super T,? extends LongStream> mapper)
Deprecated.
|
<R> R |
foldLeft(BiFunction<T,R,R> accumulator,
R identity)
Deprecated.
|
<R> R |
foldRight(BiFunction<T,R,R> accumulator,
R identity)
Deprecated.
|
void |
forEach(Consumer<? super T> action)
Deprecated.
|
void |
forEachOrdered(Consumer<? super T> action)
Deprecated.
|
boolean |
isParallel()
Deprecated.
|
Iterator<T> |
iterator()
Deprecated.
|
ExtendedStream<T> |
limit(long maxSize)
Deprecated.
|
<R> ExtendedStream<R> |
map(Function<? super T,? extends R> mapper)
Deprecated.
|
DoubleStream |
mapToDouble(ToDoubleFunction<? super T> mapper)
Deprecated.
|
IntStream |
mapToInt(ToIntFunction<? super T> mapper)
Deprecated.
|
LongStream |
mapToLong(ToLongFunction<? super T> mapper)
Deprecated.
|
Optional<T> |
max(Comparator<? super T> comparator)
Deprecated.
|
Optional<T> |
min(Comparator<? super T> comparator)
Deprecated.
|
boolean |
noneMatch(Predicate<? super T> predicate)
Deprecated.
|
static <T> ExtendedStream<T> |
of(Stream<T> stream)
Deprecated.
|
ExtendedStream<T> |
onClose(Runnable closeHandler)
Deprecated.
|
ExtendedStream<T> |
parallel()
Deprecated.
|
ExtendedStream<T> |
peek(Consumer<? super T> action)
Deprecated.
|
Optional<T> |
reduce(BinaryOperator<T> accumulator)
Deprecated.
|
T |
reduce(T identity,
BinaryOperator<T> accumulator)
Deprecated.
|
<U> U |
reduce(U identity,
BiFunction<U,? super T,U> accumulator,
BinaryOperator<U> combiner)
Deprecated.
|
ExtendedStream<T> |
sequential()
Deprecated.
|
ExtendedStream<T> |
skip(long n)
Deprecated.
|
ExtendedStream<T> |
sorted()
Deprecated.
|
ExtendedStream<T> |
sorted(Comparator<? super T> comparator)
Deprecated.
|
Spliterator<T> |
spliterator()
Deprecated.
|
Object[] |
toArray()
Deprecated.
|
<A> A[] |
toArray(IntFunction<A[]> generator)
Deprecated.
|
List<T> |
toList()
Deprecated.
|
Set<T> |
toSet()
Deprecated.
|
ExtendedStream<T> |
unordered()
Deprecated.
|
public <R> R foldRight(BiFunction<T,R,R> accumulator, R identity)
public <R> R foldLeft(BiFunction<T,R,R> accumulator, R identity)
public StreamableOptional<T> findLast()
public <R> ExtendedStream<R> map(Function<? super T,? extends R> mapper)
public <R> ExtendedStream<R> flatMap(Function<? super T,? extends Stream<? extends R>> mapper)
public <R> ExtendedStream<R> flatMapCollection(Function<? super T,? extends Collection<? extends R>> mapper)
public <R> ExtendedStream<R> flatMapOptional(Function<? super T,Optional<? extends R>> mapper)
public ExtendedStream<T> filter(Predicate<? super T> predicate)
public ExtendedStream<T> distinct()
public ExtendedStream<T> sorted()
public ExtendedStream<T> sorted(Comparator<? super T> comparator)
public ExtendedStream<T> peek(Consumer<? super T> action)
public ExtendedStream<T> limit(long maxSize)
public ExtendedStream<T> skip(long n)
public ExtendedStream<T> sequential()
sequential in interface BaseStream<T,Stream<T>>public ExtendedStream<T> parallel()
parallel in interface BaseStream<T,Stream<T>>public ExtendedStream<T> unordered()
unordered in interface BaseStream<T,Stream<T>>public ExtendedStream<T> onClose(Runnable closeHandler)
onClose in interface BaseStream<T,Stream<T>>public IntStream mapToInt(ToIntFunction<? super T> mapper)
public LongStream mapToLong(ToLongFunction<? super T> mapper)
public DoubleStream mapToDouble(ToDoubleFunction<? super T> mapper)
mapToDouble in interface Stream<T>public IntStream flatMapToInt(Function<? super T,? extends IntStream> mapper)
flatMapToInt in interface Stream<T>public LongStream flatMapToLong(Function<? super T,? extends LongStream> mapper)
flatMapToLong in interface Stream<T>public DoubleStream flatMapToDouble(Function<? super T,? extends DoubleStream> mapper)
flatMapToDouble in interface Stream<T>public void forEachOrdered(Consumer<? super T> action)
forEachOrdered in interface Stream<T>public <A> A[] toArray(IntFunction<A[]> generator)
public T reduce(T identity, BinaryOperator<T> accumulator)
public Optional<T> reduce(BinaryOperator<T> accumulator)
public <U> U reduce(U identity,
BiFunction<U,? super T,U> accumulator,
BinaryOperator<U> combiner)
public <R> R collect(Supplier<R> supplier, BiConsumer<R,? super T> accumulator, BiConsumer<R,R> combiner)
public Optional<T> min(Comparator<? super T> comparator)
public Optional<T> max(Comparator<? super T> comparator)
public Iterator<T> iterator()
iterator in interface BaseStream<T,Stream<T>>public Spliterator<T> spliterator()
spliterator in interface BaseStream<T,Stream<T>>public boolean isParallel()
isParallel in interface BaseStream<T,Stream<T>>public void close()
close in interface AutoCloseableclose in interface BaseStream<T,Stream<T>>public static <T> ExtendedStream<T> of(Stream<T> stream)
Copyright © 2014–2017. All rights reserved.