public class SynchronizedBiMap<K,V> extends AbstractSynchronizedMapIterable<K,V> implements MutableBiMap<K,V>, Serializable
| Modifier and Type | Method and Description |
|---|---|
<K1,V1,V2> MutableMap<K1,V2> |
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) |
<KK,VV> MutableMap<KK,VV> |
aggregateBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Function2<? super VV,? super V,? extends VV> nonMutatingAggregator) |
MutableBiMap<K,V> |
asSynchronized() |
MutableBiMap<K,V> |
asUnmodifiable() |
MutableBiMap<K,V> |
clone() |
<K2,V2> MutableBiMap<K2,V2> |
collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<R> MutableBiMap<K,R> |
collectValues(Function2<? super K,? super V,? extends R> function) |
Set<Map.Entry<K,V>> |
entrySet() |
MutableSetMultimap<V,K> |
flip() |
MutableBiMap<V,K> |
flipUniqueValues() |
V |
forcePut(K key,
V value) |
<V1> MutableSetMultimap<V1,V> |
groupBy(Function<? super V,? extends V1> function) |
<V1> MutableSetMultimap<V1,V> |
groupByEach(Function<? super V,? extends Iterable<V1>> function) |
<VV> MutableBiMap<VV,V> |
groupByUniqueKey(Function<? super V,? extends VV> function) |
MutableBiMap<V,K> |
inverse() |
Set<K> |
keySet() |
MutableBiMap<K,V> |
newEmpty() |
static <K,V> SynchronizedBiMap<K,V> |
of(MutableBiMap<K,V> map)
This method will take a MutableBiMap and wrap it directly in a SynchronizedBiMap.
|
PartitionMutableSet<V> |
partition(Predicate<? super V> predicate) |
<P> PartitionMutableSet<V> |
partitionWith(Predicate2<? super V,? super P> predicate,
P parameter) |
void |
putAllMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
MutableSet<V> |
reject(Predicate<? super V> predicate) |
MutableBiMap<K,V> |
reject(Predicate2<? super K,? super V> predicate) |
<P> MutableSet<V> |
rejectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
MutableSet<V> |
select(Predicate<? super V> predicate) |
MutableBiMap<K,V> |
select(Predicate2<? super K,? super V> predicate) |
<S> MutableSet<S> |
selectInstancesOf(Class<S> clazz) |
<P> MutableSet<V> |
selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
MutableBiMap<K,V> |
tap(Procedure<? super V> procedure) |
ImmutableBiMap<K,V> |
toImmutable() |
Collection<V> |
values() |
MutableBiMap<K,V> |
withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs) |
MutableBiMap<K,V> |
withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues) |
MutableBiMap<K,V> |
withKeyValue(K key,
V value) |
MutableBiMap<K,V> |
withMap(Map<? extends K,? extends V> map) |
MutableBiMap<K,V> |
withMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
MutableBiMap<K,V> |
withoutAllKeys(Iterable<? extends K> keys) |
MutableBiMap<K,V> |
withoutKey(K key) |
<S> MutableSet<Pair<V,S>> |
zip(Iterable<S> that)
Deprecated.
in 8.0. Use
OrderedIterable.zip(Iterable) instead. |
MutableSet<Pair<V,Integer>> |
zipWithIndex()
Deprecated.
in 8.0. Use
OrderedIterable.zipWithIndex() instead. |
add, aggregateInPlaceBy, clear, containsKey, containsValue, countBy, countByEach, countByWith, detect, detectOptional, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getIfAbsentPut, getIfAbsentPut, getIfAbsentPutWith, getIfAbsentPutWithKey, getIfAbsentValue, getIfAbsentWith, ifPresentApply, keysView, keyValuesView, put, putAll, putPair, remove, removeAllKeys, removeIf, removeKey, sumByDouble, sumByFloat, sumByInt, sumByLong, updateValue, updateValueWith, valuesViewallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collect, collectBoolean, collectBoolean, collectByte, collectByte, collectChar, collectChar, collectDouble, collectDouble, collectFloat, collectFloat, collectIf, collectIf, collectInt, collectInt, collectLong, collectLong, collectShort, collectShort, collectWith, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, equals, flatCollect, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, forEachWith, forEachWithIndex, getFirst, getLast, getOnly, groupBy, groupByEach, groupByUniqueKey, hashCode, injectInto, injectInto, injectInto, injectInto, injectInto, into, isEmpty, iterator, makeString, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, select, selectWith, size, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableList, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toString, zip, zipWithIndexputadd, aggregateInPlaceBy, countBy, countByEach, countByWith, getIfAbsentPut, getIfAbsentPut, getIfAbsentPutWith, getIfAbsentPutWithKey, getOrDefault, putPair, removeAllKeys, removeIf, removeKey, sumByDouble, sumByFloat, sumByInt, sumByLong, updateValue, updateValueWithcontainsKey, containsValue, detect, detectOptional, equals, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getIfAbsentValue, getIfAbsentWith, hashCode, ifPresentApply, injectIntoKeyValue, keysView, keyValuesView, parallelStream, spliterator, stream, toString, valuesViewaggregateBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collect, collectBoolean, collectBoolean, collectByte, collectByte, collectChar, collectChar, collectDouble, collectDouble, collectFloat, collectFloat, collectIf, collectIf, collectInt, collectInt, collectLong, collectLong, collectShort, collectShort, collectWith, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, flatCollectWith, forEach, getAny, getFirst, getLast, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, isEmpty, makeString, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, size, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndexforEach, forEachWith, forEachWithIndexclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, sizepublic static <K,V> SynchronizedBiMap<K,V> of(MutableBiMap<K,V> map)
public MutableBiMap<K,V> asSynchronized()
asSynchronized in interface MutableBiMap<K,V>asSynchronized in interface MutableMapIterable<K,V>public MutableBiMap<K,V> asUnmodifiable()
asUnmodifiable in interface MutableBiMap<K,V>asUnmodifiable in interface MutableMapIterable<K,V>public MutableBiMap<K,V> clone()
public MutableBiMap<K,V> tap(Procedure<? super V> procedure)
tap in interface BiMap<K,V>tap in interface MutableBiMap<K,V>tap in interface MapIterable<K,V>tap in interface MutableMapIterable<K,V>tap in interface RichIterable<V>tap in class AbstractSynchronizedMapIterable<K,V>public <K2,V2> MutableBiMap<K2,V2> collect(Function2<? super K,? super V,Pair<K2,V2>> function)
public <R> MutableBiMap<K,R> collectValues(Function2<? super K,? super V,? extends R> function)
collectValues in interface BiMap<K,V>collectValues in interface MutableBiMap<K,V>collectValues in interface MapIterable<K,V>collectValues in interface MutableMapIterable<K,V>public MutableSet<V> select(Predicate<? super V> predicate)
select in interface BiMap<K,V>select in interface MutableBiMap<K,V>select in interface MutableMapIterable<K,V>select in interface RichIterable<V>select in class AbstractSynchronizedMapIterable<K,V>public MutableBiMap<K,V> select(Predicate2<? super K,? super V> predicate)
public <P> MutableSet<V> selectWith(Predicate2<? super V,? super P> predicate, P parameter)
selectWith in interface BiMap<K,V>selectWith in interface MutableBiMap<K,V>selectWith in interface MutableMapIterable<K,V>selectWith in interface RichIterable<V>selectWith in class AbstractSynchronizedMapIterable<K,V>public <S> MutableSet<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface BiMap<K,V>selectInstancesOf in interface MutableBiMap<K,V>selectInstancesOf in interface MutableMapIterable<K,V>selectInstancesOf in interface RichIterable<V>selectInstancesOf in class AbstractSynchronizedMapIterable<K,V>public MutableSet<V> reject(Predicate<? super V> predicate)
reject in interface BiMap<K,V>reject in interface MutableBiMap<K,V>reject in interface MutableMapIterable<K,V>reject in interface RichIterable<V>reject in class AbstractSynchronizedMapIterable<K,V>public MutableBiMap<K,V> reject(Predicate2<? super K,? super V> predicate)
public <P> MutableSet<V> rejectWith(Predicate2<? super V,? super P> predicate, P parameter)
rejectWith in interface BiMap<K,V>rejectWith in interface MutableBiMap<K,V>rejectWith in interface MutableMapIterable<K,V>rejectWith in interface RichIterable<V>rejectWith in class AbstractSynchronizedMapIterable<K,V>public PartitionMutableSet<V> partition(Predicate<? super V> predicate)
partition in interface BiMap<K,V>partition in interface MutableBiMap<K,V>partition in interface MutableMapIterable<K,V>partition in interface RichIterable<V>partition in class AbstractSynchronizedMapIterable<K,V>public <P> PartitionMutableSet<V> partitionWith(Predicate2<? super V,? super P> predicate, P parameter)
partitionWith in interface BiMap<K,V>partitionWith in interface MutableBiMap<K,V>partitionWith in interface RichIterable<V>partitionWith in class AbstractSynchronizedRichIterable<V>public <V1> MutableSetMultimap<V1,V> groupBy(Function<? super V,? extends V1> function)
groupBy in interface BiMap<K,V>groupBy in interface MutableBiMap<K,V>groupBy in interface MutableMapIterable<K,V>groupBy in interface RichIterable<V>groupBy in class AbstractSynchronizedMapIterable<K,V>public <V1> MutableSetMultimap<V1,V> groupByEach(Function<? super V,? extends Iterable<V1>> function)
groupByEach in interface BiMap<K,V>groupByEach in interface MutableBiMap<K,V>groupByEach in interface MutableMapIterable<K,V>groupByEach in interface RichIterable<V>groupByEach in class AbstractSynchronizedMapIterable<K,V>public <KK,VV> MutableMap<KK,VV> aggregateBy(Function<? super V,? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV,? super V,? extends VV> nonMutatingAggregator)
aggregateBy in interface MutableBiMap<K,V>aggregateBy in interface MutableMapIterable<K,V>aggregateBy in interface RichIterable<V>aggregateBy in class AbstractSynchronizedMapIterable<K,V>public <K1,V1,V2> MutableMap<K1,V2> 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)
aggregateBy in interface MutableBiMap<K,V>aggregateBy in interface MapIterable<K,V>aggregateBy in interface MutableMapIterable<K,V>aggregateBy in class AbstractSynchronizedMapIterable<K,V>public MutableSetMultimap<V,K> flip()
public MutableBiMap<K,V> newEmpty()
newEmpty in interface MutableBiMap<K,V>newEmpty in interface MutableMapIterable<K,V>public MutableBiMap<V,K> inverse()
public MutableBiMap<V,K> flipUniqueValues()
flipUniqueValues in interface BiMap<K,V>flipUniqueValues in interface MutableBiMap<K,V>flipUniqueValues in interface MapIterable<K,V>flipUniqueValues in interface MutableMapIterable<K,V>public ImmutableBiMap<K,V> toImmutable()
toImmutable in interface BiMap<K,V>toImmutable in interface MapIterable<K,V>toImmutable in interface MutableMapIterable<K,V>@Deprecated public MutableSet<Pair<V,Integer>> zipWithIndex()
OrderedIterable.zipWithIndex() instead.zipWithIndex in interface BiMap<K,V>zipWithIndex in interface MutableBiMap<K,V>zipWithIndex in interface MutableMapIterable<K,V>zipWithIndex in interface RichIterable<V>zipWithIndex in class AbstractSynchronizedMapIterable<K,V>public <VV> MutableBiMap<VV,V> groupByUniqueKey(Function<? super V,? extends VV> function)
groupByUniqueKey in interface BiMap<K,V>groupByUniqueKey in interface MutableBiMap<K,V>groupByUniqueKey in interface MutableMapIterable<K,V>groupByUniqueKey in interface RichIterable<V>groupByUniqueKey in class AbstractSynchronizedMapIterable<K,V>@Deprecated public <S> MutableSet<Pair<V,S>> zip(Iterable<S> that)
OrderedIterable.zip(Iterable) instead.zip in interface BiMap<K,V>zip in interface MutableBiMap<K,V>zip in interface MutableMapIterable<K,V>zip in interface RichIterable<V>zip in class AbstractSynchronizedMapIterable<K,V>public MutableBiMap<K,V> withKeyValue(K key, V value)
withKeyValue in interface MutableBiMap<K,V>withKeyValue in interface MutableMapIterable<K,V>public MutableBiMap<K,V> withMap(Map<? extends K,? extends V> map)
withMap in interface MutableBiMap<K,V>withMap in interface MutableMapIterable<K,V>public MutableBiMap<K,V> withMapIterable(MapIterable<? extends K,? extends V> mapIterable)
withMapIterable in interface MutableBiMap<K,V>withMapIterable in interface MutableMapIterable<K,V>public void putAllMapIterable(MapIterable<? extends K,? extends V> mapIterable)
putAllMapIterable in interface MutableMapIterable<K,V>public MutableBiMap<K,V> withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues)
withAllKeyValues in interface MutableBiMap<K,V>withAllKeyValues in interface MutableMapIterable<K,V>public MutableBiMap<K,V> withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs)
withAllKeyValueArguments in interface MutableBiMap<K,V>withAllKeyValueArguments in interface MutableMapIterable<K,V>public MutableBiMap<K,V> withoutKey(K key)
withoutKey in interface MutableBiMap<K,V>withoutKey in interface MutableMapIterable<K,V>public MutableBiMap<K,V> withoutAllKeys(Iterable<? extends K> keys)
withoutAllKeys in interface MutableBiMap<K,V>withoutAllKeys in interface MutableMapIterable<K,V>Copyright © 2004–2022. All rights reserved.