Class UnmodifiableIntObjectMap<V>
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableIntObjectMap<V>
-
- All Implemented Interfaces:
Serializable
,Iterable<V>
,InternalIterable<V>
,IntObjectMap<V>
,MutableIntObjectMap<V>
,MutablePrimitiveObjectMap<V>
,PrimitiveObjectMap<V>
,RichIterable<V>
public class UnmodifiableIntObjectMap<V> extends Object implements MutableIntObjectMap<V>, Serializable
This file was automatically generated from template file unmodifiablePrimitiveObjectMap.stg.- Since:
- 3.2.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableIntObjectMap(MutableIntObjectMap<V> map)
-
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()
MutableIntObjectMap<V>
asSynchronized()
MutableIntObjectMap<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
containsKey(int 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)
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)
MutableObjectIntMap<V>
flipUniqueValues()
void
forEach(Procedure<? super V> procedure)
void
forEachKey(IntProcedure procedure)
void
forEachKeyValue(IntObjectProcedure<? 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(int key)
V
getFirst()
V
getIfAbsent(int key, Function0<? extends V> ifAbsent)
V
getIfAbsentPut(int key, Function0<? extends V> function)
V
getIfAbsentPut(int key, V value)
<P> V
getIfAbsentPutWith(int key, Function<? super P,? extends V> function, P parameter)
V
getIfAbsentPutWithKey(int key, IntToObjectFunction<? 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)
<V1> MutableMap<V1,V>
groupByUniqueKey(Function<? super V,? extends V1> function)
<V1,R extends MutableMapIterable<V1,V>>
RgroupByUniqueKey(Function<? super V,? extends V1> 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()
MutableIntSet
keySet()
LazyIntIterable
keysView()
RichIterable<IntObjectPair<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(int key, V value)
void
putAll(IntObjectMap<? extends V> map)
V
putPair(IntObjectPair<V> keyValuePair)
MutableBag<V>
reject(Predicate<? super V> predicate)
<R extends Collection<V>>
Rreject(Predicate<? super V> predicate, R target)
MutableIntObjectMap<V>
reject(IntObjectPredicate<? 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(int key)
boolean
removeIf(IntObjectPredicate<? super V> predicate)
V
removeKey(int key)
MutableBag<V>
select(Predicate<? super V> predicate)
<R extends Collection<V>>
Rselect(Predicate<? super V> predicate, R target)
MutableIntObjectMap<V>
select(IntObjectPredicate<? 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)
MutableIntObjectMap<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)
ImmutableIntObjectMap<V>
toImmutable()
MutableList<V>
toList()
<NK,NV>
MutableMap<NK,NV>toMap(Function<? super V,? extends NK> keyFunction, Function<? super V,? extends NV> valueFunction)
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(int key, Function0<? extends V> factory, Function<? super V,? extends V> function)
<P> V
updateValueWith(int key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)
Collection<V>
values()
MutableIntObjectMap<V>
withKeyValue(int key, V value)
MutableIntObjectMap<V>
withoutAllKeys(IntIterable keys)
MutableIntObjectMap<V>
withoutKey(int 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.InternalIterable
forEach
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.IntObjectMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntObjectMap
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, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, countBy, countBy, countByEach, countByEach, countByWith, countByWith, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, 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, toMap
-
-
-
-
Constructor Detail
-
UnmodifiableIntObjectMap
public UnmodifiableIntObjectMap(MutableIntObjectMap<V> map)
-
-
Method Detail
-
put
public V put(int key, V value)
- Specified by:
put
in interfaceMutableIntObjectMap<V>
-
putPair
public V putPair(IntObjectPair<V> keyValuePair)
- Specified by:
putPair
in interfaceMutableIntObjectMap<V>
-
putAll
public void putAll(IntObjectMap<? extends V> map)
- Specified by:
putAll
in interfaceMutableIntObjectMap<V>
-
removeKey
public V removeKey(int key)
- Specified by:
removeKey
in interfaceMutableIntObjectMap<V>
-
remove
public V remove(int key)
- Specified by:
remove
in interfaceMutableIntObjectMap<V>
-
getIfAbsentPut
public V getIfAbsentPut(int key, Function0<? extends V> function)
- Specified by:
getIfAbsentPut
in interfaceMutableIntObjectMap<V>
-
getIfAbsentPut
public V getIfAbsentPut(int key, V value)
- Specified by:
getIfAbsentPut
in interfaceMutableIntObjectMap<V>
-
getIfAbsentPutWithKey
public V getIfAbsentPutWithKey(int key, IntToObjectFunction<? extends V> function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableIntObjectMap<V>
-
getIfAbsentPutWith
public <P> V getIfAbsentPutWith(int key, Function<? super P,? extends V> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableIntObjectMap<V>
-
updateValue
public V updateValue(int key, Function0<? extends V> factory, Function<? super V,? extends V> function)
- Specified by:
updateValue
in interfaceMutableIntObjectMap<V>
-
updateValueWith
public <P> V updateValueWith(int key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)
- Specified by:
updateValueWith
in interfaceMutableIntObjectMap<V>
-
removeIf
public boolean removeIf(IntObjectPredicate<? super V> predicate)
- Specified by:
removeIf
in interfaceMutableIntObjectMap<V>
-
get
public V get(int key)
- Specified by:
get
in interfaceIntObjectMap<V>
-
getIfAbsent
public V getIfAbsent(int key, Function0<? extends V> ifAbsent)
- Specified by:
getIfAbsent
in interfaceIntObjectMap<V>
-
containsKey
public boolean containsKey(int key)
- Specified by:
containsKey
in interfaceIntObjectMap<V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfacePrimitiveObjectMap<V>
-
tap
public MutableIntObjectMap<V> tap(Procedure<? super V> procedure)
- Specified by:
tap
in interfaceIntObjectMap<V>
- Specified by:
tap
in interfaceMutableIntObjectMap<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(IntProcedure procedure)
- Specified by:
forEachKey
in interfaceIntObjectMap<V>
-
forEachKeyValue
public void forEachKeyValue(IntObjectProcedure<? super V> procedure)
- Specified by:
forEachKeyValue
in interfaceIntObjectMap<V>
-
select
public MutableIntObjectMap<V> select(IntObjectPredicate<? super V> predicate)
- Specified by:
select
in interfaceIntObjectMap<V>
- Specified by:
select
in interfaceMutableIntObjectMap<V>
-
reject
public MutableIntObjectMap<V> reject(IntObjectPredicate<? super V> predicate)
- Specified by:
reject
in interfaceIntObjectMap<V>
- Specified by:
reject
in interfaceMutableIntObjectMap<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>
-
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>
-
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>
-
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>
-
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 MutableIntSet keySet()
- Specified by:
keySet
in interfaceIntObjectMap<V>
-
values
public Collection<V> values()
- Specified by:
values
in interfacePrimitiveObjectMap<V>
-
keysView
public LazyIntIterable keysView()
- Specified by:
keysView
in interfaceIntObjectMap<V>
-
keyValuesView
public RichIterable<IntObjectPair<V>> keyValuesView()
- Specified by:
keyValuesView
in interfaceIntObjectMap<V>
-
flipUniqueValues
public MutableObjectIntMap<V> flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceIntObjectMap<V>
- Specified by:
flipUniqueValues
in interfaceMutableIntObjectMap<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 <V1> MutableMap<V1,V> groupByUniqueKey(Function<? super V,? extends V1> function)
- Specified by:
groupByUniqueKey
in interfaceMutablePrimitiveObjectMap<V>
- Specified by:
groupByUniqueKey
in interfacePrimitiveObjectMap<V>
- Specified by:
groupByUniqueKey
in interfaceRichIterable<V>
-
groupByUniqueKey
public <V1,R extends MutableMapIterable<V1,V>> R groupByUniqueKey(Function<? super V,? extends V1> 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 MutableIntObjectMap<V> withKeyValue(int key, V value)
- Specified by:
withKeyValue
in interfaceMutableIntObjectMap<V>
-
withoutKey
public MutableIntObjectMap<V> withoutKey(int key)
- Specified by:
withoutKey
in interfaceMutableIntObjectMap<V>
-
withoutAllKeys
public MutableIntObjectMap<V> withoutAllKeys(IntIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableIntObjectMap<V>
-
asUnmodifiable
public MutableIntObjectMap<V> asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableIntObjectMap<V>
-
asSynchronized
public MutableIntObjectMap<V> asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableIntObjectMap<V>
-
toImmutable
public ImmutableIntObjectMap<V> toImmutable()
- Specified by:
toImmutable
in interfaceIntObjectMap<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>
-
-