public class UnmodifiableBiMap<K,V> extends Object implements MutableBiMap<K,V>, Serializable
| Constructor and Description |
|---|
UnmodifiableBiMap(MutableBiMap<K,V> delegate) |
| Modifier and Type | Method and Description |
|---|---|
V |
add(Pair<? extends K,? extends V> keyValuePair) |
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() |
MutableBiMap<K,V> |
asSynchronized() |
MutableBiMap<K,V> |
asUnmodifiable() |
RichIterable<RichIterable<V>> |
chunk(int size) |
void |
clear() |
MutableBiMap<K,V> |
clone() |
<V1> RichIterable<V1> |
collect(Function<? super V,? extends V1> function) |
<VV,R extends Collection<VV>> |
collect(Function<? super V,? extends VV> function,
R target) |
<K2,V2> MutableBiMap<K2,V2> |
collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
BooleanIterable |
collectBoolean(BooleanFunction<? super V> booleanFunction) |
<R extends MutableBooleanCollection> |
collectBoolean(BooleanFunction<? super V> booleanFunction,
R target) |
ByteIterable |
collectByte(ByteFunction<? super V> byteFunction) |
<R extends MutableByteCollection> |
collectByte(ByteFunction<? super V> byteFunction,
R target) |
CharIterable |
collectChar(CharFunction<? super V> charFunction) |
<R extends MutableCharCollection> |
collectChar(CharFunction<? super V> charFunction,
R target) |
DoubleIterable |
collectDouble(DoubleFunction<? super V> doubleFunction) |
<R extends MutableDoubleCollection> |
collectDouble(DoubleFunction<? super V> doubleFunction,
R target) |
FloatIterable |
collectFloat(FloatFunction<? super V> floatFunction) |
<R extends MutableFloatCollection> |
collectFloat(FloatFunction<? super V> floatFunction,
R target) |
<V1> RichIterable<V1> |
collectIf(Predicate<? super V> predicate,
Function<? super V,? extends V1> function) |
<VV,R extends Collection<VV>> |
collectIf(Predicate<? super V> predicate,
Function<? super V,? extends VV> function,
R target) |
IntIterable |
collectInt(IntFunction<? super V> intFunction) |
<R extends MutableIntCollection> |
collectInt(IntFunction<? super V> intFunction,
R target) |
LongIterable |
collectLong(LongFunction<? super V> longFunction) |
<R extends MutableLongCollection> |
collectLong(LongFunction<? super V> longFunction,
R target) |
ShortIterable |
collectShort(ShortFunction<? super V> shortFunction) |
<R extends MutableShortCollection> |
collectShort(ShortFunction<? super V> shortFunction,
R target) |
<R> MutableBiMap<K,R> |
collectValues(Function2<? super K,? super V,? extends R> function) |
<P,V1> RichIterable<V1> |
collectWith(Function2<? super V,? super P,? extends V1> function,
P parameter) |
<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) |
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object o) |
<V1> RichIterable<V1> |
flatCollect(Function<? super V,? extends Iterable<V1>> function) |
<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) |
MutableSetMultimap<V,K> |
flip() |
MutableBiMap<V,K> |
flipUniqueValues() |
V |
forcePut(K key,
V value) |
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 |
getIfAbsentPut(K key,
Function0<? extends V> function) |
V |
getIfAbsentPut(K key,
V value) |
<P> V |
getIfAbsentPutWith(K key,
Function<? super P,? extends V> function,
P parameter) |
V |
getIfAbsentPutWithKey(K key,
Function<? super K,? 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() |
<V1> MutableSetMultimap<V1,V> |
groupBy(Function<? super V,? extends V1> function) |
<VV,R extends MutableMultimap<VV,V>> |
groupBy(Function<? super V,? extends VV> function,
R target) |
<V1> MutableSetMultimap<V1,V> |
groupByEach(Function<? super V,? extends Iterable<V1>> function) |
<VV,R extends MutableMultimap<VV,V>> |
groupByEach(Function<? super V,? extends Iterable<VV>> function,
R target) |
<VV> MutableBiMap<VV,V> |
groupByUniqueKey(Function<? super V,? extends VV> function) |
<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) |
MutableBiMap<V,K> |
inverse() |
boolean |
isEmpty() |
Iterator<V> |
iterator() |
Set<K> |
keySet() |
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) |
MutableBiMap<K,V> |
newEmpty() |
boolean |
noneSatisfy(Predicate<? super V> predicate) |
<P> boolean |
noneSatisfyWith(Predicate2<? super V,? super P> predicate,
P parameter) |
boolean |
notEmpty() |
static <K,V> UnmodifiableBiMap<K,V> |
of(Map<K,V> map) |
static <K,V> UnmodifiableBiMap<K,V> |
of(MutableBiMap<K,V> biMap) |
PartitionMutableSet<V> |
partition(Predicate<? super V> predicate) |
<P> PartitionMutableSet<V> |
partitionWith(Predicate2<? super V,? super P> predicate,
P parameter) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
void |
putAllMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
V |
putPair(Pair<? extends K,? extends V> keyValuePair) |
MutableSet<V> |
reject(Predicate<? super V> predicate) |
<R extends Collection<V>> |
reject(Predicate<? super V> predicate,
R target) |
MutableBiMap<K,V> |
reject(Predicate2<? super K,? super V> predicate) |
<P> MutableSet<V> |
rejectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<P,R extends Collection<V>> |
rejectWith(Predicate2<? super V,? super P> predicate,
P parameter,
R targetCollection) |
V |
remove(Object key) |
boolean |
removeAllKeys(Set<? extends K> keys) |
boolean |
removeIf(Predicate2<? super K,? super V> predicate) |
V |
removeKey(K key) |
MutableSet<V> |
select(Predicate<? super V> predicate) |
<R extends Collection<V>> |
select(Predicate<? super V> predicate,
R target) |
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) |
<P,R extends Collection<V>> |
selectWith(Predicate2<? super V,? super P> predicate,
P parameter,
R targetCollection) |
int |
size() |
<V1> MutableObjectDoubleMap<V1> |
sumByDouble(Function<? super V,? extends V1> groupBy,
DoubleFunction<? super V> function) |
<V1> MutableObjectDoubleMap<V1> |
sumByFloat(Function<? super V,? extends V1> groupBy,
FloatFunction<? super V> function) |
<V1> MutableObjectLongMap<V1> |
sumByInt(Function<? super V,? extends V1> groupBy,
IntFunction<? super V> function) |
<V1> MutableObjectLongMap<V1> |
sumByLong(Function<? super V,? extends V1> groupBy,
LongFunction<? super V> function) |
double |
sumOfDouble(DoubleFunction<? super V> function) |
double |
sumOfFloat(FloatFunction<? super V> function) |
long |
sumOfInt(IntFunction<? super V> function) |
long |
sumOfLong(LongFunction<? super V> function) |
MutableBiMap<K,V> |
tap(Procedure<? super V> procedure) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] target) |
MutableBag<V> |
toBag() |
<NK,NV> MutableBiMap<NK,NV> |
toBiMap(Function<? super V,? extends NK> keyFunction,
Function<? super V,? extends NV> valueFunction) |
ImmutableBiMap<K,V> |
toImmutable() |
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() |
V |
updateValue(K key,
Function0<? extends V> factory,
Function<? super V,? extends V> function) |
<P> V |
updateValueWith(K key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter) |
Collection<V> |
values() |
RichIterable<V> |
valuesView() |
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) |
<S,R extends Collection<Pair<V,S>>> |
zip(Iterable<S> that,
R target) |
MutableSet<Pair<V,Integer>> |
zipWithIndex() |
<R extends Collection<Pair<V,Integer>>> |
zipWithIndex(R target) |
aggregateBy, aggregateByaggregateInPlaceBy, countBy, countByEach, countByWith, getOrDefaultinjectIntoKeyValue, parallelStream, spliterator, streamaggregateBy, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, countBy, countByEach, countByWith, flatCollectWith, flatCollectWith, forEach, getAny, groupByAndCollect, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, makeString, maxByOptional, maxOptional, maxOptional, minByOptional, minOptional, minOptional, reduce, reduceInPlace, reduceInPlace, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toSortedBagBy, toSortedListBy, toSortedMapBy, toSortedSetByforEachcompute, computeIfAbsent, computeIfPresent, forEach, merge, putIfAbsent, remove, replace, replace, replaceAllpublic UnmodifiableBiMap(MutableBiMap<K,V> delegate)
public static <K,V> UnmodifiableBiMap<K,V> of(MutableBiMap<K,V> biMap)
public static <K,V> UnmodifiableBiMap<K,V> of(Map<K,V> map)
public MutableBiMap<K,V> newEmpty()
newEmpty in interface MutableBiMap<K,V>newEmpty in interface MutableMapIterable<K,V>public MutableBiMap<V,K> inverse()
public V getIfAbsent(K key, Function0<? extends V> function)
getIfAbsent 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 int size()
public boolean equals(Object o)
public int hashCode()
public String toString()
toString in interface MapIterable<K,V>toString in interface RichIterable<V>toString in class Objectpublic 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 V getFirst()
getFirst in interface RichIterable<V>public V getLast()
getLast in interface RichIterable<V>public V getOnly()
getOnly in interface RichIterable<V>public boolean isEmpty()
public boolean notEmpty()
notEmpty in interface RichIterable<V>public boolean contains(Object object)
contains in interface RichIterable<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 boolean containsKey(Object key)
containsKey in interface Map<K,V>containsKey in interface MapIterable<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>containsValue in interface MapIterable<K,V>public MutableSetMultimap<V,K> flip()
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 MutableBiMap<K,V> clone()
public LazyIterable<V> asLazy()
asLazy in interface RichIterable<V>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> 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>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 void forEachKey(Procedure<? super K> procedure)
forEachKey in interface MapIterable<K,V>public void forEachValue(Procedure<? super V> procedure)
forEachValue in interface MapIterable<K,V>public void forEachKeyValue(Procedure2<? super K,? super V> procedure)
forEachKeyValue in interface MapIterable<K,V>public MutableBiMap<K,V> select(Predicate2<? super K,? super V> predicate)
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>public <R extends Collection<V>> R select(Predicate<? super V> predicate, R target)
select in interface RichIterable<V>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>public <P,R extends Collection<V>> R selectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)
selectWith in interface RichIterable<V>public MutableBiMap<K,V> reject(Predicate2<? super K,? super V> predicate)
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>public <R extends Collection<V>> R reject(Predicate<? super V> predicate, R target)
reject in interface RichIterable<V>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>public <P,R extends Collection<V>> R rejectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)
rejectWith in interface RichIterable<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>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>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>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 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 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 <K2,V2> MutableBiMap<K2,V2> collect(Function2<? super K,? super V,Pair<K2,V2>> function)
public <V1> RichIterable<V1> collect(Function<? super V,? extends V1> function)
collect 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 <P,V1> RichIterable<V1> collectWith(Function2<? super V,? super P,? extends V1> function, P parameter)
collectWith 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 <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 BooleanIterable collectBoolean(BooleanFunction<? super V> booleanFunction)
collectBoolean 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 ByteIterable collectByte(ByteFunction<? super V> byteFunction)
collectByte 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 CharIterable collectChar(CharFunction<? super V> charFunction)
collectChar 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 DoubleIterable collectDouble(DoubleFunction<? super V> doubleFunction)
collectDouble 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 FloatIterable collectFloat(FloatFunction<? super V> floatFunction)
collectFloat 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 IntIterable collectInt(IntFunction<? super V> intFunction)
collectInt 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 LongIterable collectLong(LongFunction<? super V> longFunction)
collectLong 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 ShortIterable collectShort(ShortFunction<? super V> shortFunction)
collectShort 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 <V1> RichIterable<V1> collectIf(Predicate<? super V> predicate, Function<? super V,? extends V1> function)
collectIf 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 <V1> RichIterable<V1> flatCollect(Function<? super V,? extends Iterable<V1>> function)
flatCollect 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 <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 <R extends Collection<V>> R into(R target)
into in interface RichIterable<V>public ImmutableBiMap<K,V> toImmutable()
toImmutable in interface BiMap<K,V>toImmutable in interface MapIterable<K,V>toImmutable in interface MutableMapIterable<K,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[] target)
toArray 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 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>public <V1> MutableObjectLongMap<V1> sumByInt(Function<? super V,? extends V1> groupBy, IntFunction<? super V> function)
sumByInt in interface MutableMapIterable<K,V>sumByInt in interface RichIterable<V>public <V1> MutableObjectDoubleMap<V1> sumByFloat(Function<? super V,? extends V1> groupBy, FloatFunction<? super V> function)
sumByFloat in interface MutableMapIterable<K,V>sumByFloat in interface RichIterable<V>public <V1> MutableObjectLongMap<V1> sumByLong(Function<? super V,? extends V1> groupBy, LongFunction<? super V> function)
sumByLong in interface MutableMapIterable<K,V>sumByLong in interface RichIterable<V>public <V1> MutableObjectDoubleMap<V1> sumByDouble(Function<? super V,? extends V1> groupBy, DoubleFunction<? super V> function)
sumByDouble in interface MutableMapIterable<K,V>sumByDouble in interface RichIterable<V>public 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 <S> MutableSet<Pair<V,S>> zip(Iterable<S> that)
zip in interface BiMap<K,V>zip in interface MutableBiMap<K,V>zip in interface MutableMapIterable<K,V>zip in interface RichIterable<V>public <S,R extends Collection<Pair<V,S>>> R zip(Iterable<S> that, R target)
zip in interface RichIterable<V>public MutableSet<Pair<V,Integer>> zipWithIndex()
zipWithIndex in interface BiMap<K,V>zipWithIndex in interface MutableBiMap<K,V>zipWithIndex in interface MutableMapIterable<K,V>zipWithIndex in interface RichIterable<V>public <R extends Collection<Pair<V,Integer>>> R zipWithIndex(R target)
zipWithIndex in interface RichIterable<V>public RichIterable<RichIterable<V>> chunk(int size)
chunk in interface RichIterable<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>public <VV,R extends MutableMultimap<VV,V>> R groupBy(Function<? super V,? extends VV> function, R target)
groupBy in interface RichIterable<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>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> 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>public <VV,R extends MutableMapIterable<VV,V>> R groupByUniqueKey(Function<? super V,? extends VV> function, R target)
groupByUniqueKey in interface RichIterable<V>public V putPair(Pair<? extends K,? extends V> keyValuePair)
putPair in interface MutableMapIterable<K,V>public V add(Pair<? extends K,? extends V> keyValuePair)
add in interface MutableMapIterable<K,V>public boolean removeAllKeys(Set<? extends K> keys)
removeAllKeys in interface MutableMapIterable<K,V>public boolean removeIf(Predicate2<? super K,? super V> predicate)
removeIf in interface MutableMapIterable<K,V>public V getIfAbsentPut(K key, Function0<? extends V> function)
getIfAbsentPut in interface MutableMapIterable<K,V>public V getIfAbsentPut(K key, V value)
getIfAbsentPut in interface MutableMapIterable<K,V>public V getIfAbsentPutWithKey(K key, Function<? super K,? extends V> function)
getIfAbsentPutWithKey in interface MutableMapIterable<K,V>public <P> V getIfAbsentPutWith(K key, Function<? super P,? extends V> function, P parameter)
getIfAbsentPutWith in interface MutableMapIterable<K,V>public V updateValue(K key, Function0<? extends V> factory, Function<? super V,? extends V> function)
updateValue in interface MutableMapIterable<K,V>public <P> V updateValueWith(K key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)
updateValueWith in interface MutableMapIterable<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.