public interface YamlStream extends YamlNode, Stream<YamlNode>
Stream.Builder<T>
Modifier and Type | Method and Description |
---|---|
default boolean |
allMatch(Predicate<? super YamlNode> predicate) |
default boolean |
anyMatch(Predicate<? super YamlNode> predicate) |
default void |
close() |
default <R,A> R |
collect(Collector<? super YamlNode,A,R> collector) |
default <R> R |
collect(Supplier<R> supplier,
BiConsumer<R,? super YamlNode> accumulator,
BiConsumer<R,R> combiner) |
default long |
count() |
default Stream<YamlNode> |
distinct() |
default Stream<YamlNode> |
filter(Predicate<? super YamlNode> predicate) |
default Optional<YamlNode> |
findAny() |
default Optional<YamlNode> |
findFirst() |
default <R> Stream<R> |
flatMap(Function<? super YamlNode,? extends Stream<? extends R>> mapper) |
default DoubleStream |
flatMapToDouble(Function<? super YamlNode,? extends DoubleStream> mapper) |
default IntStream |
flatMapToInt(Function<? super YamlNode,? extends IntStream> mapper) |
default LongStream |
flatMapToLong(Function<? super YamlNode,? extends LongStream> mapper) |
default void |
forEach(Consumer<? super YamlNode> action) |
default void |
forEachOrdered(Consumer<? super YamlNode> action) |
default String |
indent(int indentation)
Indent this YamlStream.
|
default boolean |
isParallel() |
default Iterator<YamlNode> |
iterator() |
default Stream<YamlNode> |
limit(long maxSize) |
default <R> Stream<R> |
map(Function<? super YamlNode,? extends R> mapper) |
default DoubleStream |
mapToDouble(ToDoubleFunction<? super YamlNode> mapper) |
default IntStream |
mapToInt(ToIntFunction<? super YamlNode> mapper) |
default LongStream |
mapToLong(ToLongFunction<? super YamlNode> mapper) |
default Optional<YamlNode> |
max(Comparator<? super YamlNode> comparator) |
default Optional<YamlNode> |
min(Comparator<? super YamlNode> comparator) |
default boolean |
noneMatch(Predicate<? super YamlNode> predicate) |
default Stream<YamlNode> |
onClose(Runnable closeHandler) |
default Stream<YamlNode> |
parallel() |
default Stream<YamlNode> |
peek(Consumer<? super YamlNode> action) |
default Optional<YamlNode> |
reduce(BinaryOperator<YamlNode> accumulator) |
default <U> U |
reduce(U identity,
BiFunction<U,? super YamlNode,U> accumulator,
BinaryOperator<U> combiner) |
default YamlNode |
reduce(YamlNode identity,
BinaryOperator<YamlNode> accumulator) |
default Stream<YamlNode> |
sequential() |
default Stream<YamlNode> |
skip(long n) |
default Stream<YamlNode> |
sorted() |
default Stream<YamlNode> |
sorted(Comparator<? super YamlNode> comparator) |
default Spliterator<YamlNode> |
spliterator() |
default Object[] |
toArray() |
default <A> A[] |
toArray(IntFunction<A[]> generator) |
default Stream<YamlNode> |
unordered() |
compareTo
default String indent(int indentation)
--- ...Here is an example of printed YamlStream:
--- architect: amihaiemil developers: - amihaiemil - salikjan --- architect: yegor256 developers: - paolo - mario
default Iterator<YamlNode> iterator()
iterator
in interface BaseStream<YamlNode,Stream<YamlNode>>
default Spliterator<YamlNode> spliterator()
spliterator
in interface BaseStream<YamlNode,Stream<YamlNode>>
default boolean isParallel()
isParallel
in interface BaseStream<YamlNode,Stream<YamlNode>>
default Stream<YamlNode> sequential()
sequential
in interface BaseStream<YamlNode,Stream<YamlNode>>
default Stream<YamlNode> parallel()
parallel
in interface BaseStream<YamlNode,Stream<YamlNode>>
default Stream<YamlNode> unordered()
unordered
in interface BaseStream<YamlNode,Stream<YamlNode>>
default Stream<YamlNode> onClose(Runnable closeHandler)
onClose
in interface BaseStream<YamlNode,Stream<YamlNode>>
default void close()
close
in interface AutoCloseable
close
in interface BaseStream<YamlNode,Stream<YamlNode>>
default IntStream mapToInt(ToIntFunction<? super YamlNode> mapper)
default LongStream mapToLong(ToLongFunction<? super YamlNode> mapper)
default DoubleStream mapToDouble(ToDoubleFunction<? super YamlNode> mapper)
mapToDouble
in interface Stream<YamlNode>
default <R> Stream<R> flatMap(Function<? super YamlNode,? extends Stream<? extends R>> mapper)
default IntStream flatMapToInt(Function<? super YamlNode,? extends IntStream> mapper)
flatMapToInt
in interface Stream<YamlNode>
default LongStream flatMapToLong(Function<? super YamlNode,? extends LongStream> mapper)
flatMapToLong
in interface Stream<YamlNode>
default DoubleStream flatMapToDouble(Function<? super YamlNode,? extends DoubleStream> mapper)
flatMapToDouble
in interface Stream<YamlNode>
default Stream<YamlNode> sorted(Comparator<? super YamlNode> comparator)
default void forEachOrdered(Consumer<? super YamlNode> action)
forEachOrdered
in interface Stream<YamlNode>
default <A> A[] toArray(IntFunction<A[]> generator)
default YamlNode reduce(YamlNode identity, BinaryOperator<YamlNode> accumulator)
default Optional<YamlNode> reduce(BinaryOperator<YamlNode> accumulator)
default <U> U reduce(U identity, BiFunction<U,? super YamlNode,U> accumulator, BinaryOperator<U> combiner)
default <R> R collect(Supplier<R> supplier, BiConsumer<R,? super YamlNode> accumulator, BiConsumer<R,R> combiner)
default Optional<YamlNode> min(Comparator<? super YamlNode> comparator)
default Optional<YamlNode> max(Comparator<? super YamlNode> comparator)
Copyright © 2020. All rights reserved.