Top Description Inners Constructors Methods
io.vavr.collection

pack-priv final Class Maps

extends Object
Class Inheritance
Imports
io.vavr.Tuple, .Tuple2, io.vavr.control.Option, java.util.Comparator, .Objects, java.util.function.*

INTERNAL: Common Map functions (not intended to be public).
Author
Ruslan Sennov, Daniel Dietrich

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static interface
Maps.OfEntries<K, V, M extends Map<K, V>>

Constructor Summary

AccessConstructor and Description
private
Maps()

Method Summary

Modifier and TypeMethod and Description
pack-priv static <K, V, M extends Map<K, V>> Tuple2<V, M>
computeIfAbsent(M map, K key, Function<? super K, ? extends V> mappingFunction)

pack-priv static <K, V, M extends Map<K, V>> Tuple2<Option<V>, M>
computeIfPresent(M map, K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction)

pack-priv static <K, V, M extends Map<K, V>> M
distinct(M map)

pack-priv static <K, V, M extends Map<K, V>> M
distinctBy(M map, Maps.OfEntries<K, V, M> ofEntries, Comparator<? super Tuple2<K, V>> comparator)

pack-priv static <K, V, U, M extends Map<K, V>> M
distinctBy(M map, Maps.OfEntries<K, V, M> ofEntries, Function<? super Tuple2<K, V>, ? extends U> keyExtractor)

pack-priv static <K, V, M extends Map<K, V>> M
drop(M map, Maps.OfEntries<K, V, M> ofEntries, Supplier<M> emptySupplier, int n)

pack-priv static <K, V, M extends Map<K, V>> M
dropRight(M map, Maps.OfEntries<K, V, M> ofEntries, Supplier<M> emptySupplier, int n)

pack-priv static <K, V, M extends Map<K, V>> M
dropUntil(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate)

pack-priv static <K, V, M extends Map<K, V>> M
dropWhile(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate)

pack-priv static <K, V, M extends Map<K, V>> M
filter(M map, Maps.OfEntries<K, V, M> ofEntries, BiPredicate<? super K, ? super V> predicate)

pack-priv static <K, V, M extends Map<K, V>> M
filter(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate)

pack-priv static <K, V, M extends Map<K, V>> M
filterKeys(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super K> predicate)

pack-priv static <K, V, M extends Map<K, V>> M
filterValues(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super V> predicate)

pack-priv static <K, V, C, M extends Map<K, V>> Map<C, M>
groupBy(M map, Maps.OfEntries<K, V, M> ofEntries, Function<? super Tuple2<K, V>, ? extends C> classifier)

pack-priv static <K, V, M extends Map<K, V>> Iterator<M>
grouped(M map, Maps.OfEntries<K, V, M> ofEntries, int size)

pack-priv static <K, V, M extends Map<K, V>> Option<M>
initOption(M map)

pack-priv static <K, V, M extends Map<K, V>> M
merge(M map, Maps.OfEntries<K, V, M> ofEntries, Map<? extends K, ? extends V> that)

pack-priv static <K, V, U extends V, M extends Map<K, V>> M
merge(M map, Maps.OfEntries<K, V, M> ofEntries, Map<? extends K, U> that, BiFunction<? super V, ? super U, ? extends V> collisionResolution)

pack-priv static <T, K, V, M extends Map<K, V>> M
ofStream(M map, Stream<? extends T> stream, Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends V> valueMapper)

pack-priv static <T, K, V, M extends Map<K, V>> M
ofStream(M map, Stream<? extends T> stream, Function<? super T, Tuple2<? extends K, ? extends V>> entryMapper)

pack-priv static <K, V, M extends Map<K, V>> Tuple2<M, M>
partition(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate)

pack-priv static <K, V, M extends Map<K, V>> M
peek(M map, Consumer<? super Tuple2<K, V>> action)

pack-priv static <K, V, U extends V, M extends Map<K, V>> M
put(M map, K key, U value, BiFunction<? super V, ? super U, ? extends V> merge)

pack-priv static <K, V, M extends Map<K, V>> M
put(M map, Tuple2<? extends K, ? extends V> entry)

pack-priv static <K, V, U extends V, M extends Map<K, V>> M
put(M map, Tuple2<? extends K, U> entry, BiFunction<? super V, ? super U, ? extends V> merge)

pack-priv static <K, V, M extends Map<K, V>> M
reject(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate)

pack-priv static <K, V, M extends Map<K, V>> M
reject(M map, Maps.OfEntries<K, V, M> ofEntries, BiPredicate<? super K, ? super V> predicate)

pack-priv static <K, V, M extends Map<K, V>> M
rejectKeys(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super K> predicate)

pack-priv static <K, V, M extends Map<K, V>> M
rejectValues(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super V> predicate)

pack-priv static <K, V, M extends Map<K, V>> M
replace(M map, K key, V oldValue, V newValue)

