public class UnmodifiableMutableMap<K,V> extends UnmodifiableMap<K,V> implements MutableMap<K,V>
MutableMap.asUnmodifiable(),
Serialized Form| 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() |
MutableMap<K,V> |
asSynchronized() |
MutableMap<K,V> |
asUnmodifiable() |
RichIterable<RichIterable<V>> |
chunk(int size) |
MutableMap<K,V> |
clone() |
<R> MutableBag<R> |
collect(Function<? super V,? extends R> function) |
<R,C extends Collection<R>> |
collect(Function<? super V,? extends R> function,
C target) |
<K2,V2> MutableMap<K2,V2> |
collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
MutableBooleanBag |
collectBoolean(BooleanFunction<? super V> booleanFunction) |
<R extends MutableBooleanCollection> |
collectBoolean(BooleanFunction<? super V> booleanFunction,
R target) |
MutableByteBag |
collectByte(ByteFunction<? super V> byteFunction) |
<R extends MutableByteCollection> |
collectByte(ByteFunction<? super V> byteFunction,
R target) |
MutableCharBag |
collectChar(CharFunction<? super V> charFunction) |
<R extends MutableCharCollection> |
collectChar(CharFunction<? super V> charFunction,
R target) |
MutableDoubleBag |
collectDouble(DoubleFunction<? super V> doubleFunction) |
<R extends MutableDoubleCollection> |
collectDouble(DoubleFunction<? super V> doubleFunction,
R target) |
MutableFloatBag |
collectFloat(FloatFunction<? super V> floatFunction) |
<R extends MutableFloatCollection> |
collectFloat(FloatFunction<? super V> floatFunction,
R target) |
<R> MutableBag<R> |
collectIf(Predicate<? super V> predicate,
Function<? super V,? extends R> function) |
<R,C extends Collection<R>> |
collectIf(Predicate<? super V> predicate,
Function<? super V,? extends R> function,
C target) |
MutableIntBag |
collectInt(IntFunction<? super V> intFunction) |
<R extends MutableIntCollection> |
collectInt(IntFunction<? super V> intFunction,
R target) |
<E> MutableMap<K,V> |
collectKeysAndValues(Iterable<E> iterable,
Function<? super E,? extends K> keyFunction,
Function<? super E,? extends V> valueFunction) |
MutableLongBag |
collectLong(LongFunction<? super V> longFunction) |
<R extends MutableLongCollection> |
collectLong(LongFunction<? super V> longFunction,
R target) |
MutableShortBag |
collectShort(ShortFunction<? super V> shortFunction) |
<R extends MutableShortCollection> |
collectShort(ShortFunction<? super V> shortFunction,
R target) |
<R> MutableMap<K,R> |
collectValues(Function2<? super K,? super V,? extends R> function) |
<P,R,C extends Collection<R>> |
collectWith(Function2<? super V,? super P,? extends R> function,
P parameter,
C targetCollection) |
<P,VV> MutableBag<VV> |
collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
boolean |
contains(Object object) |
boolean |
containsAll(Collection<?> source) |
boolean |
containsAllArguments(Object... elements) |
boolean |
containsAllIterable(Iterable<?> source) |
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) |
<R> MutableBag<R> |
flatCollect(Function<? super V,? extends Iterable<R>> function) |
<R,C extends Collection<R>> |
flatCollect(Function<? super V,? extends Iterable<R>> function,
C 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() |
MutableMap<V,K> |
flipUniqueValues() |
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 |
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() |
<R> MutableBagMultimap<R,V> |
groupBy(Function<? super V,? extends R> function) |
<R,C extends MutableMultimap<R,V>> |
groupBy(Function<? super V,? extends R> function,
C target) |
<R> MutableBagMultimap<R,V> |
groupByEach(Function<? super V,? extends Iterable<R>> function) |
<R,C extends MutableMultimap<R,V>> |
groupByEach(Function<? super V,? extends Iterable<R>> function,
C target) |
<VV> MutableMap<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) |
Iterator<V> |
iterator() |
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) |
<R extends Comparable<? super R>> |
maxBy(Function<? super V,? extends R> function) |
V |
min() |
V |
min(Comparator<? super V> comparator) |
<R extends Comparable<? super R>> |
minBy(Function<? super V,? extends R> function) |
MutableMap<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,M extends Map<K,V>> |
of(M map)
This method will take a MutableMap and wrap it directly in a UnmodifiableMutableMap.
|
PartitionMutableBag<V> |
partition(Predicate<? super V> predicate) |
<P> PartitionMutableBag<V> |
partitionWith(Predicate2<? super V,? super P> predicate,
P parameter) |
void |
putAllMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
V |
putPair(Pair<? extends K,? extends V> keyValuePair) |
MutableBag<V> |
reject(Predicate<? super V> predicate) |
<R extends Collection<V>> |
reject(Predicate<? super V> predicate,
R target) |
MutableMap<K,V> |
reject(Predicate2<? super K,? super V> predicate) |
<P> MutableBag<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) |
boolean |
removeAllKeys(Set<? extends K> keys) |
boolean |
removeIf(Predicate2<? super K,? super V> predicate) |
V |
removeKey(K key) |
MutableBag<V> |
select(Predicate<? super V> predicate) |
<R extends Collection<V>> |
select(Predicate<? super V> predicate,
R target) |
MutableMap<K,V> |
select(Predicate2<? super K,? super V> predicate) |
<S> MutableBag<S> |
selectInstancesOf(Class<S> clazz) |
<P> MutableBag<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) |
<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) |
MutableMap<K,V> |
tap(Procedure<? super V> procedure) |
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) |
ImmutableMap<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) |
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) |
RichIterable<V> |
valuesView() |
MutableMap<K,V> |
withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs) |
MutableMap<K,V> |
withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues) |
MutableMap<K,V> |
withKeyValue(K key,
V value) |
MutableMap<K,V> |
withMap(Map<? extends K,? extends V> map) |
MutableMap<K,V> |
withMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
MutableMap<K,V> |
withoutAllKeys(Iterable<? extends K> keys) |
MutableMap<K,V> |
withoutKey(K key) |
<S> MutableBag<Pair<V,S>> |
zip(Iterable<S> that)
Deprecated.
in 6.0. Use
OrderedIterable.zip(Iterable) instead. |
<S,R extends Collection<Pair<V,S>>> |
zip(Iterable<S> that,
R target) |
MutableSet<Pair<V,Integer>> |
zipWithIndex()
Deprecated.
in 6.0. Use
OrderedIterable.zipWithIndex() instead. |
<R extends Collection<Pair<V,Integer>>> |
zipWithIndex(R target) |
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, toString, valuesaggregateBy, aggregateBy, aggregateInPlaceBy, flatCollectWithcountBy, countByEach, countByWith, getOrDefaultclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuescontainsKey, containsValue, get, injectIntoKeyValue, parallelStream, spliterator, stream, toStringaggregateBy, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, countBy, countByEach, countByWith, flatCollectWith, forEach, getAny, groupByAndCollect, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, isEmpty, makeString, maxByOptional, maxOptional, maxOptional, minByOptional, minOptional, minOptional, reduce, reduceInPlace, reduceInPlace, size, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toSortedBagBy, toSortedListBy, toSortedMapBy, toSortedSetByforEachpublic static <K,V,M extends Map<K,V>> UnmodifiableMutableMap<K,V> of(M map)
public MutableMap<K,V> newEmpty()
newEmpty in interface MutableMap<K,V>newEmpty in interface MutableMapIterable<K,V>public boolean notEmpty()
notEmpty 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 MutableMap<V,K> flipUniqueValues()
flipUniqueValues in interface MapIterable<K,V>flipUniqueValues in interface MutableMap<K,V>flipUniqueValues in interface MutableMapIterable<K,V>flipUniqueValues in interface UnsortedMapIterable<K,V>public <E> MutableMap<K,V> collectKeysAndValues(Iterable<E> iterable, Function<? super E,? extends K> keyFunction, Function<? super E,? extends V> valueFunction)
collectKeysAndValues in interface MutableMap<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 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 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 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 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 MutableMap<K,V> withKeyValue(K key, V value)
withKeyValue in interface MutableMap<K,V>withKeyValue in interface MutableMapIterable<K,V>public MutableMap<K,V> withMap(Map<? extends K,? extends V> map)
withMap in interface MutableMap<K,V>withMap in interface MutableMapIterable<K,V>public MutableMap<K,V> withMapIterable(MapIterable<? extends K,? extends V> mapIterable)
withMapIterable in interface MutableMap<K,V>withMapIterable in interface MutableMapIterable<K,V>public void putAllMapIterable(MapIterable<? extends K,? extends V> mapIterable)
putAllMapIterable in interface MutableMapIterable<K,V>public MutableMap<K,V> withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues)
withAllKeyValues in interface MutableMap<K,V>withAllKeyValues in interface MutableMapIterable<K,V>public MutableMap<K,V> withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs)
withAllKeyValueArguments in interface MutableMap<K,V>withAllKeyValueArguments in interface MutableMapIterable<K,V>public MutableMap<K,V> withoutKey(K key)
withoutKey in interface MutableMap<K,V>withoutKey in interface MutableMapIterable<K,V>public MutableMap<K,V> withoutAllKeys(Iterable<? extends K> keys)
withoutAllKeys in interface MutableMap<K,V>withoutAllKeys in interface MutableMapIterable<K,V>public MutableSetMultimap<V,K> flip()
flip in interface MapIterable<K,V>flip in interface MutableMap<K,V>flip in interface MutableMapIterable<K,V>flip in interface UnsortedMapIterable<K,V>public MutableMap<K,V> clone()
public MutableMap<K,V> asUnmodifiable()
asUnmodifiable in interface MutableMap<K,V>asUnmodifiable in interface MutableMapIterable<K,V>public MutableMap<K,V> asSynchronized()
asSynchronized in interface MutableMap<K,V>asSynchronized in interface MutableMapIterable<K,V>public MutableMap<K,V> tap(Procedure<? super V> procedure)
tap in interface MapIterable<K,V>tap in interface MutableMap<K,V>tap in interface MutableMapIterable<K,V>tap in interface UnsortedMapIterable<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 int hashCode()
public boolean equals(Object obj)
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 ImmutableMap<K,V> toImmutable()
toImmutable in interface MapIterable<K,V>toImmutable in interface MutableMapIterable<K,V>toImmutable in interface UnsortedMapIterable<K,V>public <R> MutableMap<K,R> collectValues(Function2<? super K,? super V,? extends R> function)
collectValues in interface MapIterable<K,V>collectValues in interface MutableMap<K,V>collectValues in interface MutableMapIterable<K,V>collectValues in interface UnsortedMapIterable<K,V>public <K2,V2> MutableMap<K2,V2> collect(Function2<? super K,? super V,Pair<K2,V2>> function)
collect in interface MapIterable<K,V>collect in interface MutableMap<K,V>collect in interface MutableMapIterable<K,V>collect in interface UnsortedMapIterable<K,V>public MutableMap<K,V> select(Predicate2<? super K,? super V> predicate)
select in interface MapIterable<K,V>select in interface MutableMap<K,V>select in interface MutableMapIterable<K,V>select in interface UnsortedMapIterable<K,V>public MutableMap<K,V> reject(Predicate2<? super K,? super V> predicate)
reject in interface MapIterable<K,V>reject in interface MutableMap<K,V>reject in interface MutableMapIterable<K,V>reject in interface UnsortedMapIterable<K,V>public Pair<K,V> detect(Predicate2<? super K,? super V> predicate)
detect in interface MapIterable<K,V>public Optional<Pair<K,V>> detectOptional(Predicate2<? super K,? super V> predicate)
detectOptional in interface MapIterable<K,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 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 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 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 LazyIterable<V> asLazy()
asLazy in interface RichIterable<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 <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 MutableSet<V> toSet()
toSet 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 MutableSortedSet<V> toSortedSet()
toSortedSet in interface RichIterable<V>public MutableSortedSet<V> toSortedSet(Comparator<? super V> comparator)
toSortedSet in interface RichIterable<V>public RichIterable<RichIterable<V>> chunk(int size)
chunk in interface RichIterable<V>public <R,C extends Collection<R>> C collect(Function<? super V,? extends R> function, C target)
collect in interface RichIterable<V>public <R,C extends Collection<R>> C collectIf(Predicate<? super V> predicate, Function<? super V,? extends R> function, C target)
collectIf in interface RichIterable<V>public <P,VV> MutableBag<VV> collectWith(Function2<? super V,? super P,? extends VV> function, P parameter)
collectWith in interface MutableMap<K,V>collectWith in interface UnsortedMapIterable<K,V>collectWith in interface RichIterable<V>public <P,R,C extends Collection<R>> C collectWith(Function2<? super V,? super P,? extends R> function, P parameter, C targetCollection)
collectWith in interface RichIterable<V>public boolean contains(Object object)
contains in interface RichIterable<V>public boolean containsAllArguments(Object... elements)
containsAllArguments 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 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 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<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 <R,C extends Collection<R>> C flatCollect(Function<? super V,? extends Iterable<R>> function, C target)
flatCollect 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 <R> MutableBagMultimap<R,V> groupBy(Function<? super V,? extends R> function)
groupBy in interface MutableMap<K,V>groupBy in interface MutableMapIterable<K,V>groupBy in interface UnsortedMapIterable<K,V>groupBy in interface RichIterable<V>public <R,C extends MutableMultimap<R,V>> C groupBy(Function<? super V,? extends R> function, C target)
groupBy in interface RichIterable<V>public <R> MutableBagMultimap<R,V> groupByEach(Function<? super V,? extends Iterable<R>> function)
groupByEach in interface MutableMap<K,V>groupByEach in interface MutableMapIterable<K,V>groupByEach in interface UnsortedMapIterable<K,V>groupByEach in interface RichIterable<V>public <R,C extends MutableMultimap<R,V>> C groupByEach(Function<? super V,? extends Iterable<R>> function, C target)
groupByEach in interface RichIterable<V>public <VV> MutableMap<VV,V> groupByUniqueKey(Function<? super V,? extends VV> function)
groupByUniqueKey in interface MutableMap<K,V>groupByUniqueKey in interface MutableMapIterable<K,V>groupByUniqueKey in interface UnsortedMapIterable<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 <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 double injectInto(double injectedValue,
DoubleObjectToDoubleFunction<? super V> function)
injectInto in interface RichIterable<V>public float injectInto(float injectedValue,
FloatObjectToFloatFunction<? 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>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 V max()
max in interface RichIterable<V>public V max(Comparator<? super V> comparator)
max in interface RichIterable<V>public <R extends Comparable<? super R>> V maxBy(Function<? super V,? extends R> function)
maxBy in interface RichIterable<V>public V min()
min in interface RichIterable<V>public V min(Comparator<? super V> comparator)
min in interface RichIterable<V>public <R extends Comparable<? super R>> V minBy(Function<? super V,? extends R> function)
minBy in interface RichIterable<V>public Object[] toArray()
toArray in interface RichIterable<V>public <T> T[] toArray(T[] a)
toArray 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 <R extends Collection<Pair<V,Integer>>> R zipWithIndex(R target)
zipWithIndex in interface RichIterable<V>public <R> MutableBag<R> collect(Function<? super V,? extends R> function)
collect in interface MutableMap<K,V>collect in interface UnsortedMapIterable<K,V>collect in interface RichIterable<V>public MutableBooleanBag collectBoolean(BooleanFunction<? super V> booleanFunction)
collectBoolean in interface MutableMap<K,V>collectBoolean in interface UnsortedMapIterable<K,V>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 MutableByteBag collectByte(ByteFunction<? super V> byteFunction)
collectByte in interface MutableMap<K,V>collectByte in interface UnsortedMapIterable<K,V>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 MutableCharBag collectChar(CharFunction<? super V> charFunction)
collectChar in interface MutableMap<K,V>collectChar in interface UnsortedMapIterable<K,V>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 MutableDoubleBag collectDouble(DoubleFunction<? super V> doubleFunction)
collectDouble in interface MutableMap<K,V>collectDouble in interface UnsortedMapIterable<K,V>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 MutableFloatBag collectFloat(FloatFunction<? super V> floatFunction)
collectFloat in interface MutableMap<K,V>collectFloat in interface UnsortedMapIterable<K,V>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 MutableIntBag collectInt(IntFunction<? super V> intFunction)
collectInt in interface MutableMap<K,V>collectInt in interface UnsortedMapIterable<K,V>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 MutableLongBag collectLong(LongFunction<? super V> longFunction)
collectLong in interface MutableMap<K,V>collectLong in interface UnsortedMapIterable<K,V>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 MutableShortBag collectShort(ShortFunction<? super V> shortFunction)
collectShort in interface MutableMap<K,V>collectShort in interface UnsortedMapIterable<K,V>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 <R> MutableBag<R> collectIf(Predicate<? super V> predicate, Function<? super V,? extends R> function)
collectIf in interface MutableMap<K,V>collectIf in interface UnsortedMapIterable<K,V>collectIf in interface RichIterable<V>public <R> MutableBag<R> flatCollect(Function<? super V,? extends Iterable<R>> function)
flatCollect in interface MutableMap<K,V>flatCollect in interface UnsortedMapIterable<K,V>flatCollect in interface RichIterable<V>public MutableBag<V> select(Predicate<? super V> predicate)
select in interface MutableMap<K,V>select in interface MutableMapIterable<K,V>select in interface UnsortedMapIterable<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> MutableBag<V> selectWith(Predicate2<? super V,? super P> predicate, P parameter)
selectWith in interface MutableMap<K,V>selectWith in interface MutableMapIterable<K,V>selectWith in interface UnsortedMapIterable<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 MutableBag<V> reject(Predicate<? super V> predicate)
reject in interface MutableMap<K,V>reject in interface MutableMapIterable<K,V>reject in interface UnsortedMapIterable<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> MutableBag<V> rejectWith(Predicate2<? super V,? super P> predicate, P parameter)
rejectWith in interface MutableMap<K,V>rejectWith in interface MutableMapIterable<K,V>rejectWith in interface UnsortedMapIterable<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 <S> MutableBag<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface MutableMap<K,V>selectInstancesOf in interface MutableMapIterable<K,V>selectInstancesOf in interface UnsortedMapIterable<K,V>selectInstancesOf in interface RichIterable<V>public PartitionMutableBag<V> partition(Predicate<? super V> predicate)
partition in interface MutableMap<K,V>partition in interface MutableMapIterable<K,V>partition in interface UnsortedMapIterable<K,V>partition in interface RichIterable<V>public <P> PartitionMutableBag<V> partitionWith(Predicate2<? super V,? super P> predicate, P parameter)
partitionWith in interface MutableMap<K,V>partitionWith in interface UnsortedMapIterable<K,V>partitionWith in interface RichIterable<V>@Deprecated public <S> MutableBag<Pair<V,S>> zip(Iterable<S> that)
OrderedIterable.zip(Iterable) instead.zip in interface MutableMap<K,V>zip in interface MutableMapIterable<K,V>zip in interface UnsortedMapIterable<K,V>zip in interface RichIterable<V>@Deprecated public MutableSet<Pair<V,Integer>> zipWithIndex()
OrderedIterable.zipWithIndex() instead.zipWithIndex in interface MutableMap<K,V>zipWithIndex in interface MutableMapIterable<K,V>zipWithIndex in interface UnsortedMapIterable<K,V>zipWithIndex in interface RichIterable<V>Copyright © 2004–2022. All rights reserved.