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... 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(Consumer<? super List<T>> action) <R> Array<R> Array.collect(PartialFunction<? super T, ? extends R> partialFunction) Array.combinations()Array.combinations(int k) Array.distinct()Array.distinctBy(Comparator<? super T> comparator) Array.distinctBy(Function<? super T, ? extends U> keyExtractor) Array.drop(int n) Array.dropRight(int n) Array.dropRightUntil(Predicate<? super T> predicate) Array.dropRightWhile(Predicate<? super T> predicate) static <T> Array<T> Array.empty()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> static <T> Array<T> Narrows a widenedArray<? extends T>toArray<T>by performing a type-safe cast.static <T> Array<T> Array.of(T element) Returns a singletonArray, i.e.static <T> Array<T> Array.of(T... elements) Creates an Array of the given elements.Array.ofAll(boolean... elements) Creates an Array from boolean values.Array.ofAll(byte... elements) Creates an Array from byte values.Array.ofAll(char... elements) Creates an Array from char values.Array.ofAll(double... elements) Creates an Array from double values.Array.ofAll(float... elements) Creates an Array from float values.Array.ofAll(int... elements) Creates an Array from int values.Array.ofAll(long... elements) Creates an Array from long values.Array.ofAll(short... 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(Iterable<? extends T> elements) Array.range(char from, char toExclusive) 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) Array.rangeBy(double from, double toExclusive, double step) 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) 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) Array.rangeClosedBy(double from, double toInclusive, double step) 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(Predicate<T> predicate) Array.removeLast(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, BiFunction<? super U, ? super T, ? extends U> operation) <U> Array<U> Array.scanRight(U zero, BiFunction<? super T, ? super U, ? extends U> operation) Array.shuffle()Array.slice(int beginIndex, int endIndex) Array.sortBy(Comparator<? super U> comparator, Function<? super T, ? extends U> mapper) <U extends Comparable<? super U>>
Array<T> Array.sorted()Array.sorted(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(Predicate<? super T> predicate) Array.takeRightWhile(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(Iterable<? extends U> that, BiFunction<? super T, ? super U, ? extends R> mapper) Array.zipWithIndex()<U> Array<U> Array.zipWithIndex(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(Predicate<? super T> predicate) Array.splitAtInclusive(Predicate<? super T> predicate) Array.tailOption()Transposes the rows and columns of anArraymatrix.Methods in io.vavr.collection with parameters of type ArrayModifier and TypeMethodDescriptionstatic <T> Array<T> Narrows a widenedArray<? extends T>toArray<T>by performing a type-safe cast.Transposes the rows and columns of anArraymatrix.Method parameters in io.vavr.collection with type arguments of type Array