Uses of Interface
io.vavr.collection.List
Packages that use List
Package
Description
Beside
API the io.vavr package contains core types like (Checked)Functions and Tuples.Purely functional collections based on Traversable.
A property check framework built around Property which integrates well with unit test frameworks like junit.
-
Uses of List in io.vavr
Modifier and TypeFieldDescriptionAPI.For1List.ts1API.For2List.ts1API.For3List.ts1API.For4List.ts1API.For5List.ts1API.For6List.ts1API.For7List.ts1API.For8List.ts1API.For2List.ts2API.For3List.ts2API.For4List.ts2API.For5List.ts2API.For6List.ts2API.For7List.ts2API.For8List.ts2API.For3List.ts3API.For4List.ts3API.For5List.ts3API.For6List.ts3API.For7List.ts3API.For8List.ts3API.For4List.ts4API.For5List.ts4API.For6List.ts4API.For7List.ts4API.For8List.ts4API.For5List.ts5API.For6List.ts5API.For7List.ts5API.For8List.ts5API.For6List.ts6API.For7List.ts6API.For8List.ts6API.For7List.ts7API.For8List.ts7API.For8List.ts8Modifier and TypeMethodDescriptionstatic <T, _1 extends T, _2 extends List<T>>
API.Match.Pattern2<List.Cons<T>, _1, _2> Patterns.$Cons(API.Match.Pattern<_1, ?> p1, API.Match.Pattern<_2, ?> p2) Modifier and TypeMethodDescriptionstatic <T> List<T> API.List()Alias forList.empty()static <T> List<T> API.List(T element) Alias forList.of(Object)static <T> List<T> API.List(T... elements) Alias forList.of(Object...)Value.toList()Converts this to aList.Value.toTree(Function<? super T, ? extends ID> idMapper, Function<? super T, ? extends ID> parentMapper) API.For1List.yield()A shortcut foryield(Function.identity()).<R> List<R> Yields a result for elements of the cross product of the underlying List.<R> List<R> API.For2List.yield(BiFunction<? super T1, ? super T2, ? extends R> f) Yields a result for elements of the cross product of the underlying Lists.<R> List<R> Yields a result for elements of the cross product of the underlying Lists.<R> List<R> Yields a result for elements of the cross product of the underlying Lists.<R> List<R> API.For5List.yield(Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? extends R> f) Yields a result for elements of the cross product of the underlying Lists.<R> List<R> API.For6List.yield(Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? extends R> f) Yields a result for elements of the cross product of the underlying Lists.<R> List<R> API.For7List.yield(Function7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? extends R> f) Yields a result for elements of the cross product of the underlying Lists.<R> List<R> API.For8List.yield(Function8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ? extends R> f) Yields a result for elements of the cross product of the underlying Lists.Modifier and TypeMethodDescriptionModifier and TypeMethodDescriptionstatic <T1> API.For1List<T1> Creates aFor-comprehension of one List.static <T1,T2> API.For2List <T1, T2> Creates aFor-comprehension of two Lists.static <T1,T2, T3> API.For3List <T1, T2, T3> Creates aFor-comprehension of three Lists.static <T1,T2, T3, T4>
API.For4List<T1, T2, T3, T4> Creates aFor-comprehension of 4 Lists.static <T1,T2, T3, T4, T5>
API.For5List<T1, T2, T3, T4, T5> Creates aFor-comprehension of 5 Lists.static <T1,T2, T3, T4, T5, T6>
API.For6List<T1, T2, T3, T4, T5, T6> Creates aFor-comprehension of 6 Lists.static <T1,T2, T3, T4, T5, T6, T7>
API.For7List<T1, T2, T3, T4, T5, T6, T7> API.For(List<T1> ts1, List<T2> ts2, List<T3> ts3, List<T4> ts4, List<T5> ts5, List<T6> ts6, List<T7> ts7) Creates aFor-comprehension of 7 Lists.static <T1,T2, T3, T4, T5, T6, T7, T8>
API.For8List<T1, T2, T3, T4, T5, T6, T7, T8> API.For(List<T1> ts1, List<T2> ts2, List<T3> ts3, List<T4> ts4, List<T5> ts5, List<T6> ts6, List<T7> ts7, List<T8> ts8) Creates aFor-comprehension of 8 Lists.ModifierConstructorDescriptionprivateprivateprivateprivateprivateprivateprivateFor7List(List<T1> ts1, List<T2> ts2, List<T3> ts3, List<T4> ts4, List<T5> ts5, List<T6> ts6, List<T7> ts7) privateFor8List(List<T1> ts1, List<T2> ts2, List<T3> ts3, List<T4> ts4, List<T5> ts5, List<T6> ts6, List<T7> ts7, List<T8> ts8) -
Uses of List in io.vavr.collection
Classes in io.vavr.collection that implement ListModifier and TypeClassDescriptionstatic final classList.Cons<T>Non-emptyList, consisting of aheadand atail.static final classList.Nil<T>Representation of the singleton emptyList.Fields in io.vavr.collection declared as ListMethods in io.vavr.collection that return ListModifier and TypeMethodDescriptionList.asJavaMutable(Consumer<? super List<T>> action) Tree.build(Iterable<? extends T> source, Function<? super T, ? extends ID> idMapper, Function<? super T, ? extends ID> parentMapper) Build aListwith roots ofTreefrom flat source.default <R> List<R> List.collect(PartialFunction<? super T, ? extends R> partialFunction) List.combinations()List.combinations(int k) List.distinct()List.distinctBy(Comparator<? super T> comparator) List.distinctBy(Function<? super T, ? extends U> keyExtractor) List.drop(int n) List.dropRight(int n) List.dropRightUntil(Predicate<? super T> predicate) List.dropRightWhile(Predicate<? super T> predicate) static <T> List<T> List.empty()Returns the single instance of Nil.static <T> List<T> Returns a List containingnvalues supplied by a given Suppliers.static <T> List<T> List.fill(int n, T element) Returns a List containingntimes the givenelementdefault <U> List<U> Tree.Empty.getChildren()Tree.getChildren()Returns the children of this tree.Tree.Node.getChildren()List.init()List.intersperse(T element) default <U> List<U> static <T> List<T> Narrows a widenedList<? extends T>toList<T>by performing a type-safe cast.static <T> List<T> List.of(T element) Returns a singletonList, i.e.static <T> List<T> List.of(T... elements) Creates a List of the given elements.List.ofAll(boolean... elements) Creates a List from boolean values.List.ofAll(byte... elements) Creates a List from byte values.List.ofAll(char... elements) Creates a List from char values.List.ofAll(double... elements) Creates a List from double values.List.ofAll(float... elements) Creates a List from float values.List.ofAll(int... elements) Creates a List from int values.List.ofAll(long... elements) Creates a List from long values.List.ofAll(short... elements) Creates a List from short values.static <T> List<T> Creates a List of the given elements.static <T> List<T> Creates a List that contains the elements of the givenStream.Performs an action on the head element of thisList.List.permutations()List.pop()Removes the head element from this List.List.prependAll(Iterable<? extends T> elements) Pushes a new element on top of this List.Pushes the given elements on top of this List.Pushes the given elements on top of this List.List.range(char from, char toExclusive) List.range(int from, int toExclusive) Creates a List of int numbers starting fromfrom, extending totoExclusive - 1.List.range(long from, long toExclusive) Creates a List of long numbers starting fromfrom, extending totoExclusive - 1.List.rangeBy(char from, char toExclusive, int step) List.rangeBy(double from, double toExclusive, double step) List.rangeBy(int from, int toExclusive, int step) Creates a List of int numbers starting fromfrom, extending totoExclusive - 1, withstep.List.rangeBy(long from, long toExclusive, long step) Creates a List of long numbers starting fromfrom, extending totoExclusive - 1, withstep.List.rangeClosed(char from, char toInclusive) List.rangeClosed(int from, int toInclusive) Creates a List of int numbers starting fromfrom, extending totoInclusive.List.rangeClosed(long from, long toInclusive) Creates a List of long numbers starting fromfrom, extending totoInclusive.List.rangeClosedBy(char from, char toInclusive, int step) List.rangeClosedBy(double from, double toInclusive, double step) List.rangeClosedBy(int from, int toInclusive, int step) Creates a List of int numbers starting fromfrom, extending totoInclusive, withstep.List.rangeClosedBy(long from, long toInclusive, long step) Creates a List of long numbers starting fromfrom, extending totoInclusive, withstep.Deprecated.List.removeAt(int index) List.removeFirst(Predicate<T> predicate) List.removeLast(Predicate<T> predicate) List.replaceAll(T currentElement, T newElement) List.reverse()List.rotateLeft(int n) List.rotateRight(int n) default <U> List<U> List.scanLeft(U zero, BiFunction<? super U, ? super T, ? extends U> operation) default <U> List<U> List.scanRight(U zero, BiFunction<? super T, ? super U, ? extends U> operation) List.shuffle()List.slice(int beginIndex, int endIndex) List.sortBy(Comparator<? super U> comparator, Function<? super T, ? extends U> mapper) default <U extends Comparable<? super U>>
List<T> List.sorted()List.sorted(Comparator<? super T> comparator) List.subSequence(int beginIndex) List.subSequence(int beginIndex, int endIndex) static <T> List<T> Returns a List containingnvalues of a given Functionfover a range of integer values from 0 ton - 1.List.Cons.tail()List.Nil.tail()List.tail()List.take(int n) List.takeRight(int n) List.takeRightUntil(Predicate<? super T> predicate) List.takeRightWhile(Predicate<? super T> predicate) PriorityQueue.toList()Transposes the rows and columns of aListmatrix.static <T> List<T> Creates a list from a seed value and a function.static <T,U> List <U> List.unfoldLeft(T seed, Function<? super T, Option<Tuple2<? extends T, ? extends U>>> f) Creates a list from a seed value and a function.static <T,U> List <U> List.unfoldRight(T seed, Function<? super T, Option<Tuple2<? extends U, ? extends T>>> f) Creates a list from a seed value and a function.default <U,R> List <R> List.zipWith(Iterable<? extends U> that, BiFunction<? super T, ? super U, ? extends R> mapper) List.zipWithIndex()default <U> List<U> List.zipWithIndex(BiFunction<? super T, ? super Integer, ? extends U> mapper) Methods in io.vavr.collection that return types with arguments of type ListModifier and TypeMethodDescriptionList.collector()Returns aCollectorwhich may be used in conjunction withStream.collect(java.util.stream.Collector)to obtain aList.List.combinations()List.combinations(int k) List.crossProduct(int power) List.grouped(int size) List.initOption()List.permutations()List.pop2()Removes the head element from this List.List.pop2Option()Removes the head element from this List.List.popOption()Removes the head element from this List.List.sliding(int size) List.sliding(int size, int step) List.splitAt(int n) List.splitAt(int n) List.splitAtInclusive(Predicate<? super T> predicate) List.splitAtInclusive(Predicate<? super T> predicate) ListModule.SplitAt.splitByPredicateReversed(List<T> source, Predicate<? super T> predicate) ListModule.SplitAt.splitByPredicateReversed(List<T> source, Predicate<? super T> predicate) List.tailOption()Transposes the rows and columns of aListmatrix.Methods in io.vavr.collection with parameters of type ListModifier and TypeMethodDescriptionstatic <T> Stream<T> static <T> List<T> Narrows a widenedList<? extends T>toList<T>by performing a type-safe cast.ListModule.SplitAt.splitByPredicateReversed(List<T> source, Predicate<? super T> predicate) Transposes the rows and columns of aListmatrix.Method parameters in io.vavr.collection with type arguments of type ListModifier and TypeMethodDescriptiondefault <U> UTransforms thisList.Transposes the rows and columns of aListmatrix.Constructors in io.vavr.collection with parameters of type ListModifierConstructorDescriptionprivateCreates a List consisting of a head value and a trailing List.Constructs a rose tree branch.privateCreates a Queue consisting of a front List and a rear List. -
Uses of List in io.vavr.test
Methods in io.vavr.test that return types with arguments of type List