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
(Consumer<? super List<T>> action) <R> Vector
<R> Vector.collect
(PartialFunction<? super T, ? extends R> partialFunction) Vector.combinations()
Vector.combinations
(int k) Vector.distinct()
Vector.distinctBy
(Comparator<? super T> comparator) Vector.distinctBy
(Function<? super T, ? extends U> keyExtractor) Vector.drop
(int n) Vector.dropRight
(int n) Vector.dropRightUntil
(Predicate<? super T> predicate) Vector.dropRightWhile
(Predicate<? super T> predicate) static <T> Vector
<T> Vector.empty()
Returns the empty Vector.static <T> Vector
<T> Returns a Vector containingn
values supplied by a given Suppliers
.static <T> Vector
<T> Vector.fill
(int n, T element) Returns a Vector containingn
times the givenelement
<U> Vector
<U> Vector.init()
Vector.intersperse
(T element) <U> Vector
<U> static <T> Vector
<T> Narrows a widenedVector<? extends T>
toVector<T>
by performing a type-safe cast.static <T> Vector
<T> Vector.of
(T element) Returns a singletonVector
, i.e.static <T> Vector
<T> Vector.of
(T... elements) Creates a Vector of the given elements.Vector.ofAll
(boolean... elements) Creates a Vector from boolean values.Vector.ofAll
(byte... elements) Creates a Vector from byte values.Vector.ofAll
(char... elements) Creates a Vector from char values.Vector.ofAll
(double... elements) Creates a Vector from double values.Vector.ofAll
(float... elements) Creates a Vector from float values.Vector.ofAll
(int... elements) Creates a Vector from int values.Vector.ofAll
(long... elements) Creates a Vector from long values.Vector.ofAll
(short... elements) Creates a Vector from short values.private static <T> Vector
<T> Vector.ofAll
(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
(Iterable<? extends T> iterable) Vector.range
(char from, char toExclusive) 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) Vector.rangeBy
(double from, double toExclusive, double step) 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) 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) Vector.rangeClosedBy
(double from, double toInclusive, double step) 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
(Predicate<T> predicate) Vector.removeLast
(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, BiFunction<? super U, ? super T, ? extends U> operation) <U> Vector
<U> Vector.scanRight
(U zero, BiFunction<? super T, ? super U, ? extends U> operation) Vector.shuffle()
Vector.slice
(int beginIndex, int endIndex) Vector.sortBy
(Comparator<? super U> comparator, Function<? super T, ? extends U> mapper) <U extends Comparable<? super U>>
Vector<T> Vector.sorted()
Vector.sorted
(Comparator<? super T> comparator) Vector.subSequence
(int beginIndex) Vector.subSequence
(int beginIndex, int endIndex) static <T> Vector
<T> Returns a Vector containingn
values of a given Functionf
over a range of integer values from 0 ton - 1
.Vector.tail()
Vector.take
(int n) Vector.takeRight
(int n) Vector.takeRightUntil
(Predicate<? super T> predicate) Vector.takeRightWhile
(Predicate<? super T> predicate) Transposes the rows and columns of aVector
matrix.static <T> Vector
<T> Creates a Vector from a seed value and a function.static <T,
U> Vector <U> Vector.unfoldLeft
(T seed, 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, Function<? super T, Option<Tuple2<? extends U, ? extends T>>> f) Creates a Vector from a seed value and a function.Vector.wrap
(BitMappedTrie<T> trie) <U,
R> Vector <R> Vector.zipWith
(Iterable<? extends U> that, BiFunction<? super T, ? super U, ? extends R> mapper) Vector.zipWithIndex()
<U> Vector
<U> Vector.zipWithIndex
(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 aCollector
which 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
(Predicate<? super T> predicate) Vector.splitAtInclusive
(Predicate<? super T> predicate) Vector.tailOption()
Transposes the rows and columns of aVector
matrix.Methods in io.vavr.collection with parameters of type VectorModifier and TypeMethodDescriptionstatic <T> Vector
<T> Narrows a widenedVector<? extends T>
toVector<T>
by performing a type-safe cast.Transposes the rows and columns of aVector
matrix.Method parameters in io.vavr.collection with type arguments of type Vector