T - Typepublic abstract class AbstractNutsStream<T> extends Object implements net.thevpc.nuts.NutsStream<T>
| Modifier and Type | Field and Description |
|---|---|
protected String |
nutsBase |
protected net.thevpc.nuts.NutsSession |
session |
| Constructor and Description |
|---|
AbstractNutsStream(net.thevpc.nuts.NutsSession session,
String nutsBase) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allMatch(Predicate<? super T> predicate) |
net.thevpc.nuts.NutsStream<T> |
coalesce(net.thevpc.nuts.NutsIterator<? extends T> other) |
<R,A> R |
collect(Collector<? super T,A,R> collector) |
<R> R |
collect(Supplier<R> supplier,
BiConsumer<R,? super T> accumulator,
BiConsumer<R,R> combiner) |
long |
count() |
net.thevpc.nuts.NutsElement |
describe(net.thevpc.nuts.NutsElements elems) |
net.thevpc.nuts.NutsStream<T> |
distinct() |
<R> net.thevpc.nuts.NutsStream<T> |
distinctBy(net.thevpc.nuts.NutsFunction<T,R> condition) |
net.thevpc.nuts.NutsStream<T> |
filter(net.thevpc.nuts.NutsPredicate<? super T> predicate) |
net.thevpc.nuts.NutsStream<T> |
filter(Predicate<? super T> predicate,
Function<net.thevpc.nuts.NutsElements,net.thevpc.nuts.NutsElement> info) |
net.thevpc.nuts.NutsStream<T> |
filter(Predicate<? super T> predicate,
net.thevpc.nuts.NutsElement name) |
net.thevpc.nuts.NutsStream<T> |
filter(Predicate<? super T> predicate,
String name) |
net.thevpc.nuts.NutsStream<T> |
filterNonBlank() |
net.thevpc.nuts.NutsStream<T> |
filterNonNull() |
Optional<T> |
findAny() |
Optional<T> |
findFirst() |
T |
first() |
<R> net.thevpc.nuts.NutsStream<R> |
flatMap(net.thevpc.nuts.NutsFunction<? super T,? extends Stream<? extends R>> mapper) |
<R> net.thevpc.nuts.NutsStream<R> |
flatMapArray(net.thevpc.nuts.NutsFunction<? super T,? extends R[]> mapper) |
<R> net.thevpc.nuts.NutsStream<R> |
flatMapIter(net.thevpc.nuts.NutsFunction<? super T,? extends Iterator<? extends R>> mapper) |
<R> net.thevpc.nuts.NutsStream<R> |
flatMapList(net.thevpc.nuts.NutsFunction<? super T,? extends List<? extends R>> mapper) |
<R> net.thevpc.nuts.NutsStream<R> |
flatMapStream(net.thevpc.nuts.NutsFunction<? super T,? extends net.thevpc.nuts.NutsStream<? extends R>> mapper) |
DoubleStream |
flatMapToDouble(net.thevpc.nuts.NutsFunction<? super T,? extends DoubleStream> mapper) |
IntStream |
flatMapToInt(net.thevpc.nuts.NutsFunction<? super T,? extends IntStream> mapper) |
LongStream |
flatMapToLong(net.thevpc.nuts.NutsFunction<? super T,? extends LongStream> mapper) |
<K> Map<K,List<T>> |
groupBy(net.thevpc.nuts.NutsFunction<? super T,? extends K> classifier) |
<K> net.thevpc.nuts.NutsStream<Map.Entry<K,List<T>>> |
groupedBy(net.thevpc.nuts.NutsFunction<? super T,? extends K> classifier) |
T |
last() |
net.thevpc.nuts.NutsStream<T> |
limit(long maxSize) |
<R> net.thevpc.nuts.NutsStream<R> |
map(Function<? super T,? extends R> mapper,
Function<net.thevpc.nuts.NutsElements,net.thevpc.nuts.NutsElement> name) |
<R> net.thevpc.nuts.NutsStream<R> |
map(Function<? super T,? extends R> mapper,
net.thevpc.nuts.NutsElement name) |
<R> net.thevpc.nuts.NutsStream<R> |
map(Function<? super T,? extends R> mapper,
String name) |
<R> net.thevpc.nuts.NutsStream<R> |
map(net.thevpc.nuts.NutsFunction<? super T,? extends R> mapper) |
<R> net.thevpc.nuts.NutsStream<R> |
mapUnsafe(net.thevpc.nuts.NutsUnsafeFunction<? super T,? extends R> mapper,
net.thevpc.nuts.NutsFunction<Exception,? extends R> onError) |
Optional<T> |
max(Comparator<? super T> comparator) |
Optional<T> |
min(Comparator<? super T> comparator) |
net.thevpc.nuts.NutsStream<T> |
nonBlank() |
boolean |
noneMatch(Predicate<? super T> predicate) |
net.thevpc.nuts.NutsStream<T> |
nonNull() |
T |
required() |
T |
singleton() |
net.thevpc.nuts.NutsStream<T> |
sorted() |
net.thevpc.nuts.NutsStream<T> |
sorted(net.thevpc.nuts.NutsComparator<T> comp) |
Stream<T> |
stream() |
<A> A[] |
toArray(IntFunction<A[]> generator) |
List<T> |
toList() |
<K,U> Map<K,U> |
toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends U> valueMapper) |
<K,U> Map<K,U> |
toOrderedMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends U> valueMapper) |
Set<T> |
toOrderedSet() |
Set<T> |
toSet() |
<K,U> Map<K,U> |
toSortedMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends U> valueMapper) |
Set<T> |
toSortedSet() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waititerator, of, of, of, of, of, of, of, of, of, of, ofEmpty, ofSingletonforEach, spliteratorprotected net.thevpc.nuts.NutsSession session
protected String nutsBase
public AbstractNutsStream(net.thevpc.nuts.NutsSession session,
String nutsBase)
public Set<T> toSortedSet()
toSortedSet in interface net.thevpc.nuts.NutsStream<T>public Set<T> toOrderedSet()
toOrderedSet in interface net.thevpc.nuts.NutsStream<T>public T required() throws net.thevpc.nuts.NutsNotFoundException
required in interface net.thevpc.nuts.NutsStream<T>net.thevpc.nuts.NutsNotFoundExceptionpublic long count()
count in interface net.thevpc.nuts.NutsStream<T>public <R> net.thevpc.nuts.NutsStream<R> map(net.thevpc.nuts.NutsFunction<? super T,? extends R> mapper)
map in interface net.thevpc.nuts.NutsStream<T>public <R> net.thevpc.nuts.NutsStream<R> map(Function<? super T,? extends R> mapper, String name)
map in interface net.thevpc.nuts.NutsStream<T>public <R> net.thevpc.nuts.NutsStream<R> map(Function<? super T,? extends R> mapper, net.thevpc.nuts.NutsElement name)
map in interface net.thevpc.nuts.NutsStream<T>public <R> net.thevpc.nuts.NutsStream<R> map(Function<? super T,? extends R> mapper, Function<net.thevpc.nuts.NutsElements,net.thevpc.nuts.NutsElement> name)
map in interface net.thevpc.nuts.NutsStream<T>public <R> net.thevpc.nuts.NutsStream<R> mapUnsafe(net.thevpc.nuts.NutsUnsafeFunction<? super T,? extends R> mapper, net.thevpc.nuts.NutsFunction<Exception,? extends R> onError)
mapUnsafe in interface net.thevpc.nuts.NutsStream<T>public net.thevpc.nuts.NutsStream<T> sorted()
sorted in interface net.thevpc.nuts.NutsStream<T>public net.thevpc.nuts.NutsStream<T> sorted(net.thevpc.nuts.NutsComparator<T> comp)
sorted in interface net.thevpc.nuts.NutsStream<T>public net.thevpc.nuts.NutsStream<T> distinct()
distinct in interface net.thevpc.nuts.NutsStream<T>public <R> net.thevpc.nuts.NutsStream<T> distinctBy(net.thevpc.nuts.NutsFunction<T,R> condition)
distinctBy in interface net.thevpc.nuts.NutsStream<T>public net.thevpc.nuts.NutsStream<T> nonNull()
nonNull in interface net.thevpc.nuts.NutsStream<T>public net.thevpc.nuts.NutsStream<T> nonBlank()
nonBlank in interface net.thevpc.nuts.NutsStream<T>public net.thevpc.nuts.NutsStream<T> filter(net.thevpc.nuts.NutsPredicate<? super T> predicate)
filter in interface net.thevpc.nuts.NutsStream<T>public net.thevpc.nuts.NutsStream<T> filter(Predicate<? super T> predicate, String name)
filter in interface net.thevpc.nuts.NutsStream<T>public net.thevpc.nuts.NutsStream<T> filter(Predicate<? super T> predicate, net.thevpc.nuts.NutsElement name)
filter in interface net.thevpc.nuts.NutsStream<T>public net.thevpc.nuts.NutsStream<T> filter(Predicate<? super T> predicate, Function<net.thevpc.nuts.NutsElements,net.thevpc.nuts.NutsElement> info)
filter in interface net.thevpc.nuts.NutsStream<T>public net.thevpc.nuts.NutsStream<T> filterNonNull()
filterNonNull in interface net.thevpc.nuts.NutsStream<T>public net.thevpc.nuts.NutsStream<T> filterNonBlank()
filterNonBlank in interface net.thevpc.nuts.NutsStream<T>public net.thevpc.nuts.NutsStream<T> coalesce(net.thevpc.nuts.NutsIterator<? extends T> other)
coalesce in interface net.thevpc.nuts.NutsStream<T>public <A> A[] toArray(IntFunction<A[]> generator)
toArray in interface net.thevpc.nuts.NutsStream<T>public <K,U> Map<K,U> toMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper)
toMap in interface net.thevpc.nuts.NutsStream<T>public <K,U> Map<K,U> toOrderedMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper)
toOrderedMap in interface net.thevpc.nuts.NutsStream<T>public <K,U> Map<K,U> toSortedMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper)
toSortedMap in interface net.thevpc.nuts.NutsStream<T>public <R> net.thevpc.nuts.NutsStream<R> flatMapIter(net.thevpc.nuts.NutsFunction<? super T,? extends Iterator<? extends R>> mapper)
flatMapIter in interface net.thevpc.nuts.NutsStream<T>public <R> net.thevpc.nuts.NutsStream<R> flatMapList(net.thevpc.nuts.NutsFunction<? super T,? extends List<? extends R>> mapper)
flatMapList in interface net.thevpc.nuts.NutsStream<T>public <R> net.thevpc.nuts.NutsStream<R> flatMapArray(net.thevpc.nuts.NutsFunction<? super T,? extends R[]> mapper)
flatMapArray in interface net.thevpc.nuts.NutsStream<T>public <R> net.thevpc.nuts.NutsStream<R> flatMap(net.thevpc.nuts.NutsFunction<? super T,? extends Stream<? extends R>> mapper)
flatMap in interface net.thevpc.nuts.NutsStream<T>public <R> net.thevpc.nuts.NutsStream<R> flatMapStream(net.thevpc.nuts.NutsFunction<? super T,? extends net.thevpc.nuts.NutsStream<? extends R>> mapper)
flatMapStream in interface net.thevpc.nuts.NutsStream<T>public <K> Map<K,List<T>> groupBy(net.thevpc.nuts.NutsFunction<? super T,? extends K> classifier)
groupBy in interface net.thevpc.nuts.NutsStream<T>public <K> net.thevpc.nuts.NutsStream<Map.Entry<K,List<T>>> groupedBy(net.thevpc.nuts.NutsFunction<? super T,? extends K> classifier)
groupedBy in interface net.thevpc.nuts.NutsStream<T>public Optional<T> findAny()
findAny in interface net.thevpc.nuts.NutsStream<T>public Optional<T> findFirst()
findFirst in interface net.thevpc.nuts.NutsStream<T>public DoubleStream flatMapToDouble(net.thevpc.nuts.NutsFunction<? super T,? extends DoubleStream> mapper)
flatMapToDouble in interface net.thevpc.nuts.NutsStream<T>public IntStream flatMapToInt(net.thevpc.nuts.NutsFunction<? super T,? extends IntStream> mapper)
flatMapToInt in interface net.thevpc.nuts.NutsStream<T>public LongStream flatMapToLong(net.thevpc.nuts.NutsFunction<? super T,? extends LongStream> mapper)
flatMapToLong in interface net.thevpc.nuts.NutsStream<T>public boolean allMatch(Predicate<? super T> predicate)
allMatch in interface net.thevpc.nuts.NutsStream<T>public boolean noneMatch(Predicate<? super T> predicate)
noneMatch in interface net.thevpc.nuts.NutsStream<T>public net.thevpc.nuts.NutsStream<T> limit(long maxSize)
limit in interface net.thevpc.nuts.NutsStream<T>public <R> R collect(Supplier<R> supplier, BiConsumer<R,? super T> accumulator, BiConsumer<R,R> combiner)
collect in interface net.thevpc.nuts.NutsStream<T>public <R,A> R collect(Collector<? super T,A,R> collector)
collect in interface net.thevpc.nuts.NutsStream<T>public Optional<T> min(Comparator<? super T> comparator)
min in interface net.thevpc.nuts.NutsStream<T>public Optional<T> max(Comparator<? super T> comparator)
max in interface net.thevpc.nuts.NutsStream<T>public net.thevpc.nuts.NutsElement describe(net.thevpc.nuts.NutsElements elems)
describe in interface net.thevpc.nuts.NutsDescribableCopyright © 2022 vpc open source initiative. All rights reserved.