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>> An abstract base implementation of theMultimapinterface that provides common functionality for concrete Multimap implementations.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>> An abstract base implementation of theMultimapinterface that provides common functionality for concrete Multimap implementations.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(@NonNull Function<? super K, ? extends K2> keyMapper, @NonNull 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) Creates a new Multimap from the given entries by grouping values by their keys.protected abstract <K2,V2> Multimap <K2, V2> AbstractMultimap.createFromMap(Map<K2, Traversable<V2>> back) Creates a new Multimap instance from the given backing map.Multimap.distinct()Multimap.distinctBy(@NonNull Comparator<? super Tuple2<K, V>> comparator) Multimap.distinctBy(@NonNull 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()Returns an empty Multimap instance specific to the implementing class.Multimap.filter(@NonNull BiPredicate<? super K, ? super V> predicate) Returns a new Multimap consisting of all elements which satisfy the given predicate.Multimap.filterKeys(@NonNull Predicate<? super K> predicate) Returns a new Multimap consisting of all elements with keys which satisfy the given predicate.Multimap.filterValues(@NonNull 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(@NonNull BiFunction<? super K, ? super V, ? extends Iterable<Tuple2<K2, V2>>> mapper) <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.Multimap.init()<K2,V2> Multimap <K2, V2> AbstractMultimap.map(@NonNull BiFunction<? super K, ? super V, Tuple2<K2, V2>> mapper) <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.Maps the values of thisMultimapwhile preserving the corresponding keys.Creates a new multimap which by merging the entries ofthismultimap andthatmultimap.Multimap.merge(@NonNull Multimap<K2, V2> that, @NonNull 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(@NonNull BiPredicate<? super K, ? super V> predicate) Returns a new Multimap consisting of all elements which do not satisfy the given predicate.Multimap.rejectKeys(@NonNull Predicate<? super K> predicate) Returns a new Multimap consisting of all elements with keys which do not satisfy the given predicate.Multimap.rejectValues(@NonNull 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(@NonNull BiPredicate<? super K, ? super V> predicate) Deprecated.Multimap.removeKeys(@NonNull Predicate<? super K> predicate) Deprecated.Please useMultimap.rejectKeys(Predicate)Multimap.removeValues(@NonNull Predicate<? super V> predicate) Deprecated.Please useMultimap.rejectValues(Predicate)Replaces the entry with the specified key and oldValue.Multimap.replaceAll(@NonNull 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, @NonNull 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(@NonNull Multimap<K2, V2> that, @NonNull BiFunction<Traversable<V>, Traversable<V2>, Traversable<V>> collisionResolution) Creates a new multimap which by merging the entries ofthismultimap andthatmultimap.Multimap.merge(@NonNull Multimap<K2, V2> that, @NonNull 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(@NonNull Multimap<K2, V2> that, @NonNull 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)