Uses of Class
io.vavr.Tuple2
Packages that use Tuple2
Package
Description
Beside
API the io.vavr package contains core types like (Checked)Functions and Tuples.Purely functional collections based on Traversable.
This package contains basic building blocks for creating fast, asynchronous, non-blocking parallel code.
-
Uses of Tuple2 in io.vavr
Modifier and TypeClassDescriptionstatic classAPI.Match.Pattern2<T,T1, T2> AAPI.Match.Patternimplementation for the pattern with 2 intermediate typesfinal classTuple2<T1,T2> A tuple of two elements which can be seen as cartesian product of two components.Modifier and TypeMethodDescriptionValueModule.toMap(Value<T> value, R empty, Function<E, R> ofElement, Function<Iterable<E>, R> ofAll, Function<? super T, ? extends E> f) Modifier and TypeMethodDescriptionTuple1.append(T2 t2) Append a value to this tuple.<T1,T2> Tuple2 <T1, T2> Concat a tuple's values to this tuple.Concat a tuple's values to this tuple.static <T1,T2> Tuple2 <T1, T2> Creates aTuple2from aMap.Entry.<U1,U2> Tuple2 <U1, U2> Tuple2.map(@NonNull BiFunction<? super T1, ? super T2, Tuple2<U1, U2>> mapper) Maps the components of this tuple using a mapper function.<U1,U2> Tuple2 <U1, U2> Tuple2.map(@NonNull Function<? super T1, ? extends U1> f1, @NonNull Function<? super T2, ? extends U2> f2) Maps the components of this tuple using a mapper function for each component.Maps the 1st component of this tuple to a new value.Maps the 2nd component of this tuple to a new value.static <T1,T2> Tuple2 <T1, T2> Narrows a widenedTuple2<? extends T1, ? extends T2>toTuple2<T1, T2>.static <T1,T2> Tuple2 <T1, T2> Tuple.of(T1 t1, T2 t2) Creates a tuple of two elements.Turns a sequence ofTuple2into a Tuple2 ofSeqs.Tuple2.swap()Swaps the elements of thisTuple.static <T1,T2> Tuple2 <T1, T2> API.Tuple(T1 t1, T2 t2) Alias forTuple.of(Object, Object)Creates a tuple of two elements.(package private) static <T1,T2> Tuple2 <T1, T2> Sets the 1st element of this tuple to the givenvalue.Sets the 2nd element of this tuple to the givenvalue.Modifier and TypeMethodDescriptionstatic <T1, T2, _1 extends T1, _2 extends T2>
API.Match.Pattern2<Tuple2<T1, T2>, _1, _2> Patterns.$Tuple2(API.Match.Pattern<_1, ?> p1, API.Match.Pattern<_2, ?> p2) static <T1,T2> Comparator <Tuple2<T1, T2>> Tuple2.comparator(Comparator<? super T1> t1Comp, Comparator<? super T2> t2Comp) default CheckedFunction1<Tuple2<T1, T2>, R> CheckedFunction2.tupled()Returns a tupled version of this function.Function2.tupled()Returns a tupled version of this function.Modifier and TypeMethodDescriptionprivate static <U1 extends Comparable<? super U1>, U2 extends Comparable<? super U2>>
intint<T1,T2> Tuple2 <T1, T2> Concat a tuple's values to this tuple.Concat a tuple's values to this tuple.Concat a tuple's values to this tuple.Concat a tuple's values to this tuple.Concat a tuple's values to this tuple.Concat a tuple's values to this tuple.Concat a tuple's values to this tuple.static <K,V> Map <K, V> Deprecated.Will be removed in a future version.static <K,V> Map <K, V> Deprecated.Will be removed in a future version.static <T1,T2> Tuple2 <T1, T2> Narrows a widenedTuple2<? extends T1, ? extends T2>toTuple2<T1, T2>.static <K extends Comparable<? super K>, V>
SortedMap<K, V> Deprecated.Will be removed in a future version.static <K,V> SortedMap <K, V> API.SortedMap(@NonNull Comparator<? super K> keyComparator, Tuple2<? extends K, ? extends V> @NonNull ... entries) Deprecated.Will be removed in a future version.(package private) static <T1,T2> Tuple2 <T1, T2> Modifier and TypeMethodDescription<U1,U2> Tuple2 <U1, U2> Tuple2.map(@NonNull BiFunction<? super T1, ? super T2, Tuple2<U1, U2>> mapper) Maps the components of this tuple using a mapper function.static <T, T1 extends U1, U1, T2 extends U2, U2>
API.Match.Pattern2<T, T1, T2> API.Match.Pattern2.of(@NonNull Class<? super T> type, @NonNull API.Match.Pattern<T1, ?> p1, @NonNull API.Match.Pattern<T2, ?> p2, @NonNull Function<T, Tuple2<U1, U2>> unapply) Static factory for aAPI.Match.Pattern2based on aClass, 2API.Match.Patterns to decompose it to and a mapper to aggregate result back into aTuple2Turns a sequence ofTuple2into a Tuple2 ofSeqs.default <K,V> Map <K, V> Converts this to a mutableMap.default <K, V, MAP extends Map<K,V>>
MAPValue.toJavaMap(@NonNull Supplier<MAP> factory, @NonNull Function<? super T, ? extends Tuple2<? extends K, ? extends V>> f) Converts this to a specific mutableMap.default <K,V> Map <K, V> Value.toLinkedMap(@NonNull Function<? super T, ? extends Tuple2<? extends K, ? extends V>> f) Converts this to aMap.default <K,V> Map <K, V> Converts this to aMap.default <K,V> SortedMap <K, V> Value.toSortedMap(@NonNull Comparator<? super K> comparator, @NonNull Function<? super T, ? extends Tuple2<? extends K, ? extends V>> f) Converts this to aMap.default <K extends Comparable<? super K>, V>
SortedMap<K, V> Value.toSortedMap(@NonNull Function<? super T, ? extends Tuple2<? extends K, ? extends V>> f) Converts this to aMap. -
Uses of Tuple2 in io.vavr.collection
Subinterfaces with type arguments of type Tuple2 in io.vavr.collectionModifier and TypeInterfaceDescription(package private) interfaceHashArrayMappedTrie<K,V> An immutable Hash array mapped trie (HAMT).interfaceMap<K,V> An immutableMapinterface.(package private) static interfaceMaps.OfEntries<K, V, M extends Map<K,V>> interfaceMultimap<K,V> An immutableMultimapinterface.private static interfaceFields in io.vavr.collection with type parameters of type Tuple2Modifier and TypeFieldDescriptionprivate final RedBlackTree<Tuple2<K, V>> TreeMap.entriesLinkedHashMap.listMethods in io.vavr.collection that return Tuple2Modifier and TypeMethodDescriptionprivate static <T> Tuple2<? extends RedBlackTree<T>, Boolean> RedBlackTreeModule.Node.blackify(RedBlackTree<T> tree) HashMap.computeIfAbsent(K key, @NonNull Function<? super K, ? extends V> mappingFunction) Tuple2<V, LinkedHashMap<K, V>> LinkedHashMap.computeIfAbsent(K key, @NonNull Function<? super K, ? extends V> mappingFunction) Map.computeIfAbsent(K key, @NonNull Function<? super K, ? extends V> mappingFunction) If the specified key is not already associated with a value, attempts to compute its value using the given mapping function and enters it into this map.Maps.computeIfAbsent(M map, K key, Function<? super K, ? extends V> mappingFunction) SortedMap.computeIfAbsent(K key, @NonNull Function<? super K, ? extends V> mappingFunction) TreeMap.computeIfAbsent(K key, @NonNull Function<? super K, ? extends V> mappingFunction) HashMap.computeIfPresent(K key, @NonNull BiFunction<? super K, ? super V, ? extends V> remappingFunction) LinkedHashMap.computeIfPresent(K key, @NonNull BiFunction<? super K, ? super V, ? extends V> remappingFunction) Map.computeIfPresent(K key, @NonNull BiFunction<? super K, ? super V, ? extends V> remappingFunction) If the value for the specified key is present, attempts to compute a new mapping given the key and its current mapped value.Maps.computeIfPresent(M map, K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) SortedMap.computeIfPresent(K key, @NonNull BiFunction<? super K, ? super V, ? extends V> remappingFunction) TreeMap.computeIfPresent(K key, @NonNull BiFunction<? super K, ? super V, ? extends V> remappingFunction) (package private) static <T> Tuple2<? extends RedBlackTree<T>, Boolean> RedBlackTreeModule.Node.delete(RedBlackTree<T> tree, T value) (package private) static <T> Tuple2<T, Seq<PriorityQueueBase.Node<T>>> PriorityQueueBase.deleteMin(Comparator<? super T> comparator, Seq<PriorityQueueBase.Node<T>> forest) fun deleteMin [] = raise EMPTY * | deleteMin ts = * val (Node (x,r,c), ts) = getMin ts * val (ts',xs') = split ([],[],c) * in fold insert xs' (meld (ts, ts')) endAbstractQueue.dequeue()Removes an element from this Queue.Tuple2<T, PriorityQueue<T>> PriorityQueue.dequeue()Creates two new iterators that both iterates over the same elements as this iterator and in the same order.static <K,V> Tuple2 <K, V> Map.entry(K key, V value) Creates a key/value pair for use withMapfactories.LinearSeqModule.Slice.findNextSlice(LinearSeq<T> source, LinearSeq<T> slice) AbstractMultimap.head()HashMap.head()LinkedHashMap.head()TreeMap.head()AbstractMultimap.last()HashMap.last()LinkedHashMap.last()SortedMap.last()TreeMap.last()(package private) static <C extends Traversable<T>, T>
Tuple2<C, C> Collections.partition(C collection, Function<Iterable<T>, C> creator, Predicate<? super T> predicate) Tuple2<? extends IndexedSeq<T>, ? extends IndexedSeq<T>> Tuple2<LinkedHashMap<K, V>, LinkedHashMap<K, V>> Maps.partition(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate) Tuple2<? extends PriorityQueue<T>, ? extends PriorityQueue<T>> Tuple2<? extends SortedMultimap<K, V>, ? extends SortedMultimap<K, V>> Tuple2<? extends Traversable<T>, ? extends Traversable<T>> Splits thisTraversableinto two partitions according to a predicate.List.pop2()Removes the head element from this List.Tuple2<? extends IndexedSeq<T>, ? extends IndexedSeq<T>> Tuple2<LinkedHashMap<K, V>, LinkedHashMap<K, V>> Maps.span(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate) Tuple2<? extends PriorityQueue<T>, ? extends PriorityQueue<T>> Tuple2<? extends SortedMultimap<K, V>, ? extends SortedMultimap<K, V>> Tuple2<? extends Traversable<T>, ? extends Traversable<T>> Splits thisTraversableinto a prefix and remainder according to the givenpredicate.(package private) static <T> Tuple2<RedBlackTree<T>, RedBlackTree<T>> RedBlackTreeModule.Node.split(RedBlackTree<T> tree, T value) Array.splitAt(int n) CharSeq.splitAt(int n) List.splitAt(int n) Queue.splitAt(int n) Seq.splitAt(int n) Splits this sequence at the specified index.Splits this sequence at the first element satisfying the given predicate.Stream.splitAt(int n) Vector.splitAt(int n) Array.splitAtInclusive(@NonNull Predicate<? super T> predicate) CharSeq.splitAtInclusive(@NonNull Predicate<? super Character> predicate) List.splitAtInclusive(@NonNull Predicate<? super T> predicate) Queue.splitAtInclusive(@NonNull Predicate<? super T> predicate) Seq.splitAtInclusive(@NonNull Predicate<? super T> predicate) Splits this sequence at the first element satisfying the given predicate, including the element in the first part.Stream.splitAtInclusive(@NonNull Predicate<? super T> predicate) Vector.splitAtInclusive(@NonNull Predicate<? super T> predicate) CharSeq.splitByBuilder(StringBuilder sb) ListModule.SplitAt.splitByPredicateReversed(List<T> source, @NonNull Predicate<? super T> predicate) private static <T> Tuple2<RedBlackTreeModule.Node<T>, Boolean> RedBlackTreeModule.Node.unbalancedLeft(RedBlackTree.Color color, int blackHeight, RedBlackTree<T> left, T value, RedBlackTree<T> right, RedBlackTreeModule.Empty<T> empty) private static <T> Tuple2<RedBlackTreeModule.Node<T>, Boolean> RedBlackTreeModule.Node.unbalancedRight(RedBlackTree.Color color, int blackHeight, RedBlackTree<T> left, T value, RedBlackTree<T> right, RedBlackTreeModule.Empty<T> empty) <T1,T2> Tuple2 <IndexedSeq<T1>, IndexedSeq<T2>> <T1,T2> Tuple2 <? extends IndexedSeq<T1>, ? extends IndexedSeq<T2>> <T1,T2> Tuple2 <LinkedHashSet<T1>, LinkedHashSet<T2>> Map.unzip()Unzips the entries of thisMapby treating each key-value pair as an element, and splitting them into two separateSeqcollections - one for keys and one for values.Map.unzip(@NonNull BiFunction<? super K, ? super V, Tuple2<? extends T1, ? extends T2>> unzipper) Unzips the entries of thisMapby mapping each key-value pair to a tuple.Multimap.unzip(@NonNull BiFunction<? super K, ? super V, Tuple2<? extends T1, ? extends T2>> unzipper) Unzips the entries of thisMultimapby mapping each key-value pair to a pair and splitting them into two separateSeqcollections.<T1,T2> Tuple2 <? extends PriorityQueue<T1>, ? extends PriorityQueue<T2>> <T1,T2> Tuple2 <? extends Traversable<T1>, ? extends Traversable<T2>> Unzips the elements of thisTraversableby mapping each element to a pair and splitting them into two separateTraversablecollections.TreeModule.unzip(@NonNull Tree.Node<T> node, @NonNull Function<? super T, Tuple2<? extends T1, ? extends T2>> unzipper) Methods in io.vavr.collection that return types with arguments of type Tuple2Modifier and TypeMethodDescriptionHashMap.collector()Returns aCollectorwhich may be used in conjunction withStream.collect(java.util.stream.Collector)to obtain aHashMap.HashMap.collector()Returns aCollectorwhich may be used in conjunction withStream.collect(java.util.stream.Collector)to obtain aHashMap.HashMultimap.Builder.collector()Returns aCollectorwhich may be used in conjunction withStream.collect(Collector)to obtain aHashMultimap.HashMultimap.Builder.collector()Returns aCollectorwhich may be used in conjunction withStream.collect(Collector)to obtain aHashMultimap.static <K,V> Collector <Tuple2<K, V>, ArrayList<Tuple2<K, V>>, LinkedHashMap<K, V>> LinkedHashMap.collector()Returns aCollectorwhich may be used in conjunction withStream.collect(java.util.stream.Collector)to obtain aLinkedHashMap.static <K,V> Collector <Tuple2<K, V>, ArrayList<Tuple2<K, V>>, LinkedHashMap<K, V>> LinkedHashMap.collector()Returns aCollectorwhich may be used in conjunction withStream.collect(java.util.stream.Collector)to obtain aLinkedHashMap.LinkedHashMultimap.Builder.collector()Returns aCollectorwhich may be used in conjunction withStream.collect(Collector)to obtain aLinkedHashMultimap.LinkedHashMultimap.Builder.collector()Returns aCollectorwhich may be used in conjunction withStream.collect(Collector)to obtain aLinkedHashMultimap.static <K extends Comparable<? super K>, V>
Collector<Tuple2<K, V>, ArrayList<Tuple2<K, V>>, TreeMap<K, V>> TreeMap.collector()Returns aCollectorwhich may be used in conjunction withStream.collect(Collector)to obtain aTreeMap.static <K extends Comparable<? super K>, V>
Collector<Tuple2<K, V>, ArrayList<Tuple2<K, V>>, TreeMap<K, V>> TreeMap.collector()Returns aCollectorwhich may be used in conjunction withStream.collect(Collector)to obtain aTreeMap.TreeMap.collector(@NonNull Comparator<? super K> keyComparator) Returns aCollectorwhich may be used in conjunction withStream.collect(Collector)to obtain aTreeMap.TreeMap.collector(@NonNull Comparator<? super K> keyComparator) Returns aCollectorwhich may be used in conjunction withStream.collect(Collector)to obtain aTreeMap.<K extends Comparable<? super K>, V2 extends V>
Collector<Tuple2<K, V2>, ArrayList<Tuple2<K, V2>>, TreeMultimap<K, V2>> TreeMultimap.Builder.collector()Returns aCollectorwhich may be used in conjunction withStream.collect(Collector)to obtain aTreeMultimap.<K extends Comparable<? super K>, V2 extends V>
Collector<Tuple2<K, V2>, ArrayList<Tuple2<K, V2>>, TreeMultimap<K, V2>> TreeMultimap.Builder.collector()Returns aCollectorwhich may be used in conjunction withStream.collect(Collector)to obtain aTreeMultimap.TreeMultimap.Builder.collector(@NonNull Comparator<? super K> keyComparator) Returns aCollectorwhich may be used in conjunction withStream.collect(Collector)to obtain aTreeMultimap.TreeMultimap.Builder.collector(@NonNull Comparator<? super K> keyComparator) Returns aCollectorwhich may be used in conjunction withStream.collect(Collector)to obtain aTreeMultimap.TreeMap.createCollector(@NonNull TreeMap.EntryComparator<K, V> entryComparator) TreeMap.createCollector(@NonNull TreeMap.EntryComparator<K, V> entryComparator) Seq.crossProduct()Computes the Cartesian product of this sequence with itself, producing all pairs of elements (this × this).Seq.crossProduct(@NonNull Iterable<? extends U> that) Computes the Cartesian product of this sequence with another iterable, producing pairs of elements (this × that).AbstractQueue.dequeueOption()Removes an element from this Queue.AbstractMultimap.iterator()HashArrayMappedTrie.iterator()HashArrayMappedTrieModule.AbstractNode.iterator()HashMap.iterator()LinkedHashMap.iterator()Map.iterator()Multimap.iterator()TreeMap.iterator()List.pop2Option()Removes the head element from this List.<U> IndexedSeq<Tuple2<Character, U>> <U> IndexedSeq<Tuple2<T, U>> <U> LinkedHashSet<Tuple2<T, U>> <U> PriorityQueue<Tuple2<T, U>> <U> Traversable<Tuple2<T, U>> Returns aTraversableformed by pairing elements of thisTraversablewith elements of anotherIterable.<U> IndexedSeq<Tuple2<Character, U>> <U> IndexedSeq<Tuple2<T, U>> <U> LinkedHashSet<Tuple2<T, U>> <U> PriorityQueue<Tuple2<T, U>> <U> Traversable<Tuple2<T, U>> Returns aTraversableformed by pairing elements of thisTraversablewith elements of anotherIterable, filling in placeholder elements when one collection is shorter than the other.Array.zipWithIndex()BitSet.zipWithIndex()CharSeq.zipWithIndex()HashSet.zipWithIndex()IndexedSeq.zipWithIndex()Iterator.zipWithIndex()LinearSeq.zipWithIndex()LinkedHashSet.zipWithIndex()List.zipWithIndex()Map.zipWithIndex()Map.zipWithIndex()Multimap.zipWithIndex()Multimap.zipWithIndex()PriorityQueue.zipWithIndex()Queue.zipWithIndex()Seq.zipWithIndex()Set.zipWithIndex()SortedSet.zipWithIndex()Stream.zipWithIndex()Traversable.zipWithIndex()Zips thisTraversablewith its indices, starting at 0.Tree.zipWithIndex()TreeSet.zipWithIndex()Vector.zipWithIndex()Methods in io.vavr.collection with parameters of type Tuple2Modifier and TypeMethodDescriptionintintdefault booleandefault booleanprivate static <K,V> TreeMap <K, V> TreeMap.createFromTuple(@NonNull TreeMap.EntryComparator<K, V> entryComparator, @NonNull Tuple2<? extends K, ? extends V> entry) private static <K,V> TreeMap <K, V> TreeMap.createFromTuples(@NonNull TreeMap.EntryComparator<K, V> entryComparator, @NonNull Tuple2<? extends K, ? extends V> @NonNull ... entries) <K, V2 extends V>
HashMultimap<K, V2> Returns a HashMultimap containingntimes the givenelement<K, V2 extends V>
LinkedHashMultimap<K, V2> Returns a LinkedHashMultimap containingntimes the givenelement<K extends Comparable<? super K>, V2 extends V>
TreeMultimap<K, V2> Returns a TreeMultimap containingntimes the givenelementThe underlying key comparator is the natural comparator of K.<K, V2 extends V>
TreeMultimap<K, V2> TreeMultimap.Builder.fill(Comparator<? super K> keyComparator, int n, @NonNull Tuple2<? extends K, ? extends V2> element) Returns a TreeMultimap containingntimes the givenelementstatic <K,V> HashMap <K, V> Returns a singletonHashMap, i.e.<K, V2 extends V>
HashMultimap<K, V2> Creates a HashMultimap of the given key-value pair.static <K,V> LinkedHashMap <K, V> Returns a singletonLinkedHashMap, i.e.<K, V2 extends V>
LinkedHashMultimap<K, V2> Creates a LinkedHashMultimap of the given key-value pair.static <K extends Comparable<? super K>, V>
TreeMap<K, V> Returns a singletonTreeMap, i.e.static <K,V> TreeMap <K, V> TreeMap.of(@NonNull Comparator<? super K> keyComparator, @NonNull Tuple2<? extends K, ? extends V> entry) Returns a singletonTreeMap, i.e.<K extends Comparable<? super K>, V2 extends V>
TreeMultimap<K, V2> Creates a TreeMultimap of the given list of key-value pairs.<K, V2 extends V>
TreeMultimap<K, V2> TreeMultimap.Builder.of(@NonNull Comparator<? super K> keyComparator, Tuple2<? extends K, ? extends V2> entry) Returns a singletonTreeMultimap, i.e.static <K,V> HashMap <K, V> Creates a HashMap of the given entries.final <K, V2 extends V>
HashMultimap<K, V2> Creates aHashMultimapof the given entries.static <K,V> LinkedHashMap <K, V> Creates a LinkedHashMap of the given entries.final <K, V2 extends V>
LinkedHashMultimap<K, V2> LinkedHashMultimap.Builder.ofEntries(@NonNull Tuple2<? extends K, ? extends V2> @NonNull ... entries) Creates aLinkedHashMultimapof the given entries.static <K extends Comparable<? super K>, V>
TreeMap<K, V> Creates aTreeMapof the given entries using the natural key comparator.static <K,V> TreeMap <K, V> TreeMap.ofEntries(@NonNull Comparator<? super K> keyComparator, @NonNull Tuple2<? extends K, ? extends V> @NonNull ... entries) Creates aTreeMapof the given entries using the given key comparator.final <K extends Comparable<? super K>, V2 extends V>
TreeMultimap<K, V2> Creates aTreeMultimapof the given entries.final <K, V2 extends V>
TreeMultimap<K, V2> TreeMultimap.Builder.ofEntries(@NonNull Comparator<? super K> keyComparator, Tuple2<? extends K, ? extends V2> @NonNull ... entries) Creates aTreeMultimapof the given entries.HashMap.put(@NonNull Tuple2<? extends K, U> entry, @NonNull BiFunction<? super V, ? super U, ? extends V> merge) <U extends V>
LinkedHashMap<K, V> LinkedHashMap.put(@NonNull Tuple2<? extends K, U> entry, @NonNull BiFunction<? super V, ? super U, ? extends V> merge) Convenience method forput(entry._1, entry._2).Map.put(@NonNull Tuple2<? extends K, U> entry, @NonNull BiFunction<? super V, ? super U, ? extends V> merge) Convenience method forput(entry._1, entry._2, merge).(package private) static <K, V, M extends Map<K,V>>
M(package private) static <K, V, U extends V, M extends Map<K,V>>
MMaps.put(M map, Tuple2<? extends K, U> entry, BiFunction<? super V, ? super U, ? extends V> merge) Convenience method forput(entry._1, entry._2).SortedMap.put(@NonNull Tuple2<? extends K, U> entry, @NonNull BiFunction<? super V, ? super U, ? extends V> merge) TreeMap.put(@NonNull Tuple2<? extends K, U> entry, @NonNull BiFunction<? super V, ? super U, ? extends V> merge) (package private) static <K, V, M extends Map<K,V>>
M(package private) static <K, V, M extends Map<K,V>>
MMaps.replaceAll(M map, Tuple2<K, V> currentElement, Tuple2<K, V> newElement) AbstractMultimap.scan(Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) HashMap.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) LinkedHashMap.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) Map.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) (package private) static <K, V, M extends Map<K,V>>
MMaps.scan(M map, Tuple2<K, V> zero, BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation, Function<Iterator<Tuple2<K, V>>, Traversable<Tuple2<K, V>>> finisher) Multimap.scan(Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) SortedMap.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) SortedMultimap.scan(Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) TreeMap.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) Method parameters in io.vavr.collection with type arguments of type Tuple2Modifier and TypeMethodDescriptiondefault <R> Seq<R> Map.collect(@NonNull PartialFunction<? super Tuple2<K, V>, ? extends R> partialFunction) default <R> Seq<R> Multimap.collect(@NonNull PartialFunction<? super Tuple2<K, V>, ? extends R> partialFunction) private <K2,V2> Multimap <K2, V2> AbstractMultimap.createFromEntries(Iterable<? extends Tuple2<? extends K2, ? extends V2>> entries) Creates a new Multimap from the given entries by grouping values by their keys.HashMap.createFromEntries(Iterable<Tuple2<K, V>> tuples) private LinkedHashMap<K, V> LinkedHashMap.createFromEntries(Iterable<Tuple2<K, V>> tuples) TreeMap.createFromEntries(@NonNull Iterable<Tuple2<K, V>> tuples) private static <K,V> TreeMap <K, V> TreeMap.createTreeMap(@NonNull TreeMap.EntryComparator<K, V> entryComparator, @NonNull Iterable<? extends Tuple2<? extends K, ? extends V>> entries) private static <K,K2, V, V2>
TreeMap<K2, V2> TreeMap.createTreeMap(@NonNull TreeMap.EntryComparator<K2, V2> entryComparator, @NonNull Iterable<Tuple2<K, V>> entries, Function<Tuple2<K, V>, Tuple2<K2, V2>> entryMapper) private static <K,K2, V, V2>
TreeMap<K2, V2> TreeMap.createTreeMap(@NonNull TreeMap.EntryComparator<K2, V2> entryComparator, @NonNull Iterable<Tuple2<K, V>> entries, Function<Tuple2<K, V>, Tuple2<K2, V2>> entryMapper) private static <K,K2, V, V2>
TreeMap<K2, V2> TreeMap.createTreeMap(@NonNull TreeMap.EntryComparator<K2, V2> entryComparator, @NonNull Iterable<Tuple2<K, V>> entries, Function<Tuple2<K, V>, Tuple2<K2, V2>> entryMapper) AbstractMultimap.distinctBy(@NonNull Comparator<? super Tuple2<K, V>> comparator) <U> MAbstractMultimap.distinctBy(@NonNull Function<? super Tuple2<K, V>, ? extends U> keyExtractor) HashMap.distinctBy(@NonNull Comparator<? super Tuple2<K, V>> comparator) HashMap.distinctBy(@NonNull Function<? super Tuple2<K, V>, ? extends U> keyExtractor) LinkedHashMap.distinctBy(@NonNull Comparator<? super Tuple2<K, V>> comparator) <U> LinkedHashMap<K, V> LinkedHashMap.distinctBy(@NonNull Function<? super Tuple2<K, V>, ? extends U> keyExtractor) Map.distinctBy(@NonNull Comparator<? super Tuple2<K, V>> comparator) Map.distinctBy(@NonNull Function<? super Tuple2<K, V>, ? extends U> keyExtractor) (package private) static <K, V, M extends Map<K,V>>
MMaps.distinctBy(M map, Maps.OfEntries<K, V, M> ofEntries, Comparator<? super Tuple2<K, V>> comparator) (package private) static <K, V, U, M extends Map<K,V>>
MMaps.distinctBy(M map, Maps.OfEntries<K, V, M> ofEntries, Function<? super Tuple2<K, V>, ? extends U> keyExtractor) Multimap.distinctBy(@NonNull Comparator<? super Tuple2<K, V>> comparator) Multimap.distinctBy(@NonNull Function<? super Tuple2<K, V>, ? extends U> keyExtractor) SortedMap.distinctBy(@NonNull Comparator<? super Tuple2<K, V>> comparator) SortedMap.distinctBy(@NonNull Function<? super Tuple2<K, V>, ? extends U> keyExtractor) SortedMultimap.distinctBy(@NonNull Comparator<? super Tuple2<K, V>> comparator) <U> SortedMultimap<K, V> SortedMultimap.distinctBy(@NonNull Function<? super Tuple2<K, V>, ? extends U> keyExtractor) TreeMap.distinctBy(@NonNull Comparator<? super Tuple2<K, V>> comparator) TreeMap.distinctBy(@NonNull Function<? super Tuple2<K, V>, ? extends U> keyExtractor) (package private) static <K, V, M extends Map<K,V>>
MMaps.dropUntil(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate) (package private) static <K, V, M extends Map<K,V>>
MMaps.dropWhile(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate) static <K,V> HashMap <K, V> Returns a HashMap containing tuples returned byncalls to a given Suppliers.<K, V2 extends V>
HashMultimap<K, V2> Returns a HashMultimap containingnvalues supplied by a given Suppliers.static <K,V> LinkedHashMap <K, V> Returns a LinkedHashMap containing tuples returned byncalls to a given Suppliers.<K, V2 extends V>
LinkedHashMultimap<K, V2> LinkedHashMultimap.Builder.fill(int n, @NonNull Supplier<? extends Tuple2<? extends K, ? extends V2>> s) Returns a LinkedHashMultimap containingnvalues supplied by a given Suppliers.static <K extends Comparable<? super K>, V>
TreeMap<K, V> Returns a TreeMap containing tuples returned byncalls to a given Suppliers.static <K,V> TreeMap <K, V> TreeMap.fill(@NonNull Comparator<? super K> keyComparator, int n, @NonNull Supplier<? extends Tuple2<? extends K, ? extends V>> s) Returns a TreeMap containing tuples returned byncalls to a given Suppliers.<K extends Comparable<? super K>, V2 extends V>
TreeMultimap<K, V2> Returns a TreeMultimap containingnvalues supplied by a given Suppliers.<K, V2 extends V>
TreeMultimap<K, V2> TreeMultimap.Builder.fill(Comparator<? super K> keyComparator, int n, @NonNull Supplier<? extends Tuple2<? extends K, ? extends V2>> s) Returns a TreeMultimap containingnvalues supplied by a given Suppliers.(package private) static <K, V, M extends Map<K,V>>
MMaps.filter(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate) <K2,V2> Multimap <K2, V2> AbstractMultimap.flatMap(@NonNull BiFunction<? super K, ? super V, ? extends Iterable<Tuple2<K2, V2>>> mapper) <K2,V2> HashMap <K2, V2> HashMap.flatMap(@NonNull BiFunction<? super K, ? super V, ? extends Iterable<Tuple2<K2, V2>>> mapper) <K2,V2> LinkedHashMap <K2, V2> LinkedHashMap.flatMap(@NonNull BiFunction<? super K, ? super V, ? extends Iterable<Tuple2<K2, V2>>> mapper) <K2,V2> Map <K2, V2> FlatMaps thisMapto a newMapwith different component type.default <U> Seq<U> Flat-maps this entries to a sequence of values.<K2,V2> Multimap <K2, V2> Multimap.flatMap(@NonNull BiFunction<? super K, ? super V, ? extends Iterable<Tuple2<K2, V2>>> mapper) FlatMaps thisMultimapto a newMultimapwith different component type.default <U> Seq<U> Flat-maps this entries to a sequence of values.<K2,V2> SortedMap <K2, V2> SortedMap.flatMap(@NonNull Comparator<? super K2> keyComparator, @NonNull BiFunction<? super K, ? super V, ? extends Iterable<Tuple2<K2, V2>>> mapper) Same asSortedMap.flatMap(BiFunction)but using a specific comparator for values of the codomain of the givenmapper.<K2,V2> SortedMap <K2, V2> SortedMap.flatMap(@NonNull BiFunction<? super K, ? super V, ? extends Iterable<Tuple2<K2, V2>>> mapper) private static <K,V, K2, V2>
TreeMap<K2, V2> TreeMap.flatMap(@NonNull TreeMap<K, V> map, @NonNull TreeMap.EntryComparator<K2, V2> entryComparator, BiFunction<? super K, ? super V, ? extends Iterable<Tuple2<K2, V2>>> mapper) <K2,V2> TreeMap <K2, V2> TreeMap.flatMap(@NonNull Comparator<? super K2> keyComparator, @NonNull BiFunction<? super K, ? super V, ? extends Iterable<Tuple2<K2, V2>>> mapper) <K2,V2> TreeMap <K2, V2> TreeMap.flatMap(@NonNull BiFunction<? super K, ? super V, ? extends Iterable<Tuple2<K2, V2>>> mapper) default <U> UMap.foldRight(U zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super U, ? extends U> f) default <U> UMultimap.foldRight(U zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super U, ? extends U> f) <C> Map<C, LinkedHashMap<K, V>> Maps.groupBy(M map, Maps.OfEntries<K, V, M> ofEntries, Function<? super Tuple2<K, V>, ? extends C> classifier) <C> Map<C, ? extends SortedMultimap<K, V>> <K2,V2> Multimap <K2, V2> AbstractMultimap.map(@NonNull BiFunction<? super K, ? super V, Tuple2<K2, V2>> mapper) <K2,V2> HashMap <K2, V2> HashMap.map(@NonNull BiFunction<? super K, ? super V, Tuple2<K2, V2>> mapper) <K2,V2> LinkedHashMap <K2, V2> LinkedHashMap.map(@NonNull BiFunction<? super K, ? super V, Tuple2<K2, V2>> mapper) <K2,V2> Map <K2, V2> Map.map(@NonNull BiFunction<? super K, ? super V, Tuple2<K2, V2>> mapper) Maps the entries of thisMapto form a newMap.default <U> Seq<U> Maps theMapentries to a sequence of values.<K2,V2> Multimap <K2, V2> Multimap.map(@NonNull BiFunction<? super K, ? super V, Tuple2<K2, V2>> mapper) Maps the entries of thisMultimapto form a newMultimap.default <U> Seq<U> Maps theMultimapentries to a sequence of values.<K2,V2> SortedMap <K2, V2> SortedMap.map(@NonNull Comparator<? super K2> keyComparator, @NonNull BiFunction<? super K, ? super V, Tuple2<K2, V2>> mapper) Same asSortedMap.map(BiFunction), using a specific comparator for keys of the codomain of the givenmapper.<K2,V2> SortedMap <K2, V2> SortedMap.map(@NonNull BiFunction<? super K, ? super V, Tuple2<K2, V2>> mapper) private static <K,K2, V, V2>
TreeMap<K2, V2> TreeMap.map(@NonNull TreeMap<K, V> map, @NonNull TreeMap.EntryComparator<K2, V2> entryComparator, BiFunction<? super K, ? super V, Tuple2<K2, V2>> mapper) <K2,V2> TreeMap <K2, V2> TreeMap.map(@NonNull Comparator<? super K2> keyComparator, @NonNull BiFunction<? super K, ? super V, Tuple2<K2, V2>> mapper) <K2,V2> TreeMap <K2, V2> TreeMap.map(@NonNull BiFunction<? super K, ? super V, Tuple2<K2, V2>> mapper) static <T,K, V> HashMap <K, V> HashMap.ofAll(@NonNull Stream<? extends T> stream, @NonNull Function<? super T, Tuple2<? extends K, ? extends V>> entryMapper) Returns aHashMap, from entries mapped from stream.<T, K, V2 extends V>
HashMultimap<K, V2> HashMultimap.Builder.ofAll(@NonNull Stream<? extends T> stream, @NonNull Function<? super T, Tuple2<? extends K, ? extends V2>> entryMapper) Returns aHashMultimap, from entries mapped from stream.static <T,K, V> LinkedHashMap <K, V> LinkedHashMap.ofAll(@NonNull Stream<? extends T> stream, Function<? super T, Tuple2<? extends K, ? extends V>> entryMapper) Returns aLinkedHashMap, from entries mapped from stream.<T, K, V2 extends V>
LinkedHashMultimap<K, V2> LinkedHashMultimap.Builder.ofAll(@NonNull Stream<? extends T> stream, @NonNull Function<? super T, Tuple2<? extends K, ? extends V2>> entryMapper) Returns aLinkedHashMultimap, from entries mapped from stream.static <T,K, V> TreeMap <K, V> TreeMap.ofAll(@NonNull Comparator<? super K> keyComparator, @NonNull Stream<? extends T> stream, @NonNull Function<? super T, Tuple2<? extends K, ? extends V>> entryMapper) Returns aTreeMap, from entries mapped from stream.static <T, K extends Comparable<? super K>, V>
TreeMap<K, V> TreeMap.ofAll(@NonNull Stream<? extends T> stream, @NonNull Function<? super T, Tuple2<? extends K, ? extends V>> entryMapper) Returns aTreeMap, from entries mapped from stream.<T, K, V2 extends V>
TreeMultimap<K, V2> TreeMultimap.Builder.ofAll(@NonNull Comparator<? super K> keyComparator, @NonNull Stream<? extends T> stream, @NonNull Function<? super T, Tuple2<? extends K, ? extends V2>> entryMapper) Returns aTreeMultimap, from entries mapped from stream.<T, K extends Comparable<? super K>, V2 extends V>
TreeMultimap<K, V2> TreeMultimap.Builder.ofAll(@NonNull Stream<? extends T> stream, @NonNull Function<? super T, Tuple2<? extends K, ? extends V2>> entryMapper) Returns aTreeMultimap, from entries mapped from stream.static <K,V> HashMap <K, V> Creates a HashMap of the given entries.<K, V2 extends V>
HashMultimap<K, V2> HashMultimap.Builder.ofEntries(@NonNull Iterable<? extends Tuple2<? extends K, ? extends V2>> entries) Creates aHashMultimapof the given entries.static <K,V> LinkedHashMap <K, V> Creates a LinkedHashMap of the given entries.<K, V2 extends V>
LinkedHashMultimap<K, V2> LinkedHashMultimap.Builder.ofEntries(@NonNull Iterable<? extends Tuple2<? extends K, ? extends V2>> entries) Creates aLinkedHashMultimapof the given entries.static <K extends Comparable<? super K>, V>
TreeMap<K, V> Creates aTreeMapof the given entries.static <K,V> TreeMap <K, V> TreeMap.ofEntries(@NonNull Comparator<? super K> keyComparator, @NonNull Iterable<? extends Tuple2<? extends K, ? extends V>> entries) Creates aTreeMapof the given entries.<K extends Comparable<? super K>, V2 extends V>
TreeMultimap<K, V2> TreeMultimap.Builder.ofEntries(@NonNull Iterable<? extends Tuple2<? extends K, ? extends V2>> entries) Creates aTreeMultimapof the given entries.<K, V2 extends V>
TreeMultimap<K, V2> TreeMultimap.Builder.ofEntries(@NonNull Comparator<? super K> keyComparator, Iterable<? extends Tuple2<? extends K, ? extends V2>> entries) Creates aTreeMultimapof the given entries.(package private) static <T, K, V, M extends Map<K,V>>
MMaps.ofStream(M map, Stream<? extends T> stream, Function<? super T, Tuple2<? extends K, ? extends V>> entryMapper) (package private) static <T, K, V, M extends Multimap<K,V>>
MMultimaps.ofStream(M source, Stream<? extends T> stream, Function<? super T, Tuple2<? extends K, ? extends V>> entryMapper) Returns thisMultimapif it is nonempty, otherwiseMultimapcreated from iterable, using existing multimap properties.Returns thisMultimapif it is nonempty, otherwiseMultimapcreated from result of evaluating supplier, using existing multimap properties.Returns thisTreeMapif it is nonempty, otherwiseTreeMapcreated from iterable, using existing comparator.Returns thisTreeMapif it is nonempty, otherwiseTreeMapcreated from result of evaluating supplier, using existing comparator.Tuple2<LinkedHashMap<K, V>, LinkedHashMap<K, V>> Maps.partition(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate) Tuple2<? extends SortedMultimap<K, V>, ? extends SortedMultimap<K, V>> (package private) static <K, V, M extends Map<K,V>>
M(package private) static <K, V, M extends Map<K,V>>
MMaps.reject(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate) AbstractMultimap.scan(Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) AbstractMultimap.scan(Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) AbstractMultimap.scan(Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) HashMap.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) HashMap.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) HashMap.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) LinkedHashMap.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) LinkedHashMap.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) LinkedHashMap.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) Map.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) Map.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) Map.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) (package private) static <K, V, M extends Map<K,V>>
MMaps.scan(M map, Tuple2<K, V> zero, BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation, Function<Iterator<Tuple2<K, V>>, Traversable<Tuple2<K, V>>> finisher) (package private) static <K, V, M extends Map<K,V>>
MMaps.scan(M map, Tuple2<K, V> zero, BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation, Function<Iterator<Tuple2<K, V>>, Traversable<Tuple2<K, V>>> finisher) (package private) static <K, V, M extends Map<K,V>>
MMaps.scan(M map, Tuple2<K, V> zero, BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation, Function<Iterator<Tuple2<K, V>>, Traversable<Tuple2<K, V>>> finisher) (package private) static <K, V, M extends Map<K,V>>
MMaps.scan(M map, Tuple2<K, V> zero, BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation, Function<Iterator<Tuple2<K, V>>, Traversable<Tuple2<K, V>>> finisher) (package private) static <K, V, M extends Map<K,V>>
MMaps.scan(M map, Tuple2<K, V> zero, BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation, Function<Iterator<Tuple2<K, V>>, Traversable<Tuple2<K, V>>> finisher) Multimap.scan(Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) Multimap.scan(Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) Multimap.scan(Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) SortedMap.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) SortedMap.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) SortedMap.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) SortedMultimap.scan(Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) SortedMultimap.scan(Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) SortedMultimap.scan(Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) TreeMap.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) TreeMap.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) TreeMap.scan(@NonNull Tuple2<K, V> zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) default <U> Seq<U> Map.scanLeft(U zero, @NonNull BiFunction<? super U, ? super Tuple2<K, V>, ? extends U> operation) default <U> Seq<U> Multimap.scanLeft(U zero, @NonNull BiFunction<? super U, ? super Tuple2<K, V>, ? extends U> operation) default <U> Seq<U> Map.scanRight(U zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super U, ? extends U> operation) default <U> Seq<U> Multimap.scanRight(U zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super U, ? extends U> operation) Maps.slideBy(M map, Maps.OfEntries<K, V, M> ofEntries, Function<? super Tuple2<K, V>, ?> classifier) Iterator<? extends SortedMultimap<K, V>> Tuple2<LinkedHashMap<K, V>, LinkedHashMap<K, V>> Maps.span(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate) Tuple2<? extends SortedMultimap<K, V>, ? extends SortedMultimap<K, V>> static <K,V> HashMap <K, V> HashMap.tabulate(int n, @NonNull Function<? super Integer, ? extends Tuple2<? extends K, ? extends V>> f) Returns an HashMap containingnvalues of a given Functionfover a range of integer values from 0 ton - 1.<K, V2 extends V>
HashMultimap<K, V2> HashMultimap.Builder.tabulate(int n, @NonNull Function<? super Integer, ? extends Tuple2<? extends K, ? extends V2>> f) Returns a HashMultimap containingnvalues of a given Functionfover a range of integer values from 0 ton - 1.static <K,V> LinkedHashMap <K, V> LinkedHashMap.tabulate(int n, @NonNull Function<? super Integer, ? extends Tuple2<? extends K, ? extends V>> f) Returns a LinkedHashMap containingnvalues of a given Functionfover a range of integer values from 0 ton - 1.<K, V2 extends V>
LinkedHashMultimap<K, V2> LinkedHashMultimap.Builder.tabulate(int n, @NonNull Function<? super Integer, ? extends Tuple2<? extends K, ? extends V2>> f) Returns a LinkedHashMultimap containingnvalues of a given Functionfover a range of integer values from 0 ton - 1.static <K extends Comparable<? super K>, V>
TreeMap<K, V> TreeMap.tabulate(int n, @NonNull Function<? super Integer, ? extends Tuple2<? extends K, ? extends V>> f) Returns a TreeMap containingnvalues of a given Functionfover a range of integer values from 0 ton - 1.static <K,V> TreeMap <K, V> TreeMap.tabulate(Comparator<? super K> keyComparator, int n, @NonNull Function<? super Integer, ? extends Tuple2<? extends K, ? extends V>> f) Returns a TreeMap containingnvalues of a given Functionfover a range of integer values from 0 ton - 1.<K extends Comparable<? super K>, V2 extends V>
TreeMultimap<K, V2> TreeMultimap.Builder.tabulate(int n, @NonNull Function<? super Integer, ? extends Tuple2<? extends K, ? extends V2>> f) Returns a TreeMultimap containingnvalues of a given Functionfover a range of integer values from 0 ton - 1.<K, V2 extends V>
TreeMultimap<K, V2> TreeMultimap.Builder.tabulate(@NonNull Comparator<? super K> keyComparator, int n, @NonNull Function<? super Integer, ? extends Tuple2<? extends K, ? extends V2>> f) Returns a TreeMultimap containingnvalues of a given Functionfover a range of integer values from 0 ton - 1.(package private) static <K, V, M extends Map<K,V>>
MMaps.takeUntil(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate) (package private) static <K, V, M extends Map<K,V>>
MMaps.takeWhile(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate) static <T> Array<T> Creates an Array from a seed value and a function.static CharSeqCharSeq.unfold(Character seed, Function<? super Character, Option<Tuple2<? extends Character, ? extends Character>>> f) Creates a CharSeq from a seed value and a function.static <T> Iterator<T> Creates anIteratorby repeatedly applying a function to a seed value.static <T> List<T> Creates a list from a seed value and a function.static <T> Queue<T> Creates a Queue from a seed value and a function.static <T> Stream<T> Creates a Stream from a seed value and a function.static <T> Vector<T> Creates a Vector 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> CharSeqCharSeq.unfoldLeft(T seed, Function<? super T, Option<Tuple2<? extends T, ? extends Character>>> f) Creates a CharSeq from a seed value and a function.static <T,U> Iterator <U> Iterator.unfoldLeft(T seed, Function<? super T, Option<Tuple2<? extends T, ? extends U>>> f) Creates anIteratorby repeatedly applying a function to a seed value, generating elements in a left-to-right order.static <T,U> List <U> List.unfoldLeft(T seed, @NonNull Function<? super T, Option<Tuple2<? extends T, ? extends U>>> f) Creates a list from a seed value and a function.static <T,U> Queue <U> Queue.unfoldLeft(T seed, @NonNull Function<? super T, Option<Tuple2<? extends T, ? extends U>>> f) Creates a Queue from a seed value and a function.static <T,U> Stream <U> Stream.unfoldLeft(T seed, @NonNull Function<? super T, Option<Tuple2<? extends T, ? extends U>>> f) Creates a Stream 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> 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.static <T> CharSeqCharSeq.unfoldRight(T seed, Function<? super T, Option<Tuple2<? extends Character, ? extends T>>> f) Creates a CharSeq from a seed value and a function.static <T,U> Iterator <U> Iterator.unfoldRight(T seed, Function<? super T, Option<Tuple2<? extends U, ? extends T>>> f) Creates anIteratorby repeatedly applying a function to a seed value, generating elements in a right-to-left order.static <T,U> List <U> List.unfoldRight(T seed, @NonNull Function<? super T, @NonNull Option<Tuple2<? extends U, ? extends T>>> f) Creates a list from a seed value and a function.static <T,U> Queue <U> Queue.unfoldRight(T seed, @NonNull Function<? super T, Option<Tuple2<? extends U, ? extends T>>> f) Creates a Queue from a seed value and a function.static <T,U> Stream <U> Stream.unfoldRight(T seed, @NonNull Function<? super T, Option<Tuple2<? extends U, ? extends T>>> f) Creates a Stream 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.<T1,T2> Tuple2 <IndexedSeq<T1>, IndexedSeq<T2>> <T1,T2> Tuple2 <? extends IndexedSeq<T1>, ? extends IndexedSeq<T2>> <T1,T2> Tuple2 <LinkedHashSet<T1>, LinkedHashSet<T2>> Map.unzip(@NonNull BiFunction<? super K, ? super V, Tuple2<? extends T1, ? extends T2>> unzipper) Unzips the entries of thisMapby mapping each key-value pair to a tuple.Multimap.unzip(@NonNull BiFunction<? super K, ? super V, Tuple2<? extends T1, ? extends T2>> unzipper) Unzips the entries of thisMultimapby mapping each key-value pair to a pair and splitting them into two separateSeqcollections.<T1,T2> Tuple2 <? extends PriorityQueue<T1>, ? extends PriorityQueue<T2>> <T1,T2> Tuple2 <? extends Traversable<T1>, ? extends Traversable<T2>> Unzips the elements of thisTraversableby mapping each element to a pair and splitting them into two separateTraversablecollections.TreeModule.unzip(@NonNull Tree.Node<T> node, @NonNull Function<? super T, Tuple2<? extends T1, ? extends T2>> unzipper) Map.unzip3(@NonNull Function<? super Tuple2<K, V>, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Multimap.unzip3(@NonNull Function<? super Tuple2<K, V>, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) private static <K,V> LinkedHashMap <K, V> Construct Map with given values and key order.private static <K,V> LinkedHashMap <K, V> LinkedHashMap.wrapNonUnique(@NonNull Queue<Tuple2<K, V>> list, HashMap<K, V> map) Construct Map with given values and key order.default <U,R> Seq <R> Map.zipWith(@NonNull Iterable<? extends U> that, BiFunction<? super Tuple2<K, V>, ? super U, ? extends R> mapper) default <U,R> Seq <R> Multimap.zipWith(@NonNull Iterable<? extends U> that, BiFunction<? super Tuple2<K, V>, ? super U, ? extends R> mapper) default <U> Seq<U> Map.zipWithIndex(@NonNull BiFunction<? super Tuple2<K, V>, ? super Integer, ? extends U> mapper) default <U> Seq<U> Multimap.zipWithIndex(@NonNull BiFunction<? super Tuple2<K, V>, ? super Integer, ? extends U> mapper) Constructor parameters in io.vavr.collection with type arguments of type Tuple2 -
Uses of Tuple2 in io.vavr.concurrent
Methods in io.vavr.concurrent that return types with arguments of type Tuple2