public abstract class NStreamDelegate<T> extends Object implements net.thevpc.nuts.util.NStream<T>
| Constructor and Description |
|---|
NStreamDelegate() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allMatch(Predicate<? super T> predicate) |
boolean |
anyMatch(Predicate<? super T> predicate) |
abstract net.thevpc.nuts.util.NStream<T> |
baseStream() |
void |
close() |
net.thevpc.nuts.util.NStream<T> |
coalesce(net.thevpc.nuts.util.NIterator<? extends T> other) |
net.thevpc.nuts.util.NStream<T> |
coalesce(net.thevpc.nuts.util.NStream<? 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) |
net.thevpc.nuts.util.NStream<T> |
concat(net.thevpc.nuts.util.NIterator<? extends T> other) |
net.thevpc.nuts.util.NStream<T> |
concat(net.thevpc.nuts.util.NStream<? extends T> other) |
long |
count() |
net.thevpc.nuts.elem.NElement |
describe() |
net.thevpc.nuts.util.NStream<T> |
distinct() |
<R> net.thevpc.nuts.util.NStream<T> |
distinctBy(Function<T,R> d) |
net.thevpc.nuts.util.NStream<T> |
filter(Predicate<? super T> predicate) |
net.thevpc.nuts.util.NStream<T> |
filterNonBlank() |
net.thevpc.nuts.util.NStream<T> |
filterNonNull() |
net.thevpc.nuts.util.NOptional<T> |
findAny() |
net.thevpc.nuts.util.NOptional<T> |
findFirst() |
net.thevpc.nuts.util.NOptional<T> |
findLast() |
net.thevpc.nuts.util.NOptional<T> |
findSingleton() |
<R> net.thevpc.nuts.util.NStream<R> |
flatMap(Function<? super T,? extends Stream<? extends R>> mapper) |
<R> net.thevpc.nuts.util.NStream<R> |
flatMapArray(Function<? super T,? extends R[]> mapper) |
<R> net.thevpc.nuts.util.NStream<R> |
flatMapIter(Function<? super T,? extends Iterator<? extends R>> mapper) |
<R> net.thevpc.nuts.util.NStream<R> |
flatMapList(Function<? super T,? extends List<? extends R>> mapper) |
<R> net.thevpc.nuts.util.NStream<R> |
flatMapStream(Function<? super T,? extends net.thevpc.nuts.util.NStream<? extends R>> mapper) |
DoubleStream |
flatMapToDouble(Function<? super T,? extends DoubleStream> mapper) |
IntStream |
flatMapToInt(Function<? super T,? extends IntStream> mapper) |
LongStream |
flatMapToLong(Function<? super T,? extends LongStream> mapper) |
void |
forEach(Consumer<? super T> action) |
<K> Map<K,List<T>> |
groupBy(Function<? super T,? extends K> classifier) |
<K> net.thevpc.nuts.util.NStream<Map.Entry<K,List<T>>> |
groupedBy(Function<? super T,? extends K> classifier) |
<V> net.thevpc.nuts.util.NStream<V> |
instanceOf(Class<V> type) |
net.thevpc.nuts.util.NIterator<T> |
iterator() |
net.thevpc.nuts.util.NStream<T> |
limit(long maxSize) |
<R> net.thevpc.nuts.util.NStream<R> |
map(Function<? super T,? extends R> mapper) |
DoubleStream |
mapToDouble(ToDoubleFunction<? super T> mapper) |
IntStream |
mapToInt(ToIntFunction<? super T> mapper) |
LongStream |
mapToLong(ToLongFunction<? super T> mapper) |
<R> net.thevpc.nuts.util.NStream<R> |
mapUnsafe(net.thevpc.nuts.util.UnsafeFunction<? super T,? extends R> mapper) |
<R> net.thevpc.nuts.util.NStream<R> |
mapUnsafe(net.thevpc.nuts.util.UnsafeFunction<? super T,? extends R> mapper,
Function<Exception,? extends R> onError) |
net.thevpc.nuts.util.NOptional<T> |
max(Comparator<? super T> comparator) |
net.thevpc.nuts.util.NOptional<T> |
min(Comparator<? super T> comparator) |
net.thevpc.nuts.util.NStream<T> |
nonBlank() |
boolean |
noneMatch(Predicate<? super T> predicate) |
net.thevpc.nuts.util.NStream<T> |
nonNull() |
net.thevpc.nuts.util.NStream<T> |
redescribe(Supplier<net.thevpc.nuts.elem.NElement> description) |
net.thevpc.nuts.util.NStream<T> |
skip(long n) |
net.thevpc.nuts.util.NStream<T> |
sorted() |
net.thevpc.nuts.util.NStream<T> |
sorted(net.thevpc.nuts.util.NComparator<T> comp) |
Spliterator<T> |
spliterator() |
Stream<T> |
stream() |
<A> A[] |
toArray(IntFunction<A[]> generator) |
boolean[] |
toBooleanArray() |
byte[] |
toByteArray() |
char[] |
toCharArray() |
double[] |
toDoubleArray() |
float[] |
toFloatArray() |
int[] |
toIntArray() |
List<T> |
toList() |
long[] |
toLongArray() |
<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() |
short[] |
toShortArray() |
<K,U> Map<K,U> |
toSortedMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends U> valueMapper) |
Set<T> |
toSortedSet() |
public abstract net.thevpc.nuts.util.NStream<T> baseStream()
public Set<T> toSortedSet()
toSortedSet in interface net.thevpc.nuts.util.NStream<T>public Set<T> toOrderedSet()
toOrderedSet in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NOptional<T> findLast()
findLast in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NOptional<T> findSingleton()
findSingleton in interface net.thevpc.nuts.util.NStream<T>public long count()
count in interface net.thevpc.nuts.util.NStream<T>public <R> net.thevpc.nuts.util.NStream<R> map(Function<? super T,? extends R> mapper)
map in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NStream<T> skip(long n)
skip in interface net.thevpc.nuts.util.NStream<T>public <R> net.thevpc.nuts.util.NStream<R> mapUnsafe(net.thevpc.nuts.util.UnsafeFunction<? super T,? extends R> mapper, Function<Exception,? extends R> onError)
mapUnsafe in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NStream<T> sorted()
sorted in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NStream<T> sorted(net.thevpc.nuts.util.NComparator<T> comp)
sorted in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NStream<T> distinct()
distinct in interface net.thevpc.nuts.util.NStream<T>public <R> net.thevpc.nuts.util.NStream<T> distinctBy(Function<T,R> d)
distinctBy in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NStream<T> nonNull()
nonNull in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NStream<T> nonBlank()
nonBlank in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NStream<T> filter(Predicate<? super T> predicate)
filter in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NStream<T> filterNonNull()
filterNonNull in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NStream<T> filterNonBlank()
filterNonBlank in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NStream<T> coalesce(net.thevpc.nuts.util.NIterator<? extends T> other)
coalesce in interface net.thevpc.nuts.util.NStream<T>public <A> A[] toArray(IntFunction<A[]> generator)
toArray in interface net.thevpc.nuts.util.NStream<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.util.NStream<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.util.NStream<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.util.NStream<T>public <R> net.thevpc.nuts.util.NStream<R> flatMapIter(Function<? super T,? extends Iterator<? extends R>> mapper)
flatMapIter in interface net.thevpc.nuts.util.NStream<T>public <R> net.thevpc.nuts.util.NStream<R> flatMapList(Function<? super T,? extends List<? extends R>> mapper)
flatMapList in interface net.thevpc.nuts.util.NStream<T>public <R> net.thevpc.nuts.util.NStream<R> flatMapArray(Function<? super T,? extends R[]> mapper)
flatMapArray in interface net.thevpc.nuts.util.NStream<T>public <R> net.thevpc.nuts.util.NStream<R> flatMap(Function<? super T,? extends Stream<? extends R>> mapper)
flatMap in interface net.thevpc.nuts.util.NStream<T>public <R> net.thevpc.nuts.util.NStream<R> flatMapStream(Function<? super T,? extends net.thevpc.nuts.util.NStream<? extends R>> mapper)
flatMapStream in interface net.thevpc.nuts.util.NStream<T>public <K> Map<K,List<T>> groupBy(Function<? super T,? extends K> classifier)
groupBy in interface net.thevpc.nuts.util.NStream<T>public <K> net.thevpc.nuts.util.NStream<Map.Entry<K,List<T>>> groupedBy(Function<? super T,? extends K> classifier)
groupedBy in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NOptional<T> findAny()
findAny in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NOptional<T> findFirst()
findFirst in interface net.thevpc.nuts.util.NStream<T>public DoubleStream flatMapToDouble(Function<? super T,? extends DoubleStream> mapper)
flatMapToDouble in interface net.thevpc.nuts.util.NStream<T>public IntStream flatMapToInt(Function<? super T,? extends IntStream> mapper)
flatMapToInt in interface net.thevpc.nuts.util.NStream<T>public LongStream flatMapToLong(Function<? super T,? extends LongStream> mapper)
flatMapToLong in interface net.thevpc.nuts.util.NStream<T>public boolean allMatch(Predicate<? super T> predicate)
allMatch in interface net.thevpc.nuts.util.NStream<T>public boolean noneMatch(Predicate<? super T> predicate)
noneMatch in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NStream<T> limit(long maxSize)
limit in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NIterator<T> iterator()
public <R> R collect(Supplier<R> supplier, BiConsumer<R,? super T> accumulator, BiConsumer<R,R> combiner)
collect in interface net.thevpc.nuts.util.NStream<T>public <R,A> R collect(Collector<? super T,A,R> collector)
collect in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NOptional<T> min(Comparator<? super T> comparator)
min in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NOptional<T> max(Comparator<? super T> comparator)
max in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.elem.NElement describe()
describe in interface net.thevpc.nuts.elem.NElementDescribable<net.thevpc.nuts.util.NStream<T>>public net.thevpc.nuts.util.NStream<T> redescribe(Supplier<net.thevpc.nuts.elem.NElement> description)
redescribe in interface net.thevpc.nuts.elem.NElementRedescribable<net.thevpc.nuts.util.NStream<T>>public Spliterator<T> spliterator()
spliterator in interface Iterable<T>public <R> net.thevpc.nuts.util.NStream<R> mapUnsafe(net.thevpc.nuts.util.UnsafeFunction<? super T,? extends R> mapper)
mapUnsafe in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NStream<T> concat(net.thevpc.nuts.util.NIterator<? extends T> other)
concat in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NStream<T> concat(net.thevpc.nuts.util.NStream<? extends T> other)
concat in interface net.thevpc.nuts.util.NStream<T>public net.thevpc.nuts.util.NStream<T> coalesce(net.thevpc.nuts.util.NStream<? extends T> other)
coalesce in interface net.thevpc.nuts.util.NStream<T>public void close()
close in interface AutoCloseableclose in interface net.thevpc.nuts.util.NStream<T>public DoubleStream mapToDouble(ToDoubleFunction<? super T> mapper)
mapToDouble in interface net.thevpc.nuts.util.NStream<T>public LongStream mapToLong(ToLongFunction<? super T> mapper)
mapToLong in interface net.thevpc.nuts.util.NStream<T>public IntStream mapToInt(ToIntFunction<? super T> mapper)
mapToInt in interface net.thevpc.nuts.util.NStream<T>public double[] toDoubleArray()
toDoubleArray in interface net.thevpc.nuts.util.NStream<T>public long[] toLongArray()
toLongArray in interface net.thevpc.nuts.util.NStream<T>public int[] toIntArray()
toIntArray in interface net.thevpc.nuts.util.NStream<T>public float[] toFloatArray()
toFloatArray in interface net.thevpc.nuts.util.NStream<T>public short[] toShortArray()
toShortArray in interface net.thevpc.nuts.util.NStream<T>public char[] toCharArray()
toCharArray in interface net.thevpc.nuts.util.NStream<T>public byte[] toByteArray()
toByteArray in interface net.thevpc.nuts.util.NStream<T>public boolean[] toBooleanArray()
toBooleanArray in interface net.thevpc.nuts.util.NStream<T>public boolean anyMatch(Predicate<? super T> predicate)
anyMatch in interface net.thevpc.nuts.util.NStream<T>Copyright © 2025 vpc open source initiative. All rights reserved.