pack-priv static <K, V, M extends Map<K, V>> M
replace(M map, Tuple2<K, V> currentElement, Tuple2<K, V> newElement)

pack-priv static <K, V, M extends Map<K, V>> M
replaceAll(M map, BiFunction<? super K, ? super V, ? extends V> function)

pack-priv static <K, V, M extends Map<K, V>> M
replaceAll(M map, Tuple2<K, V> currentElement, Tuple2<K, V> newElement)

pack-priv static <K, V, M extends Map<K, V>> M
replaceValue(M map, K key, V value)

pack-priv static <K, V, M extends Map<K, V>> M
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)

pack-priv static <K, V, M extends Map<K, V>> Iterator<M>
slideBy(M map, Maps.OfEntries<K, V, M> ofEntries, Function<? super Tuple2<K, V>, ?> classifier)

pack-priv static <K, V, M extends Map<K, V>> Iterator<M>
sliding(M map, Maps.OfEntries<K, V, M> ofEntries, int size)

pack-priv static <K, V, M extends Map<K, V>> Iterator<M>
sliding(M map, Maps.OfEntries<K, V, M> ofEntries, int size, int step)

pack-priv static <K, V, M extends Map<K, V>> Tuple2<M, M>
span(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate)

pack-priv static <K, V, M extends Map<K, V>> Option<M>
tailOption(M map)

pack-priv static <K, V, M extends Map<K, V>> M
take(M map, Maps.OfEntries<K, V, M> ofEntries, int n)

pack-priv static <K, V, M extends Map<K, V>> M
takeRight(M map, Maps.OfEntries<K, V, M> ofEntries, int n)

pack-priv static <K, V, M extends Map<K, V>> M
takeUntil(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate)

