public abstract class AbstractImmutableBiMap<K,V> extends AbstractBiMap<K,V> implements ImmutableBiMap<K,V>, Map<K,V>
| Modifier and Type | Method and Description |
|---|---|
<K1,V1,V2> ImmutableMap<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) |
<K2,V2> ImmutableMap<K2,V2> |
aggregateBy(Function<? super V,? extends K2> groupBy,
Function0<? extends V2> zeroValueFactory,
Function2<? super V2,? super V,? extends V2> nonMutatingAggregator) |
<K2,V2> ImmutableMap<K2,V2> |
aggregateInPlaceBy(Function<? super V,? extends K2> groupBy,
Function0<? extends V2> zeroValueFactory,
Procedure2<? super V2,? super V> mutatingAggregator) |
Map<K,V> |
castToMap() |
void |
clear() |
<VV> ImmutableBag<VV> |
collect(Function<? super V,? extends VV> function) |
<K2,V2> ImmutableBiMap<K2,V2> |
collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
ImmutableBooleanBag |
collectBoolean(BooleanFunction<? super V> booleanFunction) |
ImmutableByteBag |
collectByte(ByteFunction<? super V> byteFunction) |
ImmutableCharBag |
collectChar(CharFunction<? super V> charFunction) |
ImmutableDoubleBag |
collectDouble(DoubleFunction<? super V> doubleFunction) |
ImmutableFloatBag |
collectFloat(FloatFunction<? super V> floatFunction) |
<VV> ImmutableBag<VV> |
collectIf(Predicate<? super V> predicate,
Function<? super V,? extends VV> function) |
ImmutableIntBag |
collectInt(IntFunction<? super V> intFunction) |
ImmutableLongBag |
collectLong(LongFunction<? super V> longFunction) |
ImmutableShortBag |
collectShort(ShortFunction<? super V> shortFunction) |
<R> ImmutableBiMap<K,R> |
collectValues(Function2<? super K,? super V,? extends R> function) |
<P,VV> ImmutableBag<VV> |
collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
Set<Map.Entry<K,V>> |
entrySet() |
<VV> ImmutableBag<VV> |
flatCollect(Function<? super V,? extends Iterable<VV>> function) |
ImmutableSetMultimap<V,K> |
flip() |
ImmutableBiMap<V,K> |
flipUniqueValues() |
<VV> ImmutableSetMultimap<VV,V> |
groupBy(Function<? super V,? extends VV> function) |
<VV> ImmutableSetMultimap<VV,V> |
groupByEach(Function<? super V,? extends Iterable<VV>> function) |
<VV> ImmutableBiMap<VV,V> |
groupByUniqueKey(Function<? super V,? extends VV> function) |
ImmutableBiMap<V,K> |
inverse() |
Iterator<V> |
iterator() |
Set<K> |
keySet() |
ImmutableBiMap<K,V> |
newWithAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs) |
ImmutableBiMap<K,V> |
newWithAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues) |
ImmutableBiMap<K,V> |
newWithKeyValue(K key,
V value) |
ImmutableBiMap<K,V> |
newWithMap(Map<? extends K,? extends V> map) |
ImmutableBiMap<K,V> |
newWithMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
ImmutableBiMap<K,V> |
newWithoutAllKeys(Iterable<? extends K> keys) |
ImmutableBiMap<K,V> |
newWithoutKey(K key) |
PartitionImmutableSet<V> |
partition(Predicate<? super V> predicate) |
<P> PartitionImmutableSet<V> |
partitionWith(Predicate2<? super V,? super P> predicate,
P parameter) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> map) |
ImmutableSet<V> |
reject(Predicate<? super V> predicate) |
ImmutableBiMap<K,V> |
reject(Predicate2<? super K,? super V> predicate) |
<P> ImmutableSet<V> |
rejectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
V |
remove(Object key) |
ImmutableSet<V> |
select(Predicate<? super V> predicate) |
ImmutableBiMap<K,V> |
select(Predicate2<? super K,? super V> predicate) |
<S> ImmutableSet<S> |
selectInstancesOf(Class<S> clazz) |
<P> ImmutableSet<V> |
selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<V1> ImmutableObjectDoubleMap<V1> |
sumByDouble(Function<? super V,? extends V1> groupBy,
DoubleFunction<? super V> function) |
<V1> ImmutableObjectDoubleMap<V1> |
sumByFloat(Function<? super V,? extends V1> groupBy,
FloatFunction<? super V> function) |
<V1> ImmutableObjectLongMap<V1> |
sumByInt(Function<? super V,? extends V1> groupBy,
IntFunction<? super V> function) |
<V1> ImmutableObjectLongMap<V1> |
sumByLong(Function<? super V,? extends V1> groupBy,
LongFunction<? super V> function) |
ImmutableBiMap<K,V> |
tap(Procedure<? super V> procedure) |
ImmutableBiMap<K,V> |
toImmutable() |
MutableMap<K,V> |
toMap() |
Collection<V> |
values() |
<S> ImmutableSet<Pair<V,S>> |
zip(Iterable<S> that)
Deprecated.
in 8.0. Use
OrderedIterable.zip(Iterable) instead. |
ImmutableSet<Pair<V,Integer>> |
zipWithIndex()
Deprecated.
in 8.0. Use
OrderedIterable.zipWithIndex() instead. |
allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsKey, containsValue, count, countWith, detect, detect, detectIfNone, detectOptional, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, equals, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, forEachKey, forEachKeyValue, forEachValue, forEachWith, forEachWithIndex, get, getFirst, getIfAbsent, getIfAbsentValue, getIfAbsentWith, getLast, getOnly, getOrDefault, groupBy, groupByEach, groupByUniqueKey, hashCode, ifPresentApply, injectInto, injectInto, injectInto, injectInto, injectInto, into, isEmpty, keysView, keyValuesView, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, select, selectWith, size, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedList, toSortedList, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toString, valuesView, zip, zipWithIndexflatCollectWithcountBy, countByEach, countByWithcontainsKey, containsValue, detect, detectOptional, equals, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getIfAbsentValue, getIfAbsentWith, getOrDefault, hashCode, ifPresentApply, injectIntoKeyValue, keysView, keyValuesView, parallelStream, spliterator, stream, toString, valuesViewaggregateBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, 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, forEachWithIndexcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, remove, replace, replace, replaceAll, sizepublic ImmutableBiMap<K,V> newWithKeyValue(K key, V value)
newWithKeyValue in interface ImmutableBiMap<K,V>newWithKeyValue in interface ImmutableMapIterable<K,V>public ImmutableBiMap<K,V> newWithAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues)
newWithAllKeyValues in interface ImmutableBiMap<K,V>newWithAllKeyValues in interface ImmutableMapIterable<K,V>public ImmutableBiMap<K,V> newWithMap(Map<? extends K,? extends V> map)
newWithMap in interface ImmutableBiMap<K,V>newWithMap in interface ImmutableMapIterable<K,V>public ImmutableBiMap<K,V> newWithMapIterable(MapIterable<? extends K,? extends V> mapIterable)
newWithMapIterable in interface ImmutableBiMap<K,V>newWithMapIterable in interface ImmutableMapIterable<K,V>public ImmutableBiMap<K,V> newWithAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs)
newWithAllKeyValueArguments in interface ImmutableBiMap<K,V>newWithAllKeyValueArguments in interface ImmutableMapIterable<K,V>public ImmutableBiMap<K,V> newWithoutKey(K key)
newWithoutKey in interface ImmutableBiMap<K,V>newWithoutKey in interface ImmutableMapIterable<K,V>public ImmutableBiMap<K,V> newWithoutAllKeys(Iterable<? extends K> keys)
newWithoutAllKeys in interface ImmutableBiMap<K,V>newWithoutAllKeys in interface ImmutableMapIterable<K,V>public ImmutableBiMap<V,K> inverse()
public ImmutableSetMultimap<V,K> flip()
public ImmutableBiMap<V,K> flipUniqueValues()
flipUniqueValues in interface BiMap<K,V>flipUniqueValues in interface ImmutableBiMap<K,V>flipUniqueValues in interface ImmutableMapIterable<K,V>flipUniqueValues in interface MapIterable<K,V>public ImmutableBiMap<K,V> toImmutable()
toImmutable in interface BiMap<K,V>toImmutable in interface MapIterable<K,V>public Map<K,V> castToMap()
castToMap in interface ImmutableMapIterable<K,V>public MutableMap<K,V> toMap()
public <K2,V2> ImmutableBiMap<K2,V2> collect(Function2<? super K,? super V,Pair<K2,V2>> function)
public <VV> ImmutableBag<VV> collect(Function<? super V,? extends VV> function)
collect in interface ImmutableBiMap<K,V>collect in interface RichIterable<V>public <R> ImmutableBiMap<K,R> collectValues(Function2<? super K,? super V,? extends R> function)
collectValues in interface BiMap<K,V>collectValues in interface ImmutableBiMap<K,V>collectValues in interface ImmutableMapIterable<K,V>collectValues in interface MapIterable<K,V>public ImmutableBooleanBag collectBoolean(BooleanFunction<? super V> booleanFunction)
collectBoolean in interface RichIterable<V>public ImmutableByteBag collectByte(ByteFunction<? super V> byteFunction)
collectByte in interface RichIterable<V>public ImmutableCharBag collectChar(CharFunction<? super V> charFunction)
collectChar in interface RichIterable<V>public ImmutableDoubleBag collectDouble(DoubleFunction<? super V> doubleFunction)
collectDouble in interface RichIterable<V>public ImmutableFloatBag collectFloat(FloatFunction<? super V> floatFunction)
collectFloat in interface RichIterable<V>public ImmutableIntBag collectInt(IntFunction<? super V> intFunction)
collectInt in interface RichIterable<V>public ImmutableLongBag collectLong(LongFunction<? super V> longFunction)
collectLong in interface RichIterable<V>public ImmutableShortBag collectShort(ShortFunction<? super V> shortFunction)
collectShort in interface RichIterable<V>public <P,VV> ImmutableBag<VV> collectWith(Function2<? super V,? super P,? extends VV> function, P parameter)
collectWith in interface ImmutableBiMap<K,V>collectWith in interface RichIterable<V>public <VV> ImmutableBag<VV> collectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function)
collectIf in interface ImmutableBiMap<K,V>collectIf in interface RichIterable<V>public <VV> ImmutableBag<VV> flatCollect(Function<? super V,? extends Iterable<VV>> function)
flatCollect in interface ImmutableBiMap<K,V>flatCollect in interface RichIterable<V>public ImmutableBiMap<K,V> select(Predicate2<? super K,? super V> predicate)
public ImmutableBiMap<K,V> tap(Procedure<? super V> procedure)
tap in interface BiMap<K,V>tap in interface ImmutableBiMap<K,V>tap in interface ImmutableMapIterable<K,V>tap in interface MapIterable<K,V>tap in interface RichIterable<V>public ImmutableSet<V> select(Predicate<? super V> predicate)
select in interface BiMap<K,V>select in interface ImmutableBiMap<K,V>select in interface ImmutableMapIterable<K,V>select in interface RichIterable<V>public <P> ImmutableSet<V> selectWith(Predicate2<? super V,? super P> predicate, P parameter)
selectWith in interface BiMap<K,V>selectWith in interface ImmutableBiMap<K,V>selectWith in interface ImmutableMapIterable<K,V>selectWith in interface RichIterable<V>public ImmutableBiMap<K,V> reject(Predicate2<? super K,? super V> predicate)
public ImmutableSet<V> reject(Predicate<? super V> predicate)
reject in interface BiMap<K,V>reject in interface ImmutableBiMap<K,V>reject in interface ImmutableMapIterable<K,V>reject in interface RichIterable<V>public <P> ImmutableSet<V> rejectWith(Predicate2<? super V,? super P> predicate, P parameter)
rejectWith in interface BiMap<K,V>rejectWith in interface ImmutableBiMap<K,V>rejectWith in interface ImmutableMapIterable<K,V>rejectWith in interface RichIterable<V>public PartitionImmutableSet<V> partition(Predicate<? super V> predicate)
partition in interface BiMap<K,V>partition in interface ImmutableBiMap<K,V>partition in interface ImmutableMapIterable<K,V>partition in interface RichIterable<V>public <P> PartitionImmutableSet<V> partitionWith(Predicate2<? super V,? super P> predicate, P parameter)
partitionWith in interface BiMap<K,V>partitionWith in interface ImmutableBiMap<K,V>partitionWith in interface RichIterable<V>@Deprecated public <S> ImmutableSet<Pair<V,S>> zip(Iterable<S> that)
OrderedIterable.zip(Iterable) instead.zip in interface BiMap<K,V>zip in interface ImmutableBiMap<K,V>zip in interface ImmutableMapIterable<K,V>zip in interface RichIterable<V>@Deprecated public ImmutableSet<Pair<V,Integer>> zipWithIndex()
OrderedIterable.zipWithIndex() instead.zipWithIndex in interface BiMap<K,V>zipWithIndex in interface ImmutableBiMap<K,V>zipWithIndex in interface ImmutableMapIterable<K,V>zipWithIndex in interface RichIterable<V>public <V1> ImmutableObjectLongMap<V1> sumByInt(Function<? super V,? extends V1> groupBy, IntFunction<? super V> function)
sumByInt in interface RichIterable<V>public <V1> ImmutableObjectDoubleMap<V1> sumByFloat(Function<? super V,? extends V1> groupBy, FloatFunction<? super V> function)
sumByFloat in interface RichIterable<V>public <V1> ImmutableObjectLongMap<V1> sumByLong(Function<? super V,? extends V1> groupBy, LongFunction<? super V> function)
sumByLong in interface RichIterable<V>public <V1> ImmutableObjectDoubleMap<V1> sumByDouble(Function<? super V,? extends V1> groupBy, DoubleFunction<? super V> function)
sumByDouble in interface RichIterable<V>public <VV> ImmutableSetMultimap<VV,V> groupBy(Function<? super V,? extends VV> function)
groupBy in interface BiMap<K,V>groupBy in interface ImmutableBiMap<K,V>groupBy in interface ImmutableMapIterable<K,V>groupBy in interface RichIterable<V>public <VV> ImmutableSetMultimap<VV,V> groupByEach(Function<? super V,? extends Iterable<VV>> function)
groupByEach in interface BiMap<K,V>groupByEach in interface ImmutableBiMap<K,V>groupByEach in interface ImmutableMapIterable<K,V>groupByEach in interface RichIterable<V>public <VV> ImmutableBiMap<VV,V> groupByUniqueKey(Function<? super V,? extends VV> function)
groupByUniqueKey in interface BiMap<K,V>groupByUniqueKey in interface ImmutableBiMap<K,V>groupByUniqueKey in interface ImmutableMapIterable<K,V>groupByUniqueKey in interface RichIterable<V>public <K2,V2> ImmutableMap<K2,V2> aggregateBy(Function<? super V,? extends K2> groupBy, Function0<? extends V2> zeroValueFactory, Function2<? super V2,? super V,? extends V2> nonMutatingAggregator)
aggregateBy in interface ImmutableBiMap<K,V>aggregateBy in interface ImmutableMapIterable<K,V>aggregateBy in interface RichIterable<V>public <K1,V1,V2> ImmutableMap<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 ImmutableBiMap<K,V>aggregateBy in interface ImmutableMapIterable<K,V>aggregateBy in interface MapIterable<K,V>public <K2,V2> ImmutableMap<K2,V2> aggregateInPlaceBy(Function<? super V,? extends K2> groupBy, Function0<? extends V2> zeroValueFactory, Procedure2<? super V2,? super V> mutatingAggregator)
aggregateInPlaceBy in interface ImmutableBiMap<K,V>aggregateInPlaceBy in interface ImmutableMapIterable<K,V>aggregateInPlaceBy in interface RichIterable<V>public <S> ImmutableSet<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface BiMap<K,V>selectInstancesOf in interface ImmutableBiMap<K,V>selectInstancesOf in interface ImmutableMapIterable<K,V>selectInstancesOf in interface RichIterable<V>Copyright © 2004–2022. All rights reserved.