public abstract class AbstractBiMap<K,V> extends Object implements BiMap<K,V>
| Constructor and Description |
|---|
AbstractBiMap() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(Predicate<? super V> predicate) |
<P> boolean |
allSatisfyWith(Predicate2<? super V,? super P> predicate,
P parameter) |
boolean |
anySatisfy(Predicate<? super V> predicate) |
<P> boolean |
anySatisfyWith(Predicate2<? super V,? super P> predicate,
P parameter) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
LazyIterable<V> |
asLazy() |
RichIterable<RichIterable<V>> |
chunk(int size) |
<VV,R extends Collection<VV>> |
collect(Function<? super V,? extends VV> function,
R target) |
<R extends MutableBooleanCollection> |
collectBoolean(BooleanFunction<? super V> booleanFunction,
R target) |
<R extends MutableByteCollection> |
collectByte(ByteFunction<? super V> byteFunction,
R target) |
<R extends MutableCharCollection> |
collectChar(CharFunction<? super V> charFunction,
R target) |
<R extends MutableDoubleCollection> |
collectDouble(DoubleFunction<? super V> doubleFunction,
R target) |
<R extends MutableFloatCollection> |
collectFloat(FloatFunction<? super V> floatFunction,
R target) |
<VV,R extends Collection<VV>> |
collectIf(Predicate<? super V> predicate,
Function<? super V,? extends VV> function,
R target) |
<R extends MutableIntCollection> |
collectInt(IntFunction<? super V> intFunction,
R target) |
<R extends MutableLongCollection> |
collectLong(LongFunction<? super V> longFunction,
R target) |
<R extends MutableShortCollection> |
collectShort(ShortFunction<? super V> shortFunction,
R target) |
<P,VV,R extends Collection<VV>> |
collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter,
R targetCollection) |
boolean |
contains(Object object) |
boolean |
containsAll(Collection<?> source) |
boolean |
containsAllArguments(Object... elements) |
boolean |
containsAllIterable(Iterable<?> source) |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
int |
count(Predicate<? super V> predicate) |
<P> int |
countWith(Predicate2<? super V,? super P> predicate,
P parameter) |
V |
detect(Predicate<? super V> predicate) |
Pair<K,V> |
detect(Predicate2<? super K,? super V> predicate) |
V |
detectIfNone(Predicate<? super V> predicate,
Function0<? extends V> function) |
Optional<V> |
detectOptional(Predicate<? super V> predicate) |
Optional<Pair<K,V>> |
detectOptional(Predicate2<? super K,? super V> predicate) |
<P> V |
detectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<P> V |
detectWithIfNone(Predicate2<? super V,? super P> predicate,
P parameter,
Function0<? extends V> function) |
<P> Optional<V> |
detectWithOptional(Predicate2<? super V,? super P> predicate,
P parameter) |
void |
each(Procedure<? super V> procedure) |
boolean |
equals(Object obj) |
<VV,R extends Collection<VV>> |
flatCollect(Function<? super V,? extends Iterable<VV>> function,
R target) |
<R extends MutableBooleanCollection> |
flatCollectBoolean(Function<? super V,? extends BooleanIterable> function,
R target) |
<R extends MutableByteCollection> |
flatCollectByte(Function<? super V,? extends ByteIterable> function,
R target) |
<R extends MutableCharCollection> |
flatCollectChar(Function<? super V,? extends CharIterable> function,
R target) |
<R extends MutableDoubleCollection> |
flatCollectDouble(Function<? super V,? extends DoubleIterable> function,
R target) |
<R extends MutableFloatCollection> |
flatCollectFloat(Function<? super V,? extends FloatIterable> function,
R target) |
<R extends MutableIntCollection> |
flatCollectInt(Function<? super V,? extends IntIterable> function,
R target) |
<R extends MutableLongCollection> |
flatCollectLong(Function<? super V,? extends LongIterable> function,
R target) |
<R extends MutableShortCollection> |
flatCollectShort(Function<? super V,? extends ShortIterable> function,
R target) |
void |
forEachKey(Procedure<? super K> procedure) |
void |
forEachKeyValue(Procedure2<? super K,? super V> procedure) |
void |
forEachValue(Procedure<? super V> procedure) |
<P> void |
forEachWith(Procedure2<? super V,? super P> procedure,
P parameter) |
void |
forEachWithIndex(ObjectIntProcedure<? super V> objectIntProcedure) |
V |
get(Object key) |
V |
getFirst() |
V |
getIfAbsent(K key,
Function0<? extends V> function) |
V |
getIfAbsentValue(K key,
V value) |
<P> V |
getIfAbsentWith(K key,
Function<? super P,? extends V> function,
P parameter) |
V |
getLast() |
V |
getOnly() |
V |
getOrDefault(Object key,
V defaultValue) |
<VV,R extends MutableMultimap<VV,V>> |
groupBy(Function<? super V,? extends VV> function,
R target) |
<VV,R extends MutableMultimap<VV,V>> |
groupByEach(Function<? super V,? extends Iterable<VV>> function,
R target) |
<VV,R extends MutableMapIterable<VV,V>> |
groupByUniqueKey(Function<? super V,? extends VV> function,
R target) |
int |
hashCode() |
<A> A |
ifPresentApply(K key,
Function<? super V,? extends A> function) |
double |
injectInto(double injectedValue,
DoubleObjectToDoubleFunction<? super V> function) |
float |
injectInto(float injectedValue,
FloatObjectToFloatFunction<? super V> function) |
int |
injectInto(int injectedValue,
IntObjectToIntFunction<? super V> function) |
<IV> IV |
injectInto(IV injectedValue,
Function2<? super IV,? super V,? extends IV> function) |
long |
injectInto(long injectedValue,
LongObjectToLongFunction<? super V> function) |
<R extends Collection<V>> |
into(R target) |
boolean |
isEmpty() |
RichIterable<K> |
keysView() |
RichIterable<Pair<K,V>> |
keyValuesView() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
V |
max() |
V |
max(Comparator<? super V> comparator) |
<VV extends Comparable<? super VV>> |
maxBy(Function<? super V,? extends VV> function) |
V |
min() |
V |
min(Comparator<? super V> comparator) |
<VV extends Comparable<? super VV>> |
minBy(Function<? super V,? extends VV> function) |
boolean |
noneSatisfy(Predicate<? super V> predicate) |
<P> boolean |
noneSatisfyWith(Predicate2<? super V,? super P> predicate,
P parameter) |
boolean |
notEmpty() |
<R extends Collection<V>> |
reject(Predicate<? super V> predicate,
R target) |
<P,R extends Collection<V>> |
rejectWith(Predicate2<? super V,? super P> predicate,
P parameter,
R targetCollection) |
<R extends Collection<V>> |
select(Predicate<? super V> predicate,
R target) |
<P,R extends Collection<V>> |
selectWith(Predicate2<? super V,? super P> predicate,
P parameter,
R targetCollection) |
int |
size() |
double |
sumOfDouble(DoubleFunction<? super V> function) |
double |
sumOfFloat(FloatFunction<? super V> function) |
long |
sumOfInt(IntFunction<? super V> function) |
long |
sumOfLong(LongFunction<? super V> function) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
MutableBag<V> |
toBag() |
<NK,NV> MutableBiMap<NK,NV> |
toBiMap(Function<? super V,? extends NK> keyFunction,
Function<? super V,? extends NV> valueFunction) |
MutableList<V> |
toList() |
<NK,NV> MutableMap<NK,NV> |
toMap(Function<? super V,? extends NK> keyFunction,
Function<? super V,? extends NV> valueFunction) |
<NK,NV,R extends Map<NK,NV>> |
toMap(Function<? super V,? extends NK> keyFunction,
Function<? super V,? extends NV> valueFunction,
R target) |
MutableSet<V> |
toSet() |
MutableSortedBag<V> |
toSortedBag() |
MutableSortedBag<V> |
toSortedBag(Comparator<? super V> comparator) |
MutableList<V> |
toSortedList() |
MutableList<V> |
toSortedList(Comparator<? super V> comparator) |
<NK,NV> MutableSortedMap<NK,NV> |
toSortedMap(Comparator<? super NK> comparator,
Function<? super V,? extends NK> keyFunction,
Function<? super V,? extends NV> valueFunction) |
<NK,NV> MutableSortedMap<NK,NV> |
toSortedMap(Function<? super V,? extends NK> keyFunction,
Function<? super V,? extends NV> valueFunction) |
MutableSortedSet<V> |
toSortedSet() |
MutableSortedSet<V> |
toSortedSet(Comparator<? super V> comparator) |
String |
toString() |
RichIterable<V> |
valuesView() |
<S,R extends Collection<Pair<V,S>>> |
zip(Iterable<S> that,
R target)
Deprecated.
in 8.0. Use
OrderedIterable.zip(Iterable, Collection) instead. |
<R extends Collection<Pair<V,Integer>>> |
zipWithIndex(R target)
Deprecated.
in 8.0. Use
OrderedIterable.zipWithIndex(Collection) instead. |
collect, collectValues, flip, flipUniqueValues, groupBy, groupByEach, groupByUniqueKey, inverse, partition, partitionWith, reject, reject, rejectWith, select, select, selectInstancesOf, selectWith, tap, toImmutable, zip, zipWithIndexaggregateBy, injectIntoKeyValue, parallelStream, spliterator, streamaggregateBy, aggregateBy, aggregateInPlaceBy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, countBy, countBy, countByEach, countByEach, countByWith, countByWith, flatCollect, flatCollectWith, flatCollectWith, forEach, getAny, groupByAndCollect, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, makeString, maxByOptional, maxOptional, maxOptional, minByOptional, minOptional, minOptional, reduce, reduceInPlace, reduceInPlace, sumByDouble, sumByFloat, sumByInt, sumByLong, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toSortedBagBy, toSortedListBy, toSortedMapBy, toSortedSetByforEachpublic boolean equals(Object obj)
public int hashCode()
public int size()
size in interface RichIterable<V>public V getFirst()
getFirst in interface RichIterable<V>public V getLast()
getLast in interface RichIterable<V>public V getOnly()
getOnly in interface RichIterable<V>public V getIfAbsent(K key, Function0<? extends V> function)
getIfAbsent in interface MapIterable<K,V>public V getOrDefault(Object key, V defaultValue)
getOrDefault in interface MapIterable<K,V>public V getIfAbsentValue(K key, V value)
getIfAbsentValue in interface MapIterable<K,V>public <P> V getIfAbsentWith(K key, Function<? super P,? extends V> function, P parameter)
getIfAbsentWith in interface MapIterable<K,V>public <A> A ifPresentApply(K key, Function<? super V,? extends A> function)
ifPresentApply in interface MapIterable<K,V>public boolean isEmpty()
isEmpty in interface RichIterable<V>public boolean notEmpty()
notEmpty in interface RichIterable<V>public boolean contains(Object object)
contains in interface RichIterable<V>public boolean containsKey(Object key)
containsKey in interface MapIterable<K,V>public boolean containsValue(Object value)
containsValue in interface MapIterable<K,V>public boolean containsAllIterable(Iterable<?> source)
containsAllIterable in interface RichIterable<V>public boolean containsAll(Collection<?> source)
containsAll in interface RichIterable<V>public boolean containsAllArguments(Object... elements)
containsAllArguments in interface RichIterable<V>public RichIterable<K> keysView()
keysView in interface MapIterable<K,V>public RichIterable<V> valuesView()
valuesView in interface MapIterable<K,V>public RichIterable<Pair<K,V>> keyValuesView()
keyValuesView in interface MapIterable<K,V>public <R extends Collection<V>> R into(R target)
into in interface RichIterable<V>public MutableList<V> toList()
toList in interface RichIterable<V>public MutableList<V> toSortedList()
toSortedList in interface RichIterable<V>public MutableList<V> toSortedList(Comparator<? super V> comparator)
toSortedList in interface RichIterable<V>public MutableSet<V> toSet()
toSet in interface RichIterable<V>public MutableSortedSet<V> toSortedSet()
toSortedSet in interface RichIterable<V>public MutableSortedSet<V> toSortedSet(Comparator<? super V> comparator)
toSortedSet in interface RichIterable<V>public MutableBag<V> toBag()
toBag in interface RichIterable<V>public MutableSortedBag<V> toSortedBag()
toSortedBag in interface RichIterable<V>public MutableSortedBag<V> toSortedBag(Comparator<? super V> comparator)
toSortedBag in interface RichIterable<V>public <NK,NV> MutableMap<NK,NV> toMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
toMap in interface RichIterable<V>public <NK,NV,R extends Map<NK,NV>> R toMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction, R target)
toMap in interface RichIterable<V>public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
toSortedMap in interface RichIterable<V>public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Comparator<? super NK> comparator, Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
toSortedMap in interface RichIterable<V>public <NK,NV> MutableBiMap<NK,NV> toBiMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
toBiMap in interface RichIterable<V>public Object[] toArray()
toArray in interface RichIterable<V>public <T> T[] toArray(T[] a)
toArray in interface RichIterable<V>public String toString()
toString in interface MapIterable<K,V>toString in interface RichIterable<V>toString in class Objectpublic String makeString()
makeString in interface RichIterable<V>public String makeString(String separator)
makeString in interface RichIterable<V>public String makeString(String start, String separator, String end)
makeString in interface RichIterable<V>public void appendString(Appendable appendable)
appendString in interface RichIterable<V>public void appendString(Appendable appendable, String separator)
appendString in interface RichIterable<V>public void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface RichIterable<V>public void forEachValue(Procedure<? super V> procedure)
forEachValue in interface MapIterable<K,V>public void forEachKey(Procedure<? super K> procedure)
forEachKey in interface MapIterable<K,V>public void forEachKeyValue(Procedure2<? super K,? super V> procedure)
forEachKeyValue in interface MapIterable<K,V>public void each(Procedure<? super V> procedure)
each in interface RichIterable<V>public void forEachWithIndex(ObjectIntProcedure<? super V> objectIntProcedure)
forEachWithIndex in interface InternalIterable<V>public <P> void forEachWith(Procedure2<? super V,? super P> procedure, P parameter)
forEachWith in interface InternalIterable<V>public LazyIterable<V> asLazy()
asLazy in interface RichIterable<V>public int count(Predicate<? super V> predicate)
count in interface RichIterable<V>public <P> int countWith(Predicate2<? super V,? super P> predicate, P parameter)
countWith in interface RichIterable<V>public V min(Comparator<? super V> comparator)
min in interface RichIterable<V>public V min()
min in interface RichIterable<V>public <VV extends Comparable<? super VV>> V minBy(Function<? super V,? extends VV> function)
minBy in interface RichIterable<V>public V max(Comparator<? super V> comparator)
max in interface RichIterable<V>public V max()
max in interface RichIterable<V>public <VV extends Comparable<? super VV>> V maxBy(Function<? super V,? extends VV> function)
maxBy in interface RichIterable<V>public Pair<K,V> detect(Predicate2<? super K,? super V> predicate)
detect in interface MapIterable<K,V>public V detect(Predicate<? super V> predicate)
detect in interface RichIterable<V>public <P> V detectWith(Predicate2<? super V,? super P> predicate, P parameter)
detectWith in interface RichIterable<V>public Optional<Pair<K,V>> detectOptional(Predicate2<? super K,? super V> predicate)
detectOptional in interface MapIterable<K,V>public Optional<V> detectOptional(Predicate<? super V> predicate)
detectOptional in interface RichIterable<V>public <P> Optional<V> detectWithOptional(Predicate2<? super V,? super P> predicate, P parameter)
detectWithOptional in interface RichIterable<V>public V detectIfNone(Predicate<? super V> predicate, Function0<? extends V> function)
detectIfNone in interface RichIterable<V>public <P> V detectWithIfNone(Predicate2<? super V,? super P> predicate, P parameter, Function0<? extends V> function)
detectWithIfNone in interface RichIterable<V>public boolean anySatisfy(Predicate<? super V> predicate)
anySatisfy in interface RichIterable<V>public <P> boolean anySatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
anySatisfyWith in interface RichIterable<V>public boolean allSatisfy(Predicate<? super V> predicate)
allSatisfy in interface RichIterable<V>public <P> boolean allSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
allSatisfyWith in interface RichIterable<V>public boolean noneSatisfy(Predicate<? super V> predicate)
noneSatisfy in interface RichIterable<V>public <P> boolean noneSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
noneSatisfyWith in interface RichIterable<V>public <VV,R extends Collection<VV>> R collect(Function<? super V,? extends VV> function, R target)
collect in interface RichIterable<V>public <R extends MutableBooleanCollection> R collectBoolean(BooleanFunction<? super V> booleanFunction, R target)
collectBoolean in interface RichIterable<V>public <R extends MutableBooleanCollection> R flatCollectBoolean(Function<? super V,? extends BooleanIterable> function, R target)
flatCollectBoolean in interface RichIterable<V>public <R extends MutableByteCollection> R collectByte(ByteFunction<? super V> byteFunction, R target)
collectByte in interface RichIterable<V>public <R extends MutableByteCollection> R flatCollectByte(Function<? super V,? extends ByteIterable> function, R target)
flatCollectByte in interface RichIterable<V>public <R extends MutableCharCollection> R collectChar(CharFunction<? super V> charFunction, R target)
collectChar in interface RichIterable<V>public <R extends MutableCharCollection> R flatCollectChar(Function<? super V,? extends CharIterable> function, R target)
flatCollectChar in interface RichIterable<V>public <R extends MutableDoubleCollection> R collectDouble(DoubleFunction<? super V> doubleFunction, R target)
collectDouble in interface RichIterable<V>public <R extends MutableDoubleCollection> R flatCollectDouble(Function<? super V,? extends DoubleIterable> function, R target)
flatCollectDouble in interface RichIterable<V>public <R extends MutableFloatCollection> R collectFloat(FloatFunction<? super V> floatFunction, R target)
collectFloat in interface RichIterable<V>public <R extends MutableFloatCollection> R flatCollectFloat(Function<? super V,? extends FloatIterable> function, R target)
flatCollectFloat in interface RichIterable<V>public <R extends MutableIntCollection> R collectInt(IntFunction<? super V> intFunction, R target)
collectInt in interface RichIterable<V>public <R extends MutableIntCollection> R flatCollectInt(Function<? super V,? extends IntIterable> function, R target)
flatCollectInt in interface RichIterable<V>public <R extends MutableLongCollection> R collectLong(LongFunction<? super V> longFunction, R target)
collectLong in interface RichIterable<V>public <R extends MutableLongCollection> R flatCollectLong(Function<? super V,? extends LongIterable> function, R target)
flatCollectLong in interface RichIterable<V>public <R extends MutableShortCollection> R collectShort(ShortFunction<? super V> shortFunction, R target)
collectShort in interface RichIterable<V>public <R extends MutableShortCollection> R flatCollectShort(Function<? super V,? extends ShortIterable> function, R target)
flatCollectShort in interface RichIterable<V>public <P,VV,R extends Collection<VV>> R collectWith(Function2<? super V,? super P,? extends VV> function, P parameter, R targetCollection)
collectWith in interface RichIterable<V>public <VV,R extends Collection<VV>> R collectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function, R target)
collectIf in interface RichIterable<V>public <VV,R extends Collection<VV>> R flatCollect(Function<? super V,? extends Iterable<VV>> function, R target)
flatCollect in interface RichIterable<V>public <R extends Collection<V>> R select(Predicate<? super V> predicate, R target)
select in interface RichIterable<V>public <P,R extends Collection<V>> R selectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)
selectWith in interface RichIterable<V>public <R extends Collection<V>> R reject(Predicate<? super V> predicate, R target)
reject in interface RichIterable<V>public <P,R extends Collection<V>> R rejectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)
rejectWith in interface RichIterable<V>@Deprecated public <S,R extends Collection<Pair<V,S>>> R zip(Iterable<S> that, R target)
OrderedIterable.zip(Iterable, Collection) instead.zip in interface RichIterable<V>@Deprecated public <R extends Collection<Pair<V,Integer>>> R zipWithIndex(R target)
OrderedIterable.zipWithIndex(Collection) instead.zipWithIndex in interface RichIterable<V>public RichIterable<RichIterable<V>> chunk(int size)
chunk in interface RichIterable<V>public <VV,R extends MutableMultimap<VV,V>> R groupBy(Function<? super V,? extends VV> function, R target)
groupBy in interface RichIterable<V>public <VV,R extends MutableMultimap<VV,V>> R groupByEach(Function<? super V,? extends Iterable<VV>> function, R target)
groupByEach in interface RichIterable<V>public <VV,R extends MutableMapIterable<VV,V>> R groupByUniqueKey(Function<? super V,? extends VV> function, R target)
groupByUniqueKey in interface RichIterable<V>public <IV> IV injectInto(IV injectedValue,
Function2<? super IV,? super V,? extends IV> function)
injectInto in interface RichIterable<V>public int injectInto(int injectedValue,
IntObjectToIntFunction<? super V> function)
injectInto in interface RichIterable<V>public long injectInto(long injectedValue,
LongObjectToLongFunction<? super V> function)
injectInto in interface RichIterable<V>public float injectInto(float injectedValue,
FloatObjectToFloatFunction<? super V> function)
injectInto in interface RichIterable<V>public double injectInto(double injectedValue,
DoubleObjectToDoubleFunction<? super V> function)
injectInto in interface RichIterable<V>public long sumOfInt(IntFunction<? super V> function)
sumOfInt in interface RichIterable<V>public double sumOfFloat(FloatFunction<? super V> function)
sumOfFloat in interface RichIterable<V>public long sumOfLong(LongFunction<? super V> function)
sumOfLong in interface RichIterable<V>public double sumOfDouble(DoubleFunction<? super V> function)
sumOfDouble in interface RichIterable<V>Copyright © 2004–2022. All rights reserved.