Uses of Interface
io.vavr.collection.Multimap
Packages that use Multimap
-
Uses of Multimap in io.vavr.collection
Classes in io.vavr.collection with type parameters of type MultimapModifier and TypeClassDescription(package private) classAbstractMultimap<K, V, M extends Multimap<K,V>> AnMultimapimplementation (not intended to be public).Subinterfaces of Multimap in io.vavr.collectionModifier and TypeInterfaceDescriptioninterfaceSortedMultimap<K,V> An immutableSortedMultimapinterface.Classes in io.vavr.collection that implement MultimapModifier and TypeClassDescription(package private) classAbstractMultimap<K, V, M extends Multimap<K,V>> AnMultimapimplementation (not intended to be public).final classHashMultimap<K,V> final classLinkedHashMultimap<K,V> ALinkedHashMap-based implementation ofMultimapfinal classTreeMultimap<K,V> Methods in io.vavr.collection with type parameters of type MultimapModifier and TypeMethodDescription(package private) static <K, V, M extends Multimap<K,V>>
M(package private) static <T, K, V, M extends Multimap<K,V>>
MMultimaps.ofStream(M source, Stream<? extends T> stream, Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends V> valueMapper) (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) Methods in io.vavr.collection that return MultimapModifier and TypeMethodDescription<K2,V2> Multimap <K2, V2> AbstractMultimap.bimap(Function<? super K, ? extends K2> keyMapper, Function<? super V, ? extends V2> valueMapper) <K2,V2> Multimap <K2, V2> Multimap.bimap(Function<? super K, ? extends K2> keyMapper, Function<? super V, ? extends V2> valueMapper) Maps thisMultimapto a newMultimapwith different component type by applying a function to its elements.private <K2,V2> Multimap <K2, V2> AbstractMultimap.createFromEntries(Iterable<? extends Tuple2<? extends K2, ? extends V2>> entries) protected abstract <K2,V2> Multimap <K2, V2> AbstractMultimap.createFromMap(Map<K2, Traversable<V2>> back) Multimap.distinct()Multimap.distinctBy(Comparator<? super Tuple2<K, V>> comparator) Multimap.distinctBy(Function<? super Tuple2<K, V>, ? extends U> keyExtractor) Multimap.drop(int n) Multimap.dropRight(int n) protected abstract <K2,V2> Multimap <K2, V2> AbstractMultimap.emptyInstance()Multimap.filter(BiPredicate<? super K, ? super V> predicate) Returns a new Multimap consisting of all elements which satisfy the given predicate.Multimap.filterKeys(Predicate<? super K> predicate) Returns a new Multimap consisting of all elements with keys which satisfy the given predicate.Multimap.filterValues(Predicate<? super V> predicate) Returns a new Multimap consisting of all elements with values which satisfy the given predicate.<K2,V2> Multimap <K2, V2> AbstractMultimap.flatMap(BiFunction<? super K, ? super V, ? extends Iterable<Tuple2<K2, V2>>> mapper) <K2,V2> Multimap <K2, V2> FlatMaps thisMultimapto a newMultimapwith different component type.Multimap.init()<K2,V2> Multimap <K2, V2> AbstractMultimap.map(BiFunction<? super K, ? super V, Tuple2<K2, V2>> mapper) <K2,V2> Multimap <K2, V2> Multimap.map(BiFunction<? super K, ? super V, Tuple2<K2, V2>> mapper) Maps the entries of thisMultimapto form a newMultimap.Maps the values of thisMultimapwhile preserving the corresponding keys.Creates a new multimap which by merging the entries ofthismultimap andthatmultimap.Multimap.merge(Multimap<K2, V2> that, BiFunction<Traversable<V>, Traversable<V2>, Traversable<V>> collisionResolution) Creates a new multimap which by merging the entries ofthismultimap andthatmultimap.static <K,V> Multimap <K, V> Narrows a widenedMultimap<? extends K, ? extends V>toMultimap<K, V>by performing a type-safe cast.Convenience method forput(entry._1, entry._2).Associates the specified value with the specified key in this multimap.Multimap.reject(BiPredicate<? super K, ? super V> predicate) Returns a new Multimap consisting of all elements which do not satisfy the given predicate.Multimap.rejectKeys(Predicate<? super K> predicate) Returns a new Multimap consisting of all elements with keys which do not satisfy the given predicate.Multimap.rejectValues(Predicate<? super V> predicate) Returns a new Multimap consisting of all elements with values which do not satisfy the given predicate.Removes the mapping for a key from this multimap if it is present.Removes the key-value pair from this multimap if it is present.Removes the mapping for a key from this multimap if it is present.Multimap.removeAll(BiPredicate<? super K, ? super V> predicate) Deprecated.Multimap.removeKeys(Predicate<? super K> predicate) Deprecated.Please useMultimap.rejectKeys(Predicate)Multimap.removeValues(Predicate<? super V> predicate) Deprecated.Please useMultimap.rejectValues(Predicate)Replaces the entry with the specified key and oldValue.Multimap.replaceAll(BiFunction<? super K, ? super V, ? extends V> function) Replaces each entry's values with the result of invoking the given function on that each tuple until all entries have been processed or the function throws an exception.Multimap.replaceValue(K key, V value) Replaces the entry for the specified key only if it is currently mapped to some value.Multimap.scan(Tuple2<K, V> zero, BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> operation) Multimap.tail()Multimap.take(int n) Multimap.takeRight(int n) Methods in io.vavr.collection that return types with arguments of type MultimapModifier and TypeMethodDescriptionHashMultimap.Builder.collector()Returns aCollectorwhich may be used in conjunction withStream.collect(Collector)to obtain aHashMultimap.LinkedHashMultimap.Builder.collector()Returns aCollectorwhich may be used in conjunction withStream.collect(Collector)to obtain aLinkedHashMultimap.Multimap.grouped(int size) Multimap.initOption()Multimap.sliding(int size) Multimap.sliding(int size, int step) Multimap.tailOption()Methods in io.vavr.collection with parameters of type MultimapModifier and TypeMethodDescription(package private) static <K,V> boolean AbstractMultimap.merge(Multimap<K2, V2> that, BiFunction<Traversable<V>, Traversable<V2>, Traversable<V>> collisionResolution) Creates a new multimap which by merging the entries ofthismultimap andthatmultimap.Multimap.merge(Multimap<K2, V2> that, BiFunction<Traversable<V>, Traversable<V2>, Traversable<V>> collisionResolution) Creates a new multimap which by merging the entries ofthismultimap andthatmultimap.<K2 extends K, V2 extends V>
SortedMultimap<K, V> SortedMultimap.merge(Multimap<K2, V2> that, BiFunction<Traversable<V>, Traversable<V2>, Traversable<V>> collisionResolution) static <K,V> Multimap <K, V> Narrows a widenedMultimap<? extends K, ? extends V>toMultimap<K, V>by performing a type-safe cast.Method parameters in io.vavr.collection with type arguments of type Multimap
Multimap.reject(BiPredicate)