Uses of Interface
io.vavr.collection.Stream
Packages that use Stream
Package
Description
Beside
API the io.vavr package contains core types like (Checked)Functions and Tuples.Purely functional collections based on Traversable.
-
Uses of Stream in io.vavr
Modifier and TypeMethodDescriptionstatic <T> Stream<T> API.Stream()Alias forStream.empty()static <T> Stream<T> API.Stream(T element) Alias forStream.of(Object)static <T> Stream<T> API.Stream(T @NonNull ... elements) Alias forStream.of(Object...)Value.toStream()Converts this to aStream. -
Uses of Stream in io.vavr.collection
Classes in io.vavr.collection that implement StreamModifier and TypeClassDescriptionstatic classStream.Cons<T>Non-emptyStream, consisting of ahead, andtail.static final classStream.Empty<T>The empty Stream.static final classstatic final classFields in io.vavr.collection with type parameters of type StreamMethods in io.vavr.collection that return StreamModifier and TypeMethodDescriptionAppends itself to the end of stream withmapperfunction.static <T> Stream<T> Stream.asJavaMutable(@NonNull Consumer<? super List<T>> action) default <R> Stream<R> Stream.collect(@NonNull PartialFunction<? super T, ? extends R> partialFunction) Stream.combinations()Stream.combinations(int k) static <T> Stream<T> Lazily creates a Stream in O(1) which traverses along the concatenation of the given iterables.static <T> Stream<T> Lazily creates a Stream in O(1) which traverses along the concatenation of the given iterables.static <T> Stream<T> Constructs a Stream of a head element and a tail supplier.static <T> Stream<T> Stream.continually(@NonNull Supplier<? extends T> supplier) Generates an (theoretically) infinitely long Stream using a value Supplier.static <T> Stream<T> Stream.continually(T t) Repeats an element infinitely often.static <T> Stream<T> Stream.cycle()Repeat the elements of this Stream infinitely.Stream.cycle(int count) Repeat the elements of this Streamcounttimes.Stream.distinct()Stream.distinctBy(@NonNull Comparator<? super T> comparator) Stream.distinctBy(@NonNull Function<? super T, ? extends U> keyExtractor) Stream.distinctByKeepLast(@NonNull Comparator<? super T> comparator) Stream.distinctByKeepLast(@NonNull Function<? super T, ? extends U> keyExtractor) Stream.drop(int n) Stream.dropRight(int n) Stream.dropRightUntil(@NonNull Predicate<? super T> predicate) Stream.dropRightWhile(@NonNull Predicate<? super T> predicate) static <T> Stream<T> Stream.empty()Returns the single instance of Empty.Extends (continues) thisStreamwith a Stream of values created by applying consecutively providedFunctionto the last element of the original Stream.Extends (continues) thisStreamwith values provided by aSupplierExtends (continues) thisStreamwith a constantly repeated value.static <T> Stream<T> Returns a Stream containingnvalues supplied by a given Suppliers.static <T> Stream<T> Stream.fill(int n, T element) Returns a Stream containingntimes the givenelementdefault <U> Stream<U> Stream.from(int value) Returns an infinitely long Stream ofintvalues starting fromfrom.Stream.from(int value, int step) Returns an infinite long Stream ofintvalues starting fromvalueand spaced bystep.Stream.from(long value) Returns an infinitely long Stream oflongvalues starting fromfrom.Stream.from(long value, long step) Returns an infinite long Stream oflongvalues starting fromvalueand spaced bystep.Stream.init()Stream.intersperse(T element) static <T> Stream<T> Generates a (theoretically) infinitely long Stream using a repeatedly invoked supplier that provides aSomefor each next value and aNonefor the end.static <T> Stream<T> Generates a (theoretically) infinitely long Stream using a function to calculate the next value based on the previous.default <U> Stream<U> default <U> Stream<U> Stream.mapTo(U value) Stream.mapToVoid()static <T> Stream<T> Narrows a widenedStream<? extends T>toStream<T>by performing a type-safe cast.static <T> Stream<T> Stream.of(T element) Returns a singletonStream, i.e.static <T> Stream<T> Stream.of(T @NonNull ... elements) Creates a Stream of the given elements.Stream.ofAll(boolean @NonNull ... elements) Creates a Stream from boolean values.Stream.ofAll(byte @NonNull ... elements) Creates a Stream from byte values.Stream.ofAll(char @NonNull ... elements) Creates a Stream from char values.Stream.ofAll(double @NonNull ... elements) Creates a Stream values double values.Stream.ofAll(float @NonNull ... elements) Creates a Stream from float values.Stream.ofAll(int @NonNull ... elements) Creates a Stream from int values.Stream.ofAll(long @NonNull ... elements) Creates a Stream from long values.Stream.ofAll(short @NonNull ... elements) Creates a Stream from short values.static <T> Stream<T> Creates a Stream of the given elements.static <T> Stream<T> Creates a Stream that contains the elements of the givenStream.Stream.permutations()Stream.prependAll(@NonNull Iterable<? extends T> elements) Stream.range(char from, char toExclusive) Creates a Stream of char numbers starting fromfrom, extending totoExclusive - 1.Stream.range(int from, int toExclusive) Creates a Stream of int numbers starting fromfrom, extending totoExclusive - 1.Stream.range(long from, long toExclusive) Creates a Stream of long numbers starting fromfrom, extending totoExclusive - 1.Stream.rangeBy(char from, char toExclusive, int step) Creates a Stream of char numbers starting fromfrom, extending totoExclusive - 1, withstep.Stream.rangeBy(double from, double toExclusive, double step) Creates a Stream of double numbers starting fromfrom, extending up to but not includingtoExclusive, withstep.Stream.rangeBy(int from, int toExclusive, int step) Creates a Stream of int numbers starting fromfrom, extending totoExclusive - 1, withstep.Stream.rangeBy(long from, long toExclusive, long step) Creates a Stream of long numbers starting fromfrom, extending totoExclusive - 1, withstep.Stream.rangeClosed(char from, char toInclusive) Creates a Stream of char numbers starting fromfrom, extending totoInclusive.Stream.rangeClosed(int from, int toInclusive) Creates a Stream of int numbers starting fromfrom, extending totoInclusive.Stream.rangeClosed(long from, long toInclusive) Creates a Stream of long numbers starting fromfrom, extending totoInclusive.Stream.rangeClosedBy(char from, char toInclusive, int step) Creates a Stream of char values starting fromfrom, extending totoInclusive, withstep.Stream.rangeClosedBy(double from, double toInclusive, double step) Creates a Stream of double values starting fromfrom, extending totoInclusive, withstep.Stream.rangeClosedBy(int from, int toInclusive, int step) Creates a Stream of int numbers starting fromfrom, extending totoInclusive, withstep.Stream.rangeClosedBy(long from, long toInclusive, long step) Creates a Stream of long numbers starting fromfrom, extending totoInclusive, withstep.Deprecated.Stream.removeAt(int index) Stream.removeFirst(@NonNull Predicate<T> predicate) Stream.removeLast(@NonNull Predicate<T> predicate) Stream.replaceAll(T currentElement, T newElement) Stream.reverse()Stream.rotateLeft(int n) Stream.rotateRight(int n) default <U> Stream<U> Stream.scanLeft(U zero, @NonNull BiFunction<? super U, ? super T, ? extends U> operation) default <U> Stream<U> Stream.scanRight(U zero, @NonNull BiFunction<? super T, ? super U, ? extends U> operation) Stream.shuffle()Stream.slice(int beginIndex, int endIndex) Stream.sortBy(@NonNull Comparator<? super U> comparator, Function<? super T, ? extends U> mapper) default <U extends Comparable<? super U>>
Stream<T> Stream.sorted()Stream.sorted(@NonNull Comparator<? super T> comparator) Stream.subSequence(int beginIndex) Stream.subSequence(int beginIndex, int endIndex) static <T> Stream<T> Returns a Stream containingnvalues of a given Functionfover a range of integer values from 0 ton - 1.Stream.Empty.tail()Stream.tail()StreamModule.AppendElements.tail()StreamModule.ConsImpl.tail()Stream.take(int n) Stream.takeRight(int n) Stream.takeRightUntil(@NonNull Predicate<? super T> predicate) Stream.takeRightWhile(@NonNull Predicate<? super T> predicate) Transposes the rows and columns of aStreammatrix.TreeModule.traverseInOrder(@NonNull Tree.Node<T> node) TreeModule.traverseLevelOrder(@NonNull Tree.Node<T> node) TreeModule.traversePostOrder(@NonNull Tree.Node<T> node) TreeModule.traversePreOrder(@NonNull Tree.Node<T> node) static <T> Stream<T> Creates a Stream from a seed value and a function.static <T,U> Stream <U> Stream.unfoldLeft(T seed, @NonNull Function<? super T, Option<Tuple2<? extends T, ? extends U>>> f) Creates a Stream from a seed value and a function.static <T,U> Stream <U> Stream.unfoldRight(T seed, @NonNull Function<? super T, Option<Tuple2<? extends U, ? extends T>>> f) Creates a Stream from a seed value and a function.HashMap.values()default <U,R> Stream <R> Stream.zipWith(@NonNull Iterable<? extends U> that, BiFunction<? super T, ? super U, ? extends R> mapper) Stream.zipWithIndex()default <U> Stream<U> Stream.zipWithIndex(@NonNull BiFunction<? super T, ? super Integer, ? extends U> mapper) Methods in io.vavr.collection that return types with arguments of type StreamModifier and TypeMethodDescriptionStream.collector()Returns aCollectorwhich may be used in conjunction withStream.collect(java.util.stream.Collector)to obtain aStream.Stream.combinations()Stream.combinations(int k) Stream.crossProduct(int power) Stream.grouped(int size) Stream.initOption()Stream.permutations()Stream.sliding(int size) Stream.sliding(int size, int step) Stream.splitAt(int n) Stream.splitAt(int n) Stream.splitAtInclusive(@NonNull Predicate<? super T> predicate) Stream.splitAtInclusive(@NonNull Predicate<? super T> predicate) Stream.tailOption()Transposes the rows and columns of aStreammatrix.Stream.unzip3(@NonNull Function<? super T, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Stream.unzip3(@NonNull Function<? super T, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Stream.unzip3(@NonNull Function<? super T, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Methods in io.vavr.collection with parameters of type StreamModifier and TypeMethodDescriptionstatic <T> Stream<T> static <T> Stream<T> Narrows a widenedStream<? extends T>toStream<T>by performing a type-safe cast.Transposes the rows and columns of aStreammatrix.Method parameters in io.vavr.collection with type arguments of type StreamModifier and TypeMethodDescriptionprivate Stream.Cons<T> StreamModule.AppendSelf.appendAll(Stream.Cons<T> stream, Function<? super Stream<T>, ? extends Stream<T>> mapper) private Stream.Cons<T> StreamModule.AppendSelf.appendAll(Stream.Cons<T> stream, Function<? super Stream<T>, ? extends Stream<T>> mapper) Appends itself to the end of stream withmapperfunction.Appends itself to the end of stream withmapperfunction.static <T> Stream<T> Constructs a Stream of a head element and a tail supplier.default <U> UTransforms thisStream.Transposes the rows and columns of aStreammatrix.Constructor parameters in io.vavr.collection with type arguments of type StreamModifierConstructorDescription(package private)(package private)AppendSelf(Stream.Cons<T> self, Function<? super Stream<T>, ? extends Stream<T>> mapper) (package private)AppendSelf(Stream.Cons<T> self, Function<? super Stream<T>, ? extends Stream<T>> mapper) (package private)(package private)