Package | Description |
---|---|
io.vavr | |
io.vavr.collection |
Purely functional collections based on Traversable.
|
Modifier and Type | Method and Description |
---|---|
static <T> IndexedSeq<T> |
API.IndexedSeq()
Alias for
Vector.empty() |
static <T> IndexedSeq<T> |
API.IndexedSeq(T... elements)
Alias for
Vector.of(Object...) |
static <T> IndexedSeq<T> |
API.IndexedSeq(T element)
Alias for
Vector.of(Object) |
Modifier and Type | Class and Description |
---|---|
class |
Array<T>
Array is a Traversable wrapper for
Object[] containing elements of type T . |
class |
CharSeq
The CharSeq (read: character sequence) collection essentially is a rich String wrapper having all operations
we know from the functional Vavr collections.
|
class |
Vector<T>
Vector is the default Seq implementation that provides effectively constant time access to any element.
|
Modifier and Type | Method and Description |
---|---|
IndexedSeq<T> |
IndexedSeq.append(T element) |
IndexedSeq<T> |
IndexedSeq.appendAll(java.lang.Iterable<? extends T> elements) |
IndexedSeq<T> |
IndexedSeq.asJava(java.util.function.Consumer<? super java.util.List<T>> action) |
IndexedSeq<T> |
IndexedSeq.asJavaMutable(java.util.function.Consumer<? super java.util.List<T>> action) |
<R> IndexedSeq<R> |
CharSeq.collect(PartialFunction<? super java.lang.Character,? extends R> partialFunction) |
<R> IndexedSeq<R> |
IndexedSeq.collect(PartialFunction<? super T,? extends R> partialFunction) |
IndexedSeq<? extends IndexedSeq<T>> |
IndexedSeq.combinations() |
IndexedSeq<CharSeq> |
CharSeq.combinations() |
IndexedSeq<? extends IndexedSeq<T>> |
IndexedSeq.combinations(int k) |
IndexedSeq<CharSeq> |
CharSeq.combinations(int k) |
IndexedSeq<T> |
IndexedSeq.distinct() |
IndexedSeq<T> |
IndexedSeq.distinctBy(java.util.Comparator<? super T> comparator) |
<U> IndexedSeq<T> |
IndexedSeq.distinctBy(java.util.function.Function<? super T,? extends U> keyExtractor) |
IndexedSeq<T> |
IndexedSeq.drop(int n) |
IndexedSeq<T> |
IndexedSeq.dropRight(int n) |
IndexedSeq<T> |
IndexedSeq.dropRightUntil(java.util.function.Predicate<? super T> predicate) |
IndexedSeq<T> |
IndexedSeq.dropRightWhile(java.util.function.Predicate<? super T> predicate) |
IndexedSeq<T> |
IndexedSeq.dropUntil(java.util.function.Predicate<? super T> predicate) |
IndexedSeq<T> |
IndexedSeq.dropWhile(java.util.function.Predicate<? super T> predicate) |
IndexedSeq<T> |
IndexedSeq.filter(java.util.function.Predicate<? super T> predicate) |
<U> IndexedSeq<U> |
CharSeq.flatMap(java.util.function.Function<? super java.lang.Character,? extends java.lang.Iterable<? extends U>> mapper) |
<U> IndexedSeq<U> |
IndexedSeq.flatMap(java.util.function.Function<? super T,? extends java.lang.Iterable<? extends U>> mapper) |
IndexedSeq<T> |
IndexedSeq.init() |
IndexedSeq<T> |
IndexedSeq.insert(int index,
T element) |
IndexedSeq<T> |
IndexedSeq.insertAll(int index,
java.lang.Iterable<? extends T> elements) |
IndexedSeq<T> |
IndexedSeq.intersperse(T element) |
<U> IndexedSeq<U> |
CharSeq.map(java.util.function.Function<? super java.lang.Character,? extends U> mapper) |
<U> IndexedSeq<U> |
IndexedSeq.map(java.util.function.Function<? super T,? extends U> mapper) |
static <T> IndexedSeq<T> |
IndexedSeq.narrow(IndexedSeq<? extends T> indexedSeq)
Narrows a widened
IndexedSeq<? extends T> to IndexedSeq<T>
by performing a type-safe cast. |
IndexedSeq<T> |
IndexedSeq.orElse(java.lang.Iterable<? extends T> other) |
IndexedSeq<T> |
IndexedSeq.orElse(java.util.function.Supplier<? extends java.lang.Iterable<? extends T>> supplier) |
IndexedSeq<T> |
IndexedSeq.padTo(int length,
T element) |
IndexedSeq<T> |
IndexedSeq.patch(int from,
java.lang.Iterable<? extends T> that,
int replaced) |
IndexedSeq<T> |
IndexedSeq.peek(java.util.function.Consumer<? super T> action) |
IndexedSeq<? extends IndexedSeq<T>> |
IndexedSeq.permutations() |
IndexedSeq<CharSeq> |
CharSeq.permutations() |
IndexedSeq<T> |
IndexedSeq.prepend(T element) |
IndexedSeq<T> |
IndexedSeq.prependAll(java.lang.Iterable<? extends T> elements) |
IndexedSeq<T> |
IndexedSeq.remove(T element) |
IndexedSeq<T> |
IndexedSeq.removeAll(java.lang.Iterable<? extends T> elements) |
IndexedSeq<T> |
IndexedSeq.removeAll(java.util.function.Predicate<? super T> predicate) |
IndexedSeq<T> |
IndexedSeq.removeAll(T element) |
IndexedSeq<T> |
IndexedSeq.removeAt(int index) |
IndexedSeq<T> |
IndexedSeq.removeFirst(java.util.function.Predicate<T> predicate) |
IndexedSeq<T> |
IndexedSeq.removeLast(java.util.function.Predicate<T> predicate) |
IndexedSeq<T> |
IndexedSeq.replace(T currentElement,
T newElement) |
IndexedSeq<T> |
IndexedSeq.replaceAll(T currentElement,
T newElement) |
IndexedSeq<T> |
IndexedSeq.retainAll(java.lang.Iterable<? extends T> elements) |
IndexedSeq<T> |
IndexedSeq.reverse() |
IndexedSeq<T> |
IndexedSeq.scan(T zero,
java.util.function.BiFunction<? super T,? super T,? extends T> operation) |
<U> IndexedSeq<U> |
CharSeq.scanLeft(U zero,
java.util.function.BiFunction<? super U,? super java.lang.Character,? extends U> operation) |
<U> IndexedSeq<U> |
IndexedSeq.scanLeft(U zero,
java.util.function.BiFunction<? super U,? super T,? extends U> operation) |
<U> IndexedSeq<U> |
CharSeq.scanRight(U zero,
java.util.function.BiFunction<? super java.lang.Character,? super U,? extends U> operation) |
<U> IndexedSeq<U> |
IndexedSeq.scanRight(U zero,
java.util.function.BiFunction<? super T,? super U,? extends U> operation) |
IndexedSeq<T> |
IndexedSeq.shuffle() |
IndexedSeq<T> |
IndexedSeq.slice(int beginIndex,
int endIndex) |
<U> IndexedSeq<T> |
IndexedSeq.sortBy(java.util.Comparator<? super U> comparator,
java.util.function.Function<? super T,? extends U> mapper) |
<U extends java.lang.Comparable<? super U>> |
IndexedSeq.sortBy(java.util.function.Function<? super T,? extends U> mapper) |
IndexedSeq<T> |
IndexedSeq.sorted() |
IndexedSeq<T> |
IndexedSeq.sorted(java.util.Comparator<? super T> comparator) |
IndexedSeq<T> |
IndexedSeq.subSequence(int beginIndex) |
IndexedSeq<T> |
IndexedSeq.subSequence(int beginIndex,
int endIndex) |
IndexedSeq<T> |
IndexedSeq.tail() |
IndexedSeq<T> |
IndexedSeq.take(int n) |
IndexedSeq<T> |
IndexedSeq.takeRight(int n) |
IndexedSeq<T> |
IndexedSeq.takeUntil(java.util.function.Predicate<? super T> predicate) |
IndexedSeq<T> |
IndexedSeq.takeWhile(java.util.function.Predicate<? super T> predicate) |
IndexedSeq<T> |
IndexedSeq.update(int index,
java.util.function.Function<? super T,? extends T> updater) |
IndexedSeq<T> |
IndexedSeq.update(int index,
T element) |
<U> IndexedSeq<Tuple2<T,U>> |
IndexedSeq.zip(java.lang.Iterable<? extends U> that) |
<U> IndexedSeq<Tuple2<java.lang.Character,U>> |
CharSeq.zip(java.lang.Iterable<? extends U> that) |
<U> IndexedSeq<Tuple2<java.lang.Character,U>> |
CharSeq.zipAll(java.lang.Iterable<? extends U> that,
java.lang.Character thisElem,
U thatElem) |
<U> IndexedSeq<Tuple2<T,U>> |
IndexedSeq.zipAll(java.lang.Iterable<? extends U> that,
T thisElem,
U thatElem) |
<U,R> IndexedSeq<R> |
CharSeq.zipWith(java.lang.Iterable<? extends U> that,
java.util.function.BiFunction<? super java.lang.Character,? super U,? extends R> mapper) |
<U,R> IndexedSeq<R> |
IndexedSeq.zipWith(java.lang.Iterable<? extends U> that,
java.util.function.BiFunction<? super T,? super U,? extends R> mapper) |
IndexedSeq<Tuple2<T,java.lang.Integer>> |
IndexedSeq.zipWithIndex() |
IndexedSeq<Tuple2<java.lang.Character,java.lang.Integer>> |
CharSeq.zipWithIndex() |
<U> IndexedSeq<U> |
CharSeq.zipWithIndex(java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Integer,? extends U> mapper) |
<U> IndexedSeq<U> |
IndexedSeq.zipWithIndex(java.util.function.BiFunction<? super T,? super java.lang.Integer,? extends U> mapper) |
Modifier and Type | Method and Description |
---|---|
IndexedSeq<? extends IndexedSeq<T>> |
IndexedSeq.combinations() |
IndexedSeq<? extends IndexedSeq<T>> |
IndexedSeq.combinations(int k) |
Iterator<? extends IndexedSeq<T>> |
IndexedSeq.crossProduct(int power) |
<C> Map<C,? extends IndexedSeq<T>> |
IndexedSeq.groupBy(java.util.function.Function<? super T,? extends C> classifier) |
Iterator<? extends IndexedSeq<T>> |
IndexedSeq.grouped(int size) |
Option<? extends IndexedSeq<T>> |
IndexedSeq.initOption() |
Tuple2<? extends IndexedSeq<T>,? extends IndexedSeq<T>> |
IndexedSeq.partition(java.util.function.Predicate<? super T> predicate) |
Tuple2<? extends IndexedSeq<T>,? extends IndexedSeq<T>> |
IndexedSeq.partition(java.util.function.Predicate<? super T> predicate) |
IndexedSeq<? extends IndexedSeq<T>> |
IndexedSeq.permutations() |
Iterator<? extends IndexedSeq<T>> |
IndexedSeq.slideBy(java.util.function.Function<? super T,?> classifier) |
Iterator<? extends IndexedSeq<T>> |
IndexedSeq.sliding(int size) |
Iterator<? extends IndexedSeq<T>> |
IndexedSeq.sliding(int size,
int step) |
Tuple2<? extends IndexedSeq<T>,? extends IndexedSeq<T>> |
IndexedSeq.span(java.util.function.Predicate<? super T> predicate) |
Tuple2<? extends IndexedSeq<T>,? extends IndexedSeq<T>> |
IndexedSeq.span(java.util.function.Predicate<? super T> predicate) |
Option<? extends IndexedSeq<T>> |
IndexedSeq.tailOption() |
<T1,T2> Tuple2<IndexedSeq<T1>,IndexedSeq<T2>> |
CharSeq.unzip(java.util.function.Function<? super java.lang.Character,Tuple2<? extends T1,? extends T2>> unzipper) |
<T1,T2> Tuple2<IndexedSeq<T1>,IndexedSeq<T2>> |
CharSeq.unzip(java.util.function.Function<? super java.lang.Character,Tuple2<? extends T1,? extends T2>> unzipper) |
<T1,T2> Tuple2<? extends IndexedSeq<T1>,? extends IndexedSeq<T2>> |
IndexedSeq.unzip(java.util.function.Function<? super T,Tuple2<? extends T1,? extends T2>> unzipper) |
<T1,T2> Tuple2<? extends IndexedSeq<T1>,? extends IndexedSeq<T2>> |
IndexedSeq.unzip(java.util.function.Function<? super T,Tuple2<? extends T1,? extends T2>> unzipper) |
<T1,T2,T3> Tuple3<IndexedSeq<T1>,IndexedSeq<T2>,IndexedSeq<T3>> |
CharSeq.unzip3(java.util.function.Function<? super java.lang.Character,Tuple3<? extends T1,? extends T2,? extends T3>> unzipper) |
<T1,T2,T3> Tuple3<IndexedSeq<T1>,IndexedSeq<T2>,IndexedSeq<T3>> |
CharSeq.unzip3(java.util.function.Function<? super java.lang.Character,Tuple3<? extends T1,? extends T2,? extends T3>> unzipper) |
<T1,T2,T3> Tuple3<IndexedSeq<T1>,IndexedSeq<T2>,IndexedSeq<T3>> |
CharSeq.unzip3(java.util.function.Function<? super java.lang.Character,Tuple3<? extends T1,? extends T2,? extends T3>> unzipper) |
<T1,T2,T3> Tuple3<? extends IndexedSeq<T1>,? extends IndexedSeq<T2>,? extends IndexedSeq<T3>> |
IndexedSeq.unzip3(java.util.function.Function<? super T,Tuple3<? extends T1,? extends T2,? extends T3>> unzipper) |
<T1,T2,T3> Tuple3<? extends IndexedSeq<T1>,? extends IndexedSeq<T2>,? extends IndexedSeq<T3>> |
IndexedSeq.unzip3(java.util.function.Function<? super T,Tuple3<? extends T1,? extends T2,? extends T3>> unzipper) |
<T1,T2,T3> Tuple3<? extends IndexedSeq<T1>,? extends IndexedSeq<T2>,? extends IndexedSeq<T3>> |
IndexedSeq.unzip3(java.util.function.Function<? super T,Tuple3<? extends T1,? extends T2,? extends T3>> unzipper) |
Modifier and Type | Method and Description |
---|---|
static <T> IndexedSeq<T> |
IndexedSeq.narrow(IndexedSeq<? extends T> indexedSeq)
Narrows a widened
IndexedSeq<? extends T> to IndexedSeq<T>
by performing a type-safe cast. |
Copyright © 2017. All Rights Reserved.