Uses of Class
io.vavr.collection.Array
Packages that use Array
Package
Description
Beside
API the io.vavr package contains core types like (Checked)Functions and Tuples.Purely functional collections based on Traversable.
-
Uses of Array in io.vavr
Modifier and TypeMethodDescriptionstatic <T> Array<T> API.Array()Alias forArray.empty()static <T> Array<T> API.Array(T element) Alias forArray.of(Object)static <T> Array<T> API.Array(T @NonNull ... elements) Alias forArray.of(Object...)Value.toArray()Converts this to aArray. -
Uses of Array in io.vavr.collection
Fields in io.vavr.collection declared as ArrayMethods in io.vavr.collection that return ArrayModifier and TypeMethodDescriptionArray.asJavaMutable(@NonNull Consumer<? super List<T>> action) <R> Array<R> Array.collect(@NonNull PartialFunction<? super T, ? extends R> partialFunction) Array.combinations()Array.combinations(int k) Array.distinct()Array.distinctBy(@NonNull Comparator<? super T> comparator) Array.distinctBy(@NonNull Function<? super T, ? extends U> keyExtractor) Array.distinctByKeepLast(@NonNull Comparator<? super T> comparator) Array.distinctByKeepLast(@NonNull Function<? super T, ? extends U> keyExtractor) Array.drop(int n) Array.dropRight(int n) Array.dropRightUntil(@NonNull Predicate<? super T> predicate) Array.dropRightWhile(@NonNull Predicate<? super T> predicate) static <T> Array<T> Array.empty()Returns the empty Array.static <T> Array<T> Returns an Array containingnvalues supplied by a given Suppliers.static <T> Array<T> Array.fill(int n, T element) Returns an Array containingntimes the givenelement<U> Array<U> Array.init()Array.intersperse(T element) <U> Array<U> <U> Array<U> Array.mapTo(U value) Array.mapToVoid()static <T> Array<T> Narrows aArray<? extends T>toArray<T>via a type-safe cast.static <T> Array<T> Array.of(T element) Returns a singletonArray, i.e.static <T> Array<T> Array.of(T @NonNull ... elements) Creates an Array of the given elements.Array.ofAll(boolean @NonNull ... elements) Creates an Array from boolean values.Array.ofAll(byte @NonNull ... elements) Creates an Array from byte values.Array.ofAll(char @NonNull ... elements) Creates an Array from char values.Array.ofAll(double @NonNull ... elements) Creates an Array from double values.Array.ofAll(float @NonNull ... elements) Creates an Array from float values.Array.ofAll(int @NonNull ... elements) Creates an Array from int values.Array.ofAll(long @NonNull ... elements) Creates an Array from long values.Array.ofAll(short @NonNull ... elements) Creates an Array from short values.static <T> Array<T> Creates an Array of the given elements.static <T> Array<T> Creates an Array that contains the elements of the givenStream.Array.permutations()Array.prependAll(@NonNull Iterable<? extends T> elements) Array.range(char from, char toExclusive) Creates an Array of char numbers starting fromfrom, extending totoExclusive - 1.Array.range(int from, int toExclusive) Creates an Array of int numbers starting fromfrom, extending totoExclusive - 1.Array.range(long from, long toExclusive) Creates an Array of long numbers starting fromfrom, extending totoExclusive - 1.Array.rangeBy(char from, char toExclusive, int step) Creates an Array of char numbers starting fromfrom, extending totoExclusive - 1, withstep.Array.rangeBy(double from, double toExclusive, double step) Creates an Array of double numbers starting fromfrom, extending totoExclusive - 1, withstep.Array.rangeBy(int from, int toExclusive, int step) Creates an Array of int numbers starting fromfrom, extending totoExclusive - 1, withstep.Array.rangeBy(long from, long toExclusive, long step) Creates an Array of long numbers starting fromfrom, extending totoExclusive - 1, withstep.Array.rangeClosed(char from, char toInclusive) Creates an Array of char numbers starting fromfrom, extending totoInclusive.Array.rangeClosed(int from, int toInclusive) Creates an Array of int numbers starting fromfrom, extending totoInclusive.Array.rangeClosed(long from, long toInclusive) Creates an Array of long numbers starting fromfrom, extending totoInclusive.Array.rangeClosedBy(char from, char toInclusive, int step) Creates an Array of char numbers starting fromfrom, extending totoInclusive, withstep.Array.rangeClosedBy(double from, double toInclusive, double step) Creates an Array of double numbers starting fromfrom, extending totoInclusive, withstep.Array.rangeClosedBy(int from, int toInclusive, int step) Creates an Array of int numbers starting fromfrom, extending totoInclusive, withstep.Array.rangeClosedBy(long from, long toInclusive, long step) Creates an Array of long numbers starting fromfrom, extending totoInclusive, withstep.Deprecated.Array.removeAt(int index) Array.removeFirst(@NonNull Predicate<T> predicate) Array.removeLast(@NonNull Predicate<T> predicate) Array.replaceAll(T currentElement, T newElement) Array.reverse()Array.rotateLeft(int n) Array.rotateRight(int n) <U> Array<U> Array.scanLeft(U zero, @NonNull BiFunction<? super U, ? super T, ? extends U> operation) <U> Array<U> Array.scanRight(U zero, @NonNull BiFunction<? super T, ? super U, ? extends U> operation) Array.shuffle()Array.slice(int beginIndex, int endIndex) Array.sortBy(@NonNull Comparator<? super U> comparator, Function<? super T, ? extends U> mapper) <U extends Comparable<? super U>>
Array<T> Array.sorted()Array.sorted(@NonNull Comparator<? super T> comparator) Array.subSequence(int beginIndex) Array.subSequence(int beginIndex, int endIndex) static <T> Array<T> Returns an Array containingnvalues of a given Functionfover a range of integer values from 0 ton - 1.Array.tail()Array.take(int n) Array.takeRight(int n) Array.takeRightUntil(@NonNull Predicate<? super T> predicate) Array.takeRightWhile(@NonNull Predicate<? super T> predicate) Transposes the rows and columns of anArraymatrix.static <T> Array<T> Creates an Array from a seed value and a function.static <T,U> Array <U> Array.unfoldLeft(T seed, Function<? super T, Option<Tuple2<? extends T, ? extends U>>> f) Creates an Array from a seed value and a function.static <T,U> Array <U> Array.unfoldRight(T seed, Function<? super T, Option<Tuple2<? extends U, ? extends T>>> f) Creates an Array from a seed value and a function.(package private) static <T> Array<T> <U,R> Array <R> Array.zipWith(@NonNull Iterable<? extends U> that, BiFunction<? super T, ? super U, ? extends R> mapper) Array.zipWithIndex()<U> Array<U> Array.zipWithIndex(@NonNull BiFunction<? super T, ? super Integer, ? extends U> mapper) Methods in io.vavr.collection that return types with arguments of type ArrayModifier and TypeMethodDescriptionArray.collector()Returns aCollectorwhich may be used in conjunction withStream.collect(java.util.stream.Collector)to obtain aArray.Array.combinations()Array.combinations(int k) Array.crossProduct(int power) Array.grouped(int size) Array.initOption()Array.permutations()Array.sliding(int size) Array.sliding(int size, int step) Array.splitAt(int n) Array.splitAt(int n) Array.splitAtInclusive(@NonNull Predicate<? super T> predicate) Array.splitAtInclusive(@NonNull Predicate<? super T> predicate) Array.tailOption()Transposes the rows and columns of anArraymatrix.Array.unzip3(@NonNull Function<? super T, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Array.unzip3(@NonNull Function<? super T, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Array.unzip3(@NonNull Function<? super T, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Methods in io.vavr.collection with parameters of type ArrayModifier and TypeMethodDescriptionstatic <T> Array<T> Narrows aArray<? extends T>toArray<T>via a type-safe cast.Transposes the rows and columns of anArraymatrix.Method parameters in io.vavr.collection with type arguments of type Array