pack-priv static <K, V, M extends Map<K, V>> M
takeWhile(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Mapsback to summary
private Maps()

Method Detail

computeIfAbsentback to summary
pack-priv static <K, V, M extends Map<K, V>> Tuple2<V, M> computeIfAbsent(M map, K key, Function<? super K, ? extends V> mappingFunction)
Annotations
@SuppressWarnings:unchecked
computeIfPresentback to summary
pack-priv static <K, V, M extends Map<K, V>> Tuple2<Option<V>, M> computeIfPresent(M map, K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction)
Annotations
@SuppressWarnings:unchecked
distinctback to summary
pack-priv static <K, V, M extends Map<K, V>> M distinct(M map)
distinctByback to summary
pack-priv static <K, V, M extends Map<K, V>> M distinctBy(M map, Maps.OfEntries<K, V, M> ofEntries, Comparator<? super Tuple2<K, V>> comparator)
distinctByback to summary
pack-priv static <K, V, U, M extends Map<K, V>> M distinctBy(M map, Maps.OfEntries<K, V, M> ofEntries, Function<? super Tuple2<K, V>, ? extends U> keyExtractor)
dropback to summary
pack-priv static <K, V, M extends Map<K, V>> M drop(M map, Maps.OfEntries<K, V, M> ofEntries, Supplier<M> emptySupplier, int n)
dropRightback to summary
pack-priv static <K, V, M extends Map<K, V>> M dropRight(M map, Maps.OfEntries<K, V, M> ofEntries, Supplier<M> emptySupplier, int n)
dropUntilback to summary
pack-priv static <K, V, M extends Map<K, V>> M dropUntil(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate)
dropWhileback to summary
pack-priv static <K, V, M extends Map<K, V>> M dropWhile(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate)
filterback to summary
pack-priv static <K, V, M extends Map<K, V>> M filter(M map, Maps.OfEntries<K, V, M> ofEntries, BiPredicate<? super K, ? super V> predicate)
filterback to summary
pack-priv static <K, V, M extends Map<K, V>> M filter(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate)
filterKeysback to summary
pack-priv static <K, V, M extends Map<K, V>> M filterKeys(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super K> predicate)
filterValuesback to summary
pack-priv static <K, V, M extends Map<K, V>> M filterValues(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super V> predicate)
groupByback to summary
pack-priv static <K, V, C, M extends Map<K, V>> Map<C, M> groupBy(M map, Maps.OfEntries<K, V, M> ofEntries, Function<? super Tuple2<K, V>, ? extends C> classifier)
groupedback to summary
pack-priv static <K, V, M extends Map<K, V>> Iterator<M> grouped(M map, Maps.OfEntries<K, V, M> ofEntries, int size)
initOptionback to summary
pack-priv static <K, V, M extends Map<K, V>> Option<M> initOption(M map)
Annotations
@SuppressWarnings:unchecked
mergeback to summary
pack-priv static <K, V, M extends Map<K, V>> M merge(M map, Maps.OfEntries<K, V, M> ofEntries, Map<? extends K, ? extends V> that)
mergeback to summary
pack-priv static <K, V, U extends V, M extends Map<K, V>> M merge(M map, Maps.OfEntries<K, V, M> ofEntries, Map<? extends K, U> that, BiFunction<? super V, ? super U, ? extends V> collisionResolution)
Annotations
@SuppressWarnings:unchecked
ofStreamback to summary
pack-priv static <T, K, V, M extends Map<K, V>> M ofStream(M map, Stream<? extends T> stream, Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends V> valueMapper)
Annotations
@SuppressWarnings:unchecked
ofStreamback to summary
pack-priv static <T, K, V, M extends Map<K, V>> M ofStream(M map, Stream<? extends T> stream, Function<? super T, Tuple2<? extends K, ? extends V>> entryMapper)
Annotations
@SuppressWarnings:unchecked
partitionback to summary
pack-priv static <K, V, M extends Map<K, V>> Tuple2<M, M> partition(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate)
peekback to summary
pack-priv static <K, V, M extends Map<K, V>> M peek(M map, Consumer<? super Tuple2<K, V>> action)
putback to summary
pack-priv static <K, V, U extends V, M extends Map<K, V>> M put(M map, K key, U value, BiFunction<? super V, ? super U, ? extends V> merge)
Annotations
@SuppressWarnings:unchecked
putback to summary
pack-priv static <K, V, M extends Map<K, V>> M put(M map, Tuple2<? extends K, ? extends V> entry)
Annotations
@SuppressWarnings:unchecked
putback to summary
pack-priv static <K, V, U extends V, M extends Map<K, V>> M put(M map, Tuple2<? extends K, U> entry, BiFunction<? super V, ? super U, ? extends V> merge)
rejectback to summary
pack-priv static <K, V, M extends Map<K, V>> M reject(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate)
rejectback to summary
pack-priv static <K, V, M extends Map<K, V>> M reject(M map, Maps.OfEntries<K, V, M> ofEntries, BiPredicate<? super K, ? super V> predicate)
rejectKeysback to summary
pack-priv static <K, V, M extends Map<K, V>> M rejectKeys(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super K> predicate)
rejectValuesback to summary
pack-priv static <K, V, M extends Map<K, V>> M rejectValues(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super V> predicate)
replaceback to summary
pack-priv static <K, V, M extends Map<K, V>> M replace(M map, K key, V oldValue, V newValue)
Annotations
@SuppressWarnings:unchecked
replaceback to summary
pack-priv static <K, V, M extends Map<K, V>> M replace(M map, Tuple2<K, V> currentElement, Tuple2<K, V> newElement)
Annotations
@SuppressWarnings:unchecked
replaceAllback to summary
pack-priv static <K, V, M extends Map<K, V>> M replaceAll(M map, BiFunction<? super K, ? super V, ? extends V> function)
Annotations
@SuppressWarnings:unchecked
replaceAllback to summary
pack-priv static <K, V, M extends Map<K, V>> M replaceAll(M map, Tuple2<K, V> currentElement, Tuple2<K, V> newElement)
replaceValueback to summary
pack-priv static <K, V, M extends Map<K, V>> M replaceValue(M map, K key, V value)
Annotations
@SuppressWarnings:unchecked
scanback to summary
pack-priv static <K, V, M extends Map<K, V>> M 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)
Annotations
@SuppressWarnings:unchecked
slideByback to summary
pack-priv static <K, V, M extends Map<K, V>> Iterator<M> slideBy(M map, Maps.OfEntries<K, V, M> ofEntries, Function<? super Tuple2<K, V>, ?> classifier)
slidingback to summary
pack-priv static <K, V, M extends Map<K, V>> Iterator<M> sliding(M map, Maps.OfEntries<K, V, M> ofEntries, int size)
slidingback to summary
pack-priv static <K, V, M extends Map<K, V>> Iterator<M> sliding(M map, Maps.OfEntries<K, V, M> ofEntries, int size, int step)
spanback to summary
pack-priv static <K, V, M extends Map<K, V>> Tuple2<M, M> span(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate)
tailOptionback to summary
pack-priv static <K, V, M extends Map<K, V>> Option<M> tailOption(M map)
Annotations
@SuppressWarnings:unchecked
takeback to summary
pack-priv static <K, V, M extends Map<K, V>> M take(M map, Maps.OfEntries<K, V, M> ofEntries, int n)
takeRightback to summary
pack-priv static <K, V, M extends Map<K, V>> M takeRight(M map, Maps.OfEntries<K, V, M> ofEntries, int n)
takeUntilback to summary
pack-priv static <K, V, M extends Map<K, V>> M takeUntil(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate)
takeWhileback to summary
pack-priv static <K, V, M extends Map<K, V>> M takeWhile(M map, Maps.OfEntries<K, V, M> ofEntries, Predicate<? super Tuple2<K, V>> predicate)
io.vavr.collection back to summary

pack-priv Interface Maps.OfEntries<K, V, M extends Map<K, V>>

extends Function<Iterable<Tuple2<K, V>>, M extends Map<K, V>>
Annotations
@FunctionalInterface

Method Summary

Inherited from java.util.function.Function:
andThenapplycomposeidentity