| Modifier and Type | Method and Description |
|---|---|
| public default V | |
| public default <KK, VV> MutableMapIterable | aggregateBy(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator)
Overrides default org. Applies an aggregate function over the iterable grouping results into a map based on the specific groupBy function. |
| public default <K1, V1, V2> MutableMapIterable | aggregateBy(Function<? super K, ? extends K1> keyFunction, Function<? super V, ? extends V1> valueFunction, Function0<? extends V2> zeroValueFactory, Function2<? super V2, ? super V1, ? extends V2> nonMutatingAggregator)
Overrides default org. Applies an aggregate function over the map grouping results into a map based on the specific key and value groupBy functions. |
| public default <KK, VV> MutableMapIterable | aggregateInPlaceBy(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV, ? super V> mutatingAggregator)
Overrides default org. Applies an aggregate procedure over the iterable grouping results into a Map based on the specific groupBy function. |
| public MutableMapIterable | |
| public MutableMapIterable | |
| public <K2, V2> MutableMapIterable | collect(Function2<? super K, ? super V, Pair<K2, V2>> function)
Redeclares org. For each key and value of the map the function is evaluated. |
| public <R> MutableMapIterable | collectKeysUnique(Function2<? super K, ? super V, ? extends R> function)
Redeclares org. For each key and value of the map the function is evaluated. |
| public <R> MutableMapIterable | collectValues(Function2<? super K, ? super V, ? extends R> function)
Redeclares org. For each key and value of the map the function is evaluated. |
| public default <V1> MutableBag | countBy(Function<? super V, ? extends V1> function)
Overrides default org. This method will count the number of occurrences of each value calculated by applying the function to each element of the collection. |
| public default <V1> MutableBag | countByEach(Function<? super V, ? extends Iterable<V1>> function)
Overrides default org. This method will count the number of occurrences of each value calculated by applying the function to each element of the collection. |
| public default <V1, P> MutableBag | countByWith(Function2<? super V, ? super P, ? extends V1> function, P parameter)
Overrides default org. This method will count the number of occurrences of each value calculated by applying the function to each element of the collection with the specified parameter as the second argument. |
| public MutableMultimap | flip()
Redeclares org. Given a map from Domain |
| public MutableMapIterable | flipUniqueValues()
Redeclares org. Return the MapIterable that is obtained by flipping the direction of this map and making the associations from value to key. |
| public default void | forEach(BiConsumer<? super K, ? super V> action)
Overrides default org. Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. |
| public V | getIfAbsentPut(K key, Function0<? extends V> function)
Get and return the value in the Map at the specified key. |
| public V | |
| public <P> V | getIfAbsentPutWith(K key, Function<? super P, ? extends V> function, P parameter)
Get and return the value in the Map at the specified key. |
| public V | getIfAbsentPutWithKey(K key, Function<? super K, ? extends V> function)
Get and return the value in the Map at the specified key. |
| public default V | getOrDefault(Object key, V defaultValue)
Overrides default org. Returns the value to which the specified key is mapped, or
|
| public <V1> MutableMultimap | groupBy(Function<? super V, ? extends V1> function)
Redeclares org. For each element of the iterable, the function is evaluated and the results of these evaluations are collected into a new multimap, where the transformed value is the key and the original values are added to the same (or similar) species of collection as the source iterable. |
| public <V1> MutableMultimap | groupByEach(Function<? super V, ? extends Iterable<V1>> function)
Redeclares org. Similar to |
| public <V1> MutableMapIterable | groupByUniqueKey(Function<? super V, ? extends V1> function)
Redeclares org. For each element of the iterable, the function is evaluated, and the results of these evaluations are collected into a new map, where the transformed value is the key. |
| public MutableMapIterable | newEmpty()
Creates a new instance of the same type, using the default capacity and growth parameters. |
| public PartitionMutableCollection | partition(Predicate<? super V> predicate)
Redeclares org. Filters a collection into a PartitionedIterable based on the evaluation of the predicate. |
| public default void | |
| public default V | |
| public default <KK> MutableMapIterable | reduceBy(Function<? super V, ? extends KK> groupBy, Function2<? super V, ? super V, ? extends V> reduceFunction)
Overrides default org. Applies an aggregate function over the iterable grouping results into a map based on the specific groupBy function. |
| public MutableMapIterable | reject(Predicate2<? super K, ? super V> predicate)
Redeclares org. For each key and value of the map the predicate is evaluated, if the result of the evaluation is false, that key and value are returned in a new map. |
| public MutableCollection | reject(Predicate<? super V> predicate)
Redeclares org. Returns all elements of the source collection that return false when evaluating of the predicate. |
| public <P> MutableCollection | rejectWith(Predicate2<? super V, ? super P> predicate, P parameter)
Redeclares org. Similar to |
| public default boolean | Returns: true if this map changed as a result of the callRemove entries from the map at the specified |
| public default boolean | Returns: true if any entry is removed.Remove an entry from the map if the |
| public V | Returns: The value removed from entry at key, or null if not found.Remove an entry from the map at the specified |
| public MutableMapIterable | select(Predicate2<? super K, ? super V> predicate)
Redeclares org. For each key and value of the map the predicate is evaluated, if the result of the evaluation is true, that key and value are returned in a new map. |
| public MutableCollection | select(Predicate<? super V> predicate)
Redeclares org. Returns all elements of the source collection that return true when evaluating the predicate. |
| public <S> MutableCollection | selectInstancesOf(Class<S> clazz)
Redeclares org. Returns all elements of the source collection that are instances of the Class |
| public <P> MutableCollection | selectWith(Predicate2<? super V, ? super P> predicate, P parameter)
Redeclares org. Similar to |
| public <V1> MutableObjectDoubleMap | sumByDouble(Function<? super V, ? extends V1> groupBy, DoubleFunction<? super V> function)
Redeclares org. Groups and sums the values using the two specified functions. |
| public <V1> MutableObjectDoubleMap | sumByFloat(Function<? super V, ? extends V1> groupBy, FloatFunction<? super V> function)
Redeclares org. Groups and sums the values using the two specified functions. |
| public <V1> MutableObjectLongMap | sumByInt(Function<? super V, ? extends V1> groupBy, IntFunction<? super V> function)
Redeclares org. Groups and sums the values using the two specified functions. |
| public <V1> MutableObjectLongMap | sumByLong(Function<? super V, ? extends V1> groupBy, LongFunction<? super V> function)
Redeclares org. Groups and sums the values using the two specified functions. |
| public MutableMapIterable | tap(Procedure<? super V> procedure)
Redeclares org. Executes the Procedure for each value of the map and returns |
| public ImmutableMapIterable | toImmutable()
Redeclares org. Returns an immutable copy of this map. |
| public V | updateValue(K key, Function0<? extends V> factory, Function<? super V, ? extends V> function)
Looks up the value associated with |
| public <P> V | updateValueWith(K key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter)
Same as |
| public MutableMapIterable | withAllKeyValueArguments(Pair<? extends K, ? extends V>... keyValuePairs)
Convenience var-args version of withAllKeyValues |
| public MutableMapIterable | withAllKeyValues(Iterable<? extends Pair<? extends K, ? extends V>> keyValues)
This method allows mutable, fixed size, and immutable maps the ability to add elements to their existing elements. |
| public MutableMapIterable | withKeyValue(K key, V value)
This method allows mutable, fixed size, and immutable maps the ability to add elements to their existing elements. |
| public default MutableMapIterable | |
| public default MutableMapIterable | |
| public MutableMapIterable | withoutAllKeys(Iterable<? extends K> keys)
This method allows mutable, fixed size, and immutable maps the ability to remove elements from their existing elements. |
| public MutableMapIterable | withoutKey(K key)
This method allows mutable, fixed size, and immutable maps the ability to remove elements from their existing elements. |
| public <S> MutableCollection | zip(Iterable<S> that)
Redeclares org. Returns a |
| public MutableCollection | zipWithIndex()
Redeclares org. Zips this |