Class SynchronizedDoubleObjectMap<V>
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedDoubleObjectMap<V>
-
- All Implemented Interfaces:
Serializable
,Iterable<V>
,InternalIterable<V>
,DoubleObjectMap<V>
,MutableDoubleObjectMap<V>
,MutablePrimitiveObjectMap<V>
,PrimitiveObjectMap<V>
,RichIterable<V>
public class SynchronizedDoubleObjectMap<V> extends Object implements MutableDoubleObjectMap<V>, Serializable
A synchronized view of aMutableDoubleObjectMap
. It is imperative that the user manually synchronize on the collection when iterating over it using the standard JDK iterator or JDK 5 for loop, as perCollections.synchronizedCollection(Collection)
.This file was automatically generated from template file synchronizedPrimitiveObjectMap.stg.
- Since:
- 3.1.
- See Also:
MutableDoubleObjectMap.asSynchronized()
,MutableMap.asSynchronized()
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedDoubleObjectMap(MutableDoubleObjectMap<V> map)
SynchronizedDoubleObjectMap(MutableDoubleObjectMap<V> map, Object newLock)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <K,VV>
MutableMap<K,VV>aggregateBy(Function<? super V,? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV,? super V,? extends VV> nonMutatingAggregator)
<K,VV>
MutableMap<K,VV>aggregateInPlaceBy(Function<? super V,? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV,? super V> mutatingAggregator)
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()
MutableDoubleObjectMap<V>
asSynchronized()
MutableDoubleObjectMap<V>
asUnmodifiable()
RichIterable<RichIterable<V>>
chunk(int size)
void
clear()
<VV> MutableBag<VV>
collect(Function<? super V,? extends VV> function)
<VV,R extends Collection<VV>>
Rcollect(Function<? super V,? extends VV> function, R target)
MutableBooleanBag
collectBoolean(BooleanFunction<? super V> booleanFunction)
<R extends MutableBooleanCollection>
RcollectBoolean(BooleanFunction<? super V> booleanFunction, R target)
MutableByteBag
collectByte(ByteFunction<? super V> byteFunction)
<R extends MutableByteCollection>
RcollectByte(ByteFunction<? super V> byteFunction, R target)
MutableCharBag
collectChar(CharFunction<? super V> charFunction)
<R extends MutableCharCollection>
RcollectChar(CharFunction<? super V> charFunction, R target)
MutableDoubleBag
collectDouble(DoubleFunction<? super V> doubleFunction)
<R extends MutableDoubleCollection>
RcollectDouble(DoubleFunction<? super V> doubleFunction, R target)
MutableFloatBag
collectFloat(FloatFunction<? super V> floatFunction)
<R extends MutableFloatCollection>
RcollectFloat(FloatFunction<? super V> floatFunction, R target)
<VV> MutableBag<VV>
collectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function)
<VV,R extends Collection<VV>>
RcollectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function, R target)
MutableIntBag
collectInt(IntFunction<? super V> intFunction)
<R extends MutableIntCollection>
RcollectInt(IntFunction<? super V> intFunction, R target)
MutableLongBag
collectLong(LongFunction<? super V> longFunction)
<R extends MutableLongCollection>
RcollectLong(LongFunction<? super V> longFunction, R target)
MutableShortBag
collectShort(ShortFunction<? super V> shortFunction)
<R extends MutableShortCollection>
RcollectShort(ShortFunction<? super V> shortFunction, R target)
<P,VV>
MutableBag<VV>collectWith(Function2<? super V,? super P,? extends VV> function, P parameter)
<P,VV,R extends Collection<VV>>
RcollectWith(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
containsAny(Collection<?> source)
boolean
containsAnyIterable(Iterable<?> source)
boolean
containsKey(double key)
boolean
containsNone(Collection<?> source)
boolean
containsNoneIterable(Iterable<?> source)
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)
V
detectIfNone(Predicate<? super V> predicate, Function0<? extends V> function)
Optional<V>
detectOptional(Predicate<? 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> MutableBag<VV>
flatCollect(Function<? super V,? extends Iterable<VV>> function)
<VV,R extends Collection<VV>>
RflatCollect(Function<? super V,? extends Iterable<VV>> function, R target)
<R extends MutableBooleanCollection>
RflatCollectBoolean(Function<? super V,? extends BooleanIterable> function, R target)
<R extends MutableByteCollection>
RflatCollectByte(Function<? super V,? extends ByteIterable> function, R target)
<R extends MutableCharCollection>
RflatCollectChar(Function<? super V,? extends CharIterable> function, R target)
<R extends MutableDoubleCollection>
RflatCollectDouble(Function<? super V,? extends DoubleIterable> function, R target)
<R extends MutableFloatCollection>
RflatCollectFloat(Function<? super V,? extends FloatIterable> function, R target)
<R extends MutableIntCollection>
RflatCollectInt(Function<? super V,? extends IntIterable> function, R target)
<R extends MutableLongCollection>
RflatCollectLong(Function<? super V,? extends LongIterable> function, R target)
<R extends MutableShortCollection>
RflatCollectShort(Function<? super V,? extends ShortIterable> function, R target)
MutableObjectDoubleMap<V>
flipUniqueValues()
void
forEach(Procedure<? super V> procedure)
void
forEachKey(DoubleProcedure procedure)
void
forEachKeyValue(DoubleObjectProcedure<? 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(double key)
V
getFirst()
V
getIfAbsent(double key, Function0<? extends V> ifAbsent)
V
getIfAbsentPut(double key, Function0<? extends V> function)
V
getIfAbsentPut(double key, V value)
<P> V
getIfAbsentPutWith(double key, Function<? super P,? extends V> function, P parameter)
V
getIfAbsentPutWithKey(double key, DoubleToObjectFunction<? extends V> function)
V
getLast()
V
getOnly()
<VV> MutableBagMultimap<VV,V>
groupBy(Function<? super V,? extends VV> function)
<VV,R extends MutableMultimap<VV,V>>
RgroupBy(Function<? super V,? extends VV> function, R target)
<VV> MutableBagMultimap<VV,V>
groupByEach(Function<? super V,? extends Iterable<VV>> function)
<VV,R extends MutableMultimap<VV,V>>
RgroupByEach(Function<? super V,? extends Iterable<VV>> function, R target)
<VV> MutableMap<VV,V>
groupByUniqueKey(Function<? super V,? extends VV> function)
<VV,R extends MutableMapIterable<VV,V>>
RgroupByUniqueKey(Function<? super V,? extends VV> function, R target)
int
hashCode()
double
injectInto(double injectedValue, DoubleObjectToDoubleFunction<? super V> function)
float
injectInto(float injectedValue, FloatObjectToFloatFunction<? super V> function)
int
injectInto(int injectedValue, IntObjectToIntFunction<? super V> function)
long
injectInto(long injectedValue, LongObjectToLongFunction<? super V> function)
<IV> IV
injectInto(IV injectedValue, Function2<? super IV,? super V,? extends IV> function)
<R extends Collection<V>>
Rinto(R target)
boolean
isEmpty()
Iterator<V>
iterator()
Must be called in a synchronized block.MutableDoubleSet
keySet()
LazyDoubleIterable
keysView()
RichIterable<DoubleObjectPair<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>>
VmaxBy(Function<? super V,? extends VV> function)
V
min()
V
min(Comparator<? super V> comparator)
<VV extends Comparable<? super VV>>
VminBy(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()
PartitionMutableBag<V>
partition(Predicate<? super V> predicate)
<P> PartitionMutableBag<V>
partitionWith(Predicate2<? super V,? super P> predicate, P parameter)
V
put(double key, V value)
void
putAll(DoubleObjectMap<? extends V> map)
V
putPair(DoubleObjectPair<V> keyValuePair)
MutableBag<V>
reject(Predicate<? super V> predicate)
<R extends Collection<V>>
Rreject(Predicate<? super V> predicate, R target)
MutableDoubleObjectMap<V>
reject(DoubleObjectPredicate<? super V> predicate)
<P> MutableBag<V>
rejectWith(Predicate2<? super V,? super P> predicate, P parameter)
<P,R extends Collection<V>>
RrejectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)
V
remove(double key)
boolean
removeIf(DoubleObjectPredicate<? super V> predicate)
V
removeKey(double key)
MutableBag<V>
select(Predicate<? super V> predicate)
<R extends Collection<V>>
Rselect(Predicate<? super V> predicate, R target)
MutableDoubleObjectMap<V>
select(DoubleObjectPredicate<? 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>>
RselectWith(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)
MutableDoubleObjectMap<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)
ImmutableDoubleObjectMap<V>
toImmutable()
ImmutableBag<V>
toImmutableBag()
ImmutableList<V>
toImmutableList()
ImmutableSet<V>
toImmutableSet()
ImmutableSortedBag<V>
toImmutableSortedBag()
ImmutableSortedBag<V>
toImmutableSortedBag(Comparator<? super V> comparator)
<VV extends Comparable<? super VV>>
ImmutableSortedBag<V>toImmutableSortedBagBy(Function<? super V,? extends VV> function)
ImmutableList<V>
toImmutableSortedList()
ImmutableList<V>
toImmutableSortedList(Comparator<? super V> comparator)
<VV extends Comparable<? super VV>>
ImmutableList<V>toImmutableSortedListBy(Function<? super V,? extends VV> function)
ImmutableSortedSet<V>
toImmutableSortedSet()
ImmutableSortedSet<V>
toImmutableSortedSet(Comparator<? super V> comparator)
<VV extends Comparable<? super VV>>
ImmutableSortedSet<V>toImmutableSortedSetBy(Function<? super V,? extends VV> function)
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>>
RtoMap(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)
<VV extends Comparable<? super VV>>
MutableSortedBag<V>toSortedBagBy(Function<? super V,? extends VV> function)
MutableList<V>
toSortedList()
MutableList<V>
toSortedList(Comparator<? super V> comparator)
<VV extends Comparable<? super VV>>
MutableList<V>toSortedListBy(Function<? super V,? extends VV> function)
<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)
<KK extends Comparable<? super KK>,NK,NV>
MutableSortedMap<NK,NV>toSortedMapBy(Function<? super NK,KK> sortBy, Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
MutableSortedSet<V>
toSortedSet()
MutableSortedSet<V>
toSortedSet(Comparator<? super V> comparator)
<VV extends Comparable<? super VV>>
MutableSortedSet<V>toSortedSetBy(Function<? super V,? extends VV> function)
String
toString()
V
updateValue(double key, Function0<? extends V> factory, Function<? super V,? extends V> function)
<P> V
updateValueWith(double key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)
Collection<V>
values()
MutableDoubleObjectMap<V>
withKeyValue(double key, V value)
MutableDoubleObjectMap<V>
withoutAllKeys(DoubleIterable keys)
MutableDoubleObjectMap<V>
withoutKey(double key)
<S> MutableBag<Pair<V,S>>
zip(Iterable<S> that)
Deprecated.in 7.0.<S,R extends Collection<Pair<V,S>>>
Rzip(Iterable<S> that, R target)
MutableSet<Pair<V,Integer>>
zipWithIndex()
Deprecated.in 7.0.<R extends Collection<Pair<V,Integer>>>
RzipWithIndex(R target)
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleObjectMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.InternalIterable
forEach
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleObjectMap
withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutablePrimitiveObjectMap
flatCollectWith
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.PrimitiveObjectMap
parallelStream, spliterator, stream
-
Methods inherited from interface org.eclipse.collections.api.RichIterable
aggregateBy, containsBy, countBy, countBy, countByEach, countByEach, countByWith, countByWith, flatCollectWith, getAny, groupByAndCollect, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, makeString, maxByOptional, maxOptional, maxOptional, minByOptional, minOptional, minOptional, reduce, reduceInPlace, reduceInPlace, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, toImmutableBiMap, toImmutableMap
-
-
-
-
Constructor Detail
-
SynchronizedDoubleObjectMap
public SynchronizedDoubleObjectMap(MutableDoubleObjectMap<V> map)
-
SynchronizedDoubleObjectMap
public SynchronizedDoubleObjectMap(MutableDoubleObjectMap<V> map, Object newLock)
-
-
Method Detail
-
put
public V put(double key, V value)
- Specified by:
put
in interfaceMutableDoubleObjectMap<V>
-
putPair
public V putPair(DoubleObjectPair<V> keyValuePair)
- Specified by:
putPair
in interfaceMutableDoubleObjectMap<V>
-
putAll
public void putAll(DoubleObjectMap<? extends V> map)
- Specified by:
putAll
in interfaceMutableDoubleObjectMap<V>
-
removeKey
public V removeKey(double key)
- Specified by:
removeKey
in interfaceMutableDoubleObjectMap<V>
-
remove
public V remove(double key)
- Specified by:
remove
in interfaceMutableDoubleObjectMap<V>
-
getIfAbsentPut
public V getIfAbsentPut(double key, V value)
- Specified by:
getIfAbsentPut
in interfaceMutableDoubleObjectMap<V>
-
getIfAbsentPut
public V getIfAbsentPut(double key, Function0<? extends V> function)
- Specified by:
getIfAbsentPut
in interfaceMutableDoubleObjectMap<V>
-
getIfAbsentPutWithKey
public V getIfAbsentPutWithKey(double key, DoubleToObjectFunction<? extends V> function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableDoubleObjectMap<V>
-
getIfAbsentPutWith
public <P> V getIfAbsentPutWith(double key, Function<? super P,? extends V> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableDoubleObjectMap<V>
-
updateValue
public V updateValue(double key, Function0<? extends V> factory, Function<? super V,? extends V> function)
- Specified by:
updateValue
in interfaceMutableDoubleObjectMap<V>
-
updateValueWith
public <P> V updateValueWith(double key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)
- Specified by:
updateValueWith
in interfaceMutableDoubleObjectMap<V>
-
removeIf
public boolean removeIf(DoubleObjectPredicate<? super V> predicate)
- Specified by:
removeIf
in interfaceMutableDoubleObjectMap<V>
-
get
public V get(double key)
- Specified by:
get
in interfaceDoubleObjectMap<V>
-
getIfAbsent
public V getIfAbsent(double key, Function0<? extends V> ifAbsent)
- Specified by:
getIfAbsent
in interfaceDoubleObjectMap<V>
-
containsKey
public boolean containsKey(double key)
- Specified by:
containsKey
in interfaceDoubleObjectMap<V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfacePrimitiveObjectMap<V>
-
tap
public MutableDoubleObjectMap<V> tap(Procedure<? super V> procedure)
- Specified by:
tap
in interfaceDoubleObjectMap<V>
- Specified by:
tap
in interfaceMutableDoubleObjectMap<V>
- Specified by:
tap
in interfaceRichIterable<V>
-
forEachValue
public void forEachValue(Procedure<? super V> procedure)
- Specified by:
forEachValue
in interfacePrimitiveObjectMap<V>
-
forEachKey
public void forEachKey(DoubleProcedure procedure)
- Specified by:
forEachKey
in interfaceDoubleObjectMap<V>
-
forEachKeyValue
public void forEachKeyValue(DoubleObjectProcedure<? super V> procedure)
- Specified by:
forEachKeyValue
in interfaceDoubleObjectMap<V>
-
select
public MutableDoubleObjectMap<V> select(DoubleObjectPredicate<? super V> predicate)
- Specified by:
select
in interfaceDoubleObjectMap<V>
- Specified by:
select
in interfaceMutableDoubleObjectMap<V>
-
reject
public MutableDoubleObjectMap<V> reject(DoubleObjectPredicate<? super V> predicate)
- Specified by:
reject
in interfaceDoubleObjectMap<V>
- Specified by:
reject
in interfaceMutableDoubleObjectMap<V>
-
size
public int size()
- Specified by:
size
in interfaceRichIterable<V>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceRichIterable<V>
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmpty
in interfaceRichIterable<V>
-
getFirst
public V getFirst()
- Specified by:
getFirst
in interfaceRichIterable<V>
-
getLast
public V getLast()
- Specified by:
getLast
in interfaceRichIterable<V>
-
getOnly
public V getOnly()
- Specified by:
getOnly
in interfaceRichIterable<V>
-
contains
public boolean contains(Object object)
- Specified by:
contains
in interfaceRichIterable<V>
-
containsAllIterable
public boolean containsAllIterable(Iterable<?> source)
- Specified by:
containsAllIterable
in interfaceRichIterable<V>
-
containsAll
public boolean containsAll(Collection<?> source)
- Specified by:
containsAll
in interfaceRichIterable<V>
-
containsNoneIterable
public boolean containsNoneIterable(Iterable<?> source)
- Specified by:
containsNoneIterable
in interfaceRichIterable<V>
-
containsNone
public boolean containsNone(Collection<?> source)
- Specified by:
containsNone
in interfaceRichIterable<V>
-
containsAnyIterable
public boolean containsAnyIterable(Iterable<?> source)
- Specified by:
containsAnyIterable
in interfaceRichIterable<V>
-
containsAny
public boolean containsAny(Collection<?> source)
- Specified by:
containsAny
in interfaceRichIterable<V>
-
containsAllArguments
public boolean containsAllArguments(Object... elements)
- Specified by:
containsAllArguments
in interfaceRichIterable<V>
-
select
public MutableBag<V> select(Predicate<? super V> predicate)
- Specified by:
select
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
select
in interfacePrimitiveObjectMap<V>
- Specified by:
select
in interfaceRichIterable<V>
-
select
public <R extends Collection<V>> R select(Predicate<? super V> predicate, R target)
- Specified by:
select
in interfaceRichIterable<V>
-
selectWith
public <P> MutableBag<V> selectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
selectWith
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
selectWith
in interfacePrimitiveObjectMap<V>
- Specified by:
selectWith
in interfaceRichIterable<V>
-
selectWith
public <P,R extends Collection<V>> R selectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)
- Specified by:
selectWith
in interfaceRichIterable<V>
-
partition
public PartitionMutableBag<V> partition(Predicate<? super V> predicate)
- Specified by:
partition
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
partition
in interfacePrimitiveObjectMap<V>
- Specified by:
partition
in interfaceRichIterable<V>
-
partitionWith
public <P> PartitionMutableBag<V> partitionWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
partitionWith
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
partitionWith
in interfacePrimitiveObjectMap<V>
- Specified by:
partitionWith
in interfaceRichIterable<V>
-
selectInstancesOf
public <S> MutableBag<S> selectInstancesOf(Class<S> clazz)
- Specified by:
selectInstancesOf
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
selectInstancesOf
in interfacePrimitiveObjectMap<V>
- Specified by:
selectInstancesOf
in interfaceRichIterable<V>
-
zipWithIndex
@Deprecated public MutableSet<Pair<V,Integer>> zipWithIndex()
Deprecated.in 7.0. UseOrderedIterable.zipWithIndex()
instead.- Specified by:
zipWithIndex
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
zipWithIndex
in interfacePrimitiveObjectMap<V>
- Specified by:
zipWithIndex
in interfaceRichIterable<V>
-
zipWithIndex
public <R extends Collection<Pair<V,Integer>>> R zipWithIndex(R target)
- Specified by:
zipWithIndex
in interfaceRichIterable<V>
-
chunk
public RichIterable<RichIterable<V>> chunk(int size)
- Specified by:
chunk
in interfaceRichIterable<V>
-
aggregateInPlaceBy
public <K,VV> MutableMap<K,VV> aggregateInPlaceBy(Function<? super V,? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV,? super V> mutatingAggregator)
- Specified by:
aggregateInPlaceBy
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
aggregateInPlaceBy
in interfaceRichIterable<V>
-
aggregateBy
public <K,VV> MutableMap<K,VV> aggregateBy(Function<? super V,? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV,? super V,? extends VV> nonMutatingAggregator)
- Specified by:
aggregateBy
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
aggregateBy
in interfaceRichIterable<V>
-
reject
public MutableBag<V> reject(Predicate<? super V> predicate)
- Specified by:
reject
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
reject
in interfacePrimitiveObjectMap<V>
- Specified by:
reject
in interfaceRichIterable<V>
-
reject
public <R extends Collection<V>> R reject(Predicate<? super V> predicate, R target)
- Specified by:
reject
in interfaceRichIterable<V>
-
rejectWith
public <P> MutableBag<V> rejectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
rejectWith
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
rejectWith
in interfacePrimitiveObjectMap<V>
- Specified by:
rejectWith
in interfaceRichIterable<V>
-
rejectWith
public <P,R extends Collection<V>> R rejectWith(Predicate2<? super V,? super P> predicate, P parameter, R targetCollection)
- Specified by:
rejectWith
in interfaceRichIterable<V>
-
clear
public void clear()
- Specified by:
clear
in interfaceMutablePrimitiveObjectMap<V>
-
collect
public <VV> MutableBag<VV> collect(Function<? super V,? extends VV> function)
- Specified by:
collect
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
collect
in interfacePrimitiveObjectMap<V>
- Specified by:
collect
in interfaceRichIterable<V>
-
collectBoolean
public MutableBooleanBag collectBoolean(BooleanFunction<? super V> booleanFunction)
- Specified by:
collectBoolean
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
collectBoolean
in interfacePrimitiveObjectMap<V>
- Specified by:
collectBoolean
in interfaceRichIterable<V>
-
collectBoolean
public <R extends MutableBooleanCollection> R collectBoolean(BooleanFunction<? super V> booleanFunction, R target)
- Specified by:
collectBoolean
in interfaceRichIterable<V>
-
collectByte
public MutableByteBag collectByte(ByteFunction<? super V> byteFunction)
- Specified by:
collectByte
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
collectByte
in interfacePrimitiveObjectMap<V>
- Specified by:
collectByte
in interfaceRichIterable<V>
-
collectByte
public <R extends MutableByteCollection> R collectByte(ByteFunction<? super V> byteFunction, R target)
- Specified by:
collectByte
in interfaceRichIterable<V>
-
collectChar
public MutableCharBag collectChar(CharFunction<? super V> charFunction)
- Specified by:
collectChar
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
collectChar
in interfacePrimitiveObjectMap<V>
- Specified by:
collectChar
in interfaceRichIterable<V>
-
collectChar
public <R extends MutableCharCollection> R collectChar(CharFunction<? super V> charFunction, R target)
- Specified by:
collectChar
in interfaceRichIterable<V>
-
collectDouble
public MutableDoubleBag collectDouble(DoubleFunction<? super V> doubleFunction)
- Specified by:
collectDouble
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
collectDouble
in interfacePrimitiveObjectMap<V>
- Specified by:
collectDouble
in interfaceRichIterable<V>
-
collectDouble
public <R extends MutableDoubleCollection> R collectDouble(DoubleFunction<? super V> doubleFunction, R target)
- Specified by:
collectDouble
in interfaceRichIterable<V>
-
collectFloat
public MutableFloatBag collectFloat(FloatFunction<? super V> floatFunction)
- Specified by:
collectFloat
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
collectFloat
in interfacePrimitiveObjectMap<V>
- Specified by:
collectFloat
in interfaceRichIterable<V>
-
collectFloat
public <R extends MutableFloatCollection> R collectFloat(FloatFunction<? super V> floatFunction, R target)
- Specified by:
collectFloat
in interfaceRichIterable<V>
-
collectInt
public MutableIntBag collectInt(IntFunction<? super V> intFunction)
- Specified by:
collectInt
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
collectInt
in interfacePrimitiveObjectMap<V>
- Specified by:
collectInt
in interfaceRichIterable<V>
-
collectInt
public <R extends MutableIntCollection> R collectInt(IntFunction<? super V> intFunction, R target)
- Specified by:
collectInt
in interfaceRichIterable<V>
-
collectLong
public MutableLongBag collectLong(LongFunction<? super V> longFunction)
- Specified by:
collectLong
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
collectLong
in interfacePrimitiveObjectMap<V>
- Specified by:
collectLong
in interfaceRichIterable<V>
-
collectLong
public <R extends MutableLongCollection> R collectLong(LongFunction<? super V> longFunction, R target)
- Specified by:
collectLong
in interfaceRichIterable<V>
-
collectShort
public MutableShortBag collectShort(ShortFunction<? super V> shortFunction)
- Specified by:
collectShort
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
collectShort
in interfacePrimitiveObjectMap<V>
- Specified by:
collectShort
in interfaceRichIterable<V>
-
collectShort
public <R extends MutableShortCollection> R collectShort(ShortFunction<? super V> shortFunction, R target)
- Specified by:
collectShort
in interfaceRichIterable<V>
-
collectWith
public <P,VV> MutableBag<VV> collectWith(Function2<? super V,? super P,? extends VV> function, P parameter)
- Specified by:
collectWith
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
collectWith
in interfacePrimitiveObjectMap<V>
- Specified by:
collectWith
in interfaceRichIterable<V>
-
collectWith
public <P,VV,R extends Collection<VV>> R collectWith(Function2<? super V,? super P,? extends VV> function, P parameter, R targetCollection)
- Specified by:
collectWith
in interfaceRichIterable<V>
-
collect
public <VV,R extends Collection<VV>> R collect(Function<? super V,? extends VV> function, R target)
- Specified by:
collect
in interfaceRichIterable<V>
-
collectIf
public <VV> MutableBag<VV> collectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function)
- Specified by:
collectIf
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
collectIf
in interfacePrimitiveObjectMap<V>
- Specified by:
collectIf
in interfaceRichIterable<V>
-
collectIf
public <VV,R extends Collection<VV>> R collectIf(Predicate<? super V> predicate, Function<? super V,? extends VV> function, R target)
- Specified by:
collectIf
in interfaceRichIterable<V>
-
flatCollect
public <VV> MutableBag<VV> flatCollect(Function<? super V,? extends Iterable<VV>> function)
- Specified by:
flatCollect
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
flatCollect
in interfacePrimitiveObjectMap<V>
- Specified by:
flatCollect
in interfaceRichIterable<V>
-
flatCollect
public <VV,R extends Collection<VV>> R flatCollect(Function<? super V,? extends Iterable<VV>> function, R target)
- Specified by:
flatCollect
in interfaceRichIterable<V>
-
flatCollectByte
public <R extends MutableByteCollection> R flatCollectByte(Function<? super V,? extends ByteIterable> function, R target)
- Specified by:
flatCollectByte
in interfaceRichIterable<V>
-
flatCollectChar
public <R extends MutableCharCollection> R flatCollectChar(Function<? super V,? extends CharIterable> function, R target)
- Specified by:
flatCollectChar
in interfaceRichIterable<V>
-
flatCollectInt
public <R extends MutableIntCollection> R flatCollectInt(Function<? super V,? extends IntIterable> function, R target)
- Specified by:
flatCollectInt
in interfaceRichIterable<V>
-
flatCollectShort
public <R extends MutableShortCollection> R flatCollectShort(Function<? super V,? extends ShortIterable> function, R target)
- Specified by:
flatCollectShort
in interfaceRichIterable<V>
-
flatCollectDouble
public <R extends MutableDoubleCollection> R flatCollectDouble(Function<? super V,? extends DoubleIterable> function, R target)
- Specified by:
flatCollectDouble
in interfaceRichIterable<V>
-
flatCollectFloat
public <R extends MutableFloatCollection> R flatCollectFloat(Function<? super V,? extends FloatIterable> function, R target)
- Specified by:
flatCollectFloat
in interfaceRichIterable<V>
-
flatCollectLong
public <R extends MutableLongCollection> R flatCollectLong(Function<? super V,? extends LongIterable> function, R target)
- Specified by:
flatCollectLong
in interfaceRichIterable<V>
-
flatCollectBoolean
public <R extends MutableBooleanCollection> R flatCollectBoolean(Function<? super V,? extends BooleanIterable> function, R target)
- Specified by:
flatCollectBoolean
in interfaceRichIterable<V>
-
detect
public V detect(Predicate<? super V> predicate)
- Specified by:
detect
in interfaceRichIterable<V>
-
detectWith
public <P> V detectWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
detectWith
in interfaceRichIterable<V>
-
detectOptional
public Optional<V> detectOptional(Predicate<? super V> predicate)
- Specified by:
detectOptional
in interfaceRichIterable<V>
-
detectWithOptional
public <P> Optional<V> detectWithOptional(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
detectWithOptional
in interfaceRichIterable<V>
-
detectIfNone
public V detectIfNone(Predicate<? super V> predicate, Function0<? extends V> function)
- Specified by:
detectIfNone
in interfaceRichIterable<V>
-
detectWithIfNone
public <P> V detectWithIfNone(Predicate2<? super V,? super P> predicate, P parameter, Function0<? extends V> function)
- Specified by:
detectWithIfNone
in interfaceRichIterable<V>
-
count
public int count(Predicate<? super V> predicate)
- Specified by:
count
in interfaceRichIterable<V>
-
countWith
public <P> int countWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
countWith
in interfaceRichIterable<V>
-
anySatisfy
public boolean anySatisfy(Predicate<? super V> predicate)
- Specified by:
anySatisfy
in interfaceRichIterable<V>
-
anySatisfyWith
public <P> boolean anySatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
anySatisfyWith
in interfaceRichIterable<V>
-
allSatisfy
public boolean allSatisfy(Predicate<? super V> predicate)
- Specified by:
allSatisfy
in interfaceRichIterable<V>
-
allSatisfyWith
public <P> boolean allSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
allSatisfyWith
in interfaceRichIterable<V>
-
noneSatisfy
public boolean noneSatisfy(Predicate<? super V> predicate)
- Specified by:
noneSatisfy
in interfaceRichIterable<V>
-
noneSatisfyWith
public <P> boolean noneSatisfyWith(Predicate2<? super V,? super P> predicate, P parameter)
- Specified by:
noneSatisfyWith
in interfaceRichIterable<V>
-
injectInto
public <IV> IV injectInto(IV injectedValue, Function2<? super IV,? super V,? extends IV> function)
- Specified by:
injectInto
in interfaceRichIterable<V>
-
injectInto
public int injectInto(int injectedValue, IntObjectToIntFunction<? super V> function)
- Specified by:
injectInto
in interfaceRichIterable<V>
-
injectInto
public long injectInto(long injectedValue, LongObjectToLongFunction<? super V> function)
- Specified by:
injectInto
in interfaceRichIterable<V>
-
injectInto
public float injectInto(float injectedValue, FloatObjectToFloatFunction<? super V> function)
- Specified by:
injectInto
in interfaceRichIterable<V>
-
injectInto
public double injectInto(double injectedValue, DoubleObjectToDoubleFunction<? super V> function)
- Specified by:
injectInto
in interfaceRichIterable<V>
-
into
public <R extends Collection<V>> R into(R target)
- Specified by:
into
in interfaceRichIterable<V>
-
toList
public MutableList<V> toList()
- Specified by:
toList
in interfaceRichIterable<V>
-
toSortedList
public MutableList<V> toSortedList()
- Specified by:
toSortedList
in interfaceRichIterable<V>
-
toSortedList
public MutableList<V> toSortedList(Comparator<? super V> comparator)
- Specified by:
toSortedList
in interfaceRichIterable<V>
-
toSortedListBy
public <VV extends Comparable<? super VV>> MutableList<V> toSortedListBy(Function<? super V,? extends VV> function)
- Specified by:
toSortedListBy
in interfaceRichIterable<V>
-
toSet
public MutableSet<V> toSet()
- Specified by:
toSet
in interfaceRichIterable<V>
-
toSortedSet
public MutableSortedSet<V> toSortedSet()
- Specified by:
toSortedSet
in interfaceRichIterable<V>
-
toSortedSet
public MutableSortedSet<V> toSortedSet(Comparator<? super V> comparator)
- Specified by:
toSortedSet
in interfaceRichIterable<V>
-
toSortedSetBy
public <VV extends Comparable<? super VV>> MutableSortedSet<V> toSortedSetBy(Function<? super V,? extends VV> function)
- Specified by:
toSortedSetBy
in interfaceRichIterable<V>
-
toBag
public MutableBag<V> toBag()
- Specified by:
toBag
in interfaceRichIterable<V>
-
toSortedBag
public MutableSortedBag<V> toSortedBag()
- Specified by:
toSortedBag
in interfaceRichIterable<V>
-
toSortedBag
public MutableSortedBag<V> toSortedBag(Comparator<? super V> comparator)
- Specified by:
toSortedBag
in interfaceRichIterable<V>
-
toSortedBagBy
public <VV extends Comparable<? super VV>> MutableSortedBag<V> toSortedBagBy(Function<? super V,? extends VV> function)
- Specified by:
toSortedBagBy
in interfaceRichIterable<V>
-
toMap
public <NK,NV> MutableMap<NK,NV> toMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
- Specified by:
toMap
in interfaceRichIterable<V>
-
toMap
public <NK,NV,R extends Map<NK,NV>> R toMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction, R target)
- Specified by:
toMap
in interfaceRichIterable<V>
-
toSortedMap
public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
- Specified by:
toSortedMap
in interfaceRichIterable<V>
-
toSortedMap
public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Comparator<? super NK> comparator, Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
- Specified by:
toSortedMap
in interfaceRichIterable<V>
-
toSortedMapBy
public <KK extends Comparable<? super KK>,NK,NV> MutableSortedMap<NK,NV> toSortedMapBy(Function<? super NK,KK> sortBy, Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
- Specified by:
toSortedMapBy
in interfaceRichIterable<V>
-
toBiMap
public <NK,NV> MutableBiMap<NK,NV> toBiMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
- Specified by:
toBiMap
in interfaceRichIterable<V>
-
toImmutableList
public ImmutableList<V> toImmutableList()
- Specified by:
toImmutableList
in interfaceRichIterable<V>
-
toImmutableSet
public ImmutableSet<V> toImmutableSet()
- Specified by:
toImmutableSet
in interfaceRichIterable<V>
-
toImmutableBag
public ImmutableBag<V> toImmutableBag()
- Specified by:
toImmutableBag
in interfaceRichIterable<V>
-
toImmutableSortedList
public ImmutableList<V> toImmutableSortedList()
- Specified by:
toImmutableSortedList
in interfaceRichIterable<V>
-
toImmutableSortedList
public ImmutableList<V> toImmutableSortedList(Comparator<? super V> comparator)
- Specified by:
toImmutableSortedList
in interfaceRichIterable<V>
-
toImmutableSortedListBy
public <VV extends Comparable<? super VV>> ImmutableList<V> toImmutableSortedListBy(Function<? super V,? extends VV> function)
- Specified by:
toImmutableSortedListBy
in interfaceRichIterable<V>
-
toImmutableSortedSet
public ImmutableSortedSet<V> toImmutableSortedSet()
- Specified by:
toImmutableSortedSet
in interfaceRichIterable<V>
-
toImmutableSortedSet
public ImmutableSortedSet<V> toImmutableSortedSet(Comparator<? super V> comparator)
- Specified by:
toImmutableSortedSet
in interfaceRichIterable<V>
-
toImmutableSortedSetBy
public <VV extends Comparable<? super VV>> ImmutableSortedSet<V> toImmutableSortedSetBy(Function<? super V,? extends VV> function)
- Specified by:
toImmutableSortedSetBy
in interfaceRichIterable<V>
-
toImmutableSortedBag
public ImmutableSortedBag<V> toImmutableSortedBag()
- Specified by:
toImmutableSortedBag
in interfaceRichIterable<V>
-
toImmutableSortedBag
public ImmutableSortedBag<V> toImmutableSortedBag(Comparator<? super V> comparator)
- Specified by:
toImmutableSortedBag
in interfaceRichIterable<V>
-
toImmutableSortedBagBy
public <VV extends Comparable<? super VV>> ImmutableSortedBag<V> toImmutableSortedBagBy(Function<? super V,? extends VV> function)
- Specified by:
toImmutableSortedBagBy
in interfaceRichIterable<V>
-
asLazy
public LazyIterable<V> asLazy()
- Specified by:
asLazy
in interfaceRichIterable<V>
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceRichIterable<V>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interfaceRichIterable<V>
-
min
public V min(Comparator<? super V> comparator)
- Specified by:
min
in interfaceRichIterable<V>
-
max
public V max(Comparator<? super V> comparator)
- Specified by:
max
in interfaceRichIterable<V>
-
min
public V min()
- Specified by:
min
in interfaceRichIterable<V>
-
max
public V max()
- Specified by:
max
in interfaceRichIterable<V>
-
maxBy
public <VV extends Comparable<? super VV>> V maxBy(Function<? super V,? extends VV> function)
- Specified by:
maxBy
in interfaceRichIterable<V>
-
minBy
public <VV extends Comparable<? super VV>> V minBy(Function<? super V,? extends VV> function)
- Specified by:
minBy
in interfaceRichIterable<V>
-
sumOfInt
public long sumOfInt(IntFunction<? super V> function)
- Specified by:
sumOfInt
in interfaceRichIterable<V>
-
sumOfFloat
public double sumOfFloat(FloatFunction<? super V> function)
- Specified by:
sumOfFloat
in interfaceRichIterable<V>
-
sumOfLong
public long sumOfLong(LongFunction<? super V> function)
- Specified by:
sumOfLong
in interfaceRichIterable<V>
-
sumOfDouble
public double sumOfDouble(DoubleFunction<? super V> function)
- Specified by:
sumOfDouble
in interfaceRichIterable<V>
-
sumByInt
public <V1> MutableObjectLongMap<V1> sumByInt(Function<? super V,? extends V1> groupBy, IntFunction<? super V> function)
- Specified by:
sumByInt
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
sumByInt
in interfaceRichIterable<V>
-
sumByFloat
public <V1> MutableObjectDoubleMap<V1> sumByFloat(Function<? super V,? extends V1> groupBy, FloatFunction<? super V> function)
- Specified by:
sumByFloat
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
sumByFloat
in interfaceRichIterable<V>
-
sumByLong
public <V1> MutableObjectLongMap<V1> sumByLong(Function<? super V,? extends V1> groupBy, LongFunction<? super V> function)
- Specified by:
sumByLong
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
sumByLong
in interfaceRichIterable<V>
-
sumByDouble
public <V1> MutableObjectDoubleMap<V1> sumByDouble(Function<? super V,? extends V1> groupBy, DoubleFunction<? super V> function)
- Specified by:
sumByDouble
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
sumByDouble
in interfaceRichIterable<V>
-
keySet
public MutableDoubleSet keySet()
- Specified by:
keySet
in interfaceDoubleObjectMap<V>
-
values
public Collection<V> values()
- Specified by:
values
in interfacePrimitiveObjectMap<V>
-
keysView
public LazyDoubleIterable keysView()
- Specified by:
keysView
in interfaceDoubleObjectMap<V>
-
keyValuesView
public RichIterable<DoubleObjectPair<V>> keyValuesView()
- Specified by:
keyValuesView
in interfaceDoubleObjectMap<V>
-
flipUniqueValues
public MutableObjectDoubleMap<V> flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceDoubleObjectMap<V>
- Specified by:
flipUniqueValues
in interfaceMutableDoubleObjectMap<V>
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacePrimitiveObjectMap<V>
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacePrimitiveObjectMap<V>
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfacePrimitiveObjectMap<V>
- Specified by:
toString
in interfaceRichIterable<V>
- Overrides:
toString
in classObject
-
makeString
public String makeString()
- Specified by:
makeString
in interfaceRichIterable<V>
-
makeString
public String makeString(String separator)
- Specified by:
makeString
in interfaceRichIterable<V>
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeString
in interfaceRichIterable<V>
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendString
in interfaceRichIterable<V>
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendString
in interfaceRichIterable<V>
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendString
in interfaceRichIterable<V>
-
groupBy
public <VV> MutableBagMultimap<VV,V> groupBy(Function<? super V,? extends VV> function)
- Specified by:
groupBy
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
groupBy
in interfacePrimitiveObjectMap<V>
- Specified by:
groupBy
in interfaceRichIterable<V>
-
groupBy
public <VV,R extends MutableMultimap<VV,V>> R groupBy(Function<? super V,? extends VV> function, R target)
- Specified by:
groupBy
in interfaceRichIterable<V>
-
groupByEach
public <VV> MutableBagMultimap<VV,V> groupByEach(Function<? super V,? extends Iterable<VV>> function)
- Specified by:
groupByEach
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
groupByEach
in interfacePrimitiveObjectMap<V>
- Specified by:
groupByEach
in interfaceRichIterable<V>
-
groupByEach
public <VV,R extends MutableMultimap<VV,V>> R groupByEach(Function<? super V,? extends Iterable<VV>> function, R target)
- Specified by:
groupByEach
in interfaceRichIterable<V>
-
groupByUniqueKey
public <VV> MutableMap<VV,V> groupByUniqueKey(Function<? super V,? extends VV> function)
- Specified by:
groupByUniqueKey
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
groupByUniqueKey
in interfacePrimitiveObjectMap<V>
- Specified by:
groupByUniqueKey
in interfaceRichIterable<V>
-
groupByUniqueKey
public <VV,R extends MutableMapIterable<VV,V>> R groupByUniqueKey(Function<? super V,? extends VV> function, R target)
- Specified by:
groupByUniqueKey
in interfaceRichIterable<V>
-
zip
@Deprecated public <S> MutableBag<Pair<V,S>> zip(Iterable<S> that)
Deprecated.in 7.0. UseOrderedIterable.zip(Iterable)
instead.- Specified by:
zip
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
zip
in interfacePrimitiveObjectMap<V>
- Specified by:
zip
in interfaceRichIterable<V>
-
zip
public <S,R extends Collection<Pair<V,S>>> R zip(Iterable<S> that, R target)
- Specified by:
zip
in interfaceRichIterable<V>
-
withKeyValue
public MutableDoubleObjectMap<V> withKeyValue(double key, V value)
- Specified by:
withKeyValue
in interfaceMutableDoubleObjectMap<V>
-
withoutKey
public MutableDoubleObjectMap<V> withoutKey(double key)
- Specified by:
withoutKey
in interfaceMutableDoubleObjectMap<V>
-
withoutAllKeys
public MutableDoubleObjectMap<V> withoutAllKeys(DoubleIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableDoubleObjectMap<V>
-
asUnmodifiable
public MutableDoubleObjectMap<V> asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableDoubleObjectMap<V>
-
asSynchronized
public MutableDoubleObjectMap<V> asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableDoubleObjectMap<V>
-
toImmutable
public ImmutableDoubleObjectMap<V> toImmutable()
- Specified by:
toImmutable
in interfaceDoubleObjectMap<V>
-
forEach
public void forEach(Procedure<? super V> procedure)
- Specified by:
forEach
in interfaceInternalIterable<V>
- Specified by:
forEach
in interfaceRichIterable<V>
-
each
public void each(Procedure<? super V> procedure)
- Specified by:
each
in interfaceRichIterable<V>
-
forEachWithIndex
public void forEachWithIndex(ObjectIntProcedure<? super V> objectIntProcedure)
- Specified by:
forEachWithIndex
in interfaceInternalIterable<V>
-
forEachWith
public <P> void forEachWith(Procedure2<? super V,? super P> procedure, P parameter)
- Specified by:
forEachWith
in interfaceInternalIterable<V>
-
-