| Modifier and Type | Class and Description |
|---|---|
| protected class | |
| private class | |
| private static class | |
| protected class | |
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| private UnifiedMap | |
| private AbstractMutableBiMap |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public MutableBiMap | asSynchronized()
Implements org. Returns a synchronized wrapper backed by this map. |
| public MutableBiMap | asUnmodifiable()
Implements org. Returns an unmodifiable view of this map. |
| private void | |
| private void | |
| public void | clear()
Implements java. Removes all of the mappings from this map (optional operation). |
| public MutableBiMap | clone()
Overrides java. Implements org. Creates and returns a copy of this object. |
| public <K2, V2> HashBiMap | collect(Function2<? super K, ? super V, Pair<K2, V2>> function)
Implements org. For each key and value of the map the function is evaluated. |
| public <VV> MutableBag | collect(Function<? super V, ? extends VV> function)
Implements org. Returns a new collection with the results of applying the specified function on each element of the source collection. |
| public MutableBooleanBag | collectBoolean(BooleanFunction<? super V> booleanFunction)
Implements org. Returns a new primitive |
| public MutableByteBag | collectByte(ByteFunction<? super V> byteFunction)
Implements org. Returns a new primitive |
| public MutableCharBag | collectChar(CharFunction<? super V> charFunction)
Implements org. Returns a new primitive |
| public MutableDoubleBag | collectDouble(DoubleFunction<? super V> doubleFunction)
Implements org. Returns a new primitive |
| public MutableFloatBag | collectFloat(FloatFunction<? super V> floatFunction)
Implements org. Returns a new primitive |
| public <VV> MutableBag | collectIf(Predicate<? super V> predicate, Function<? super V, ? extends VV> function)
Implements org. Returns a new collection with the results of applying the specified function on each element of the source collection, but only for those elements which return true upon evaluation of the predicate. |
| public MutableIntBag | collectInt(IntFunction<? super V> intFunction)
Implements org. Returns a new primitive |
| public <R> MutableBiMap | collectKeysUnique(Function2<? super K, ? super V, ? extends R> function)
Implements org. For each key and value of the map the function is evaluated. |
| public MutableLongBag | collectLong(LongFunction<? super V> longFunction)
Implements org. Returns a new primitive |
| public MutableShortBag | collectShort(ShortFunction<? super V> shortFunction)
Implements org. Returns a new primitive |
| public <R> HashBiMap | collectValues(Function2<? super K, ? super V, ? extends R> function)
Implements org. For each key and value of the map the function is evaluated. |
| public <P, VV> MutableBag | collectWith(Function2<? super V, ? super P, ? extends VV> function, P parameter)
Implements org. Same as |
| public Set | entrySet()
Implements java. Returns a |
| public <VV> MutableBag | flatCollect(Function<? super V, ? extends Iterable<VV>> function)
Implements org.
|
| public MutableSetMultimap | flip()
Implements org. Given a map from Domain |
| public MutableBiMap | flipUniqueValues()
Implements org. Return the MapIterable that is obtained by flipping the direction of this map and making the associations from value to key. |
| public V | forcePut(K key, V value)
Implements org. Similar to |
| public void | forEachValue(Procedure<? super V> procedure)
Overrides org. Implements org. Calls the procedure with each value of the map. |
| protected UnifiedMap | |
| public V | getIfAbsentPut(K key, V value)
Implements org. Get and return the value in the Map at the specified key. |
| public V | getIfAbsentPut(K key, Function0<? extends V> function)
Implements org. Get and return the value in the Map at the specified key. |
| public <P> V | getIfAbsentPutWith(K key, Function<? super P, ? extends V> function, P parameter)
Implements org. Get and return the value in the Map at the specified key. |
| public V | getIfAbsentPutWithKey(K key, Function<? super K, ? extends V> function)
Implements org. Get and return the value in the Map at the specified key. |
| protected UnifiedMap | |
| public <VV> MutableSetMultimap | groupBy(Function<? super V, ? extends VV> function)
Implements 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 <VV> MutableSetMultimap | groupByEach(Function<? super V, ? extends Iterable<VV>> function)
Implements org. Similar to |
| public <VV> MutableBiMap | groupByUniqueKey(Function<? super V, ? extends VV> function)
Overrides default org. Implements 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 MutableBiMap | inverse()
Implements org. Returns an inversed view of this BiMap, where the associations are in the direction of this bimap's values to keys. |
| public Iterator | |
| public Set | |
| public HashBiMap | newEmpty()
Implements org. Creates a new instance of the same type, using the default capacity and growth parameters. |
| private static boolean | |
| public PartitionMutableSet | partition(Predicate<? super V> predicate)
Implements org. Filters a collection into a PartitionedIterable based on the evaluation of the predicate. |
| public <P> PartitionMutableSet | partitionWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Filters a collection into a PartitionIterable based on the evaluation of the predicate. |
| public V | put(K key, V value)
Implements org. Similar to |
| public void | putAll(Map<? extends K, ? extends V> map)
Implements java. Copies all of the mappings from the specified map to this map (optional operation). |
| public void | |
| public HashBiMap | reject(Predicate2<? super K, ? super V> predicate)
Implements 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 MutableSet | reject(Predicate<? super V> predicate)
Implements org. Returns all elements of the source collection that return false when evaluating of the predicate. |
| public <P> MutableSet | rejectWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Similar to |
| public V | remove(Object key)
Implements java. Removes the mapping for a key from this map if it is present (optional operation). |
| public V | removeKey(K key)
Implements org. Remove an entry from the map at the specified |
| public HashBiMap | select(Predicate2<? super K, ? super V> predicate)
Implements 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 MutableSet | select(Predicate<? super V> predicate)
Implements org. Returns all elements of the source collection that return true when evaluating the predicate. |
| public <S> MutableSet | selectInstancesOf(Class<S> clazz)
Implements org. Returns all elements of the source collection that are instances of the Class |
| public <P> MutableSet | selectWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Similar to |
| public <V1> MutableObjectDoubleMap | sumByDouble(Function<? super V, ? extends V1> groupBy, DoubleFunction<? super V> function)
Implements 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)
Implements 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)
Implements 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)
Implements org. Groups and sums the values using the two specified functions. |
| public MutableBiMap | tap(Procedure<? super V> procedure)
Implements org. Executes the Procedure for each value of the map and returns |
| public ImmutableBiMap | toImmutable()
Implements org. Converts the BiMap to an ImmutableBiMap. |
| public V | updateValue(K key, Function0<? extends V> factory, Function<? super V, ? extends V> function)
Implements org. 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)
Implements org. Same as |
| public Collection | values()
Implements java. Returns a |
| public MutableBiMap | withAllKeyValueArguments(Pair<? extends K, ? extends V>... keyValuePairs)
Implements org. Convenience var-args version of withAllKeyValues |
| public MutableBiMap | withAllKeyValues(Iterable<? extends Pair<? extends K, ? extends V>> keyValues)
Implements org. This method allows mutable, fixed size, and immutable maps the ability to add elements to their existing elements. |
| public MutableBiMap | withKeyValue(K key, V value)
Implements org. This method allows mutable, fixed size, and immutable maps the ability to add elements to their existing elements. |
| public MutableBiMap | withoutAllKeys(Iterable<? extends K> keys)
Implements org. This method allows mutable, fixed size, and immutable maps the ability to remove elements from their existing elements. |
| public MutableBiMap | withoutKey(K key)
Implements org. This method allows mutable, fixed size, and immutable maps the ability to remove elements from their existing elements. |
| public void | |
| public <S> MutableSet | zip(Iterable<S> that)
Implements org.
Deprecated
in 8.0. Use
OrderedIterable#zip(Iterable) instead.
Returns a |
| public MutableSet | zipWithIndex()
Implements org.
Deprecated
in 8.0. Use
OrderedIterable#zipWithIndex() instead.
Zips this |