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