Uses of Class
me.croabeast.common.map.MapBuilder
Packages that use MapBuilder
-
Uses of MapBuilder in me.croabeast.common.map
Methods in me.croabeast.common.map that return MapBuilderModifier and TypeMethodDescription<A> MapBuilder<A, V> MapBuilder.applyByKey(Function<K, A> function) Transforms all keys using the given function, keeping values unchanged.<B> MapBuilder<K, B> MapBuilder.applyByValue(Function<V, B> function) Transforms all values using the given function, keeping keys unchanged.MapBuilder<K, V> MapBuilder.filter(BiPredicate<K, V> predicate) Retains only those entries for which the given bi-predicate returnstrue.MapBuilder<K, V> MapBuilder.filterByKey(Predicate<K> predicate) Retains only those entries whose keys match the given predicate.MapBuilder<K, V> MapBuilder.filterByValue(Predicate<V> predicate) Retains only those entries whose values match the given predicate.<A,B> MapBuilder <A, B> Transforms both keys and values using the given functions.MapBuilder<K, V> Adds the given entry to this builder.MapBuilder<K, V> Associates the specified value with the specified key in this builder.MapBuilder<K, V> Copies all entries from the given map into this builder.MapBuilder<K, V> MapBuilder.putIfAbsent(Map.Entry<? extends K, ? extends V> entry) Adds the given entry only if its key is not already present.MapBuilder<K, V> MapBuilder.putIfAbsent(K key, V value) Associates the specified value with the specified key if the key is not already present.MapBuilder<K, V> Removes the mapping for the specified key if present.MapBuilder<K, V> Removes the entry for the specified key only if it is currently mapped to the given value.MapBuilder<K, V> MapBuilder.removeAllByKey(K key, int counting) Removes up tocountingentries matching the given key.MapBuilder<K, V> MapBuilder.removeAllByValue(V value, int counting) Removes up tocountingentries matching the given value.