Class UnmodifiableObjectIntMap<K>
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableObjectIntMap<K>
- All Implemented Interfaces:
Serializable,IntIterable,MutableObjectIntMap<K>,ObjectIntMap<K>,PrimitiveIterable
public class UnmodifiableObjectIntMap<K>
extends Object
implements MutableObjectIntMap<K>, Serializable
This file was automatically generated from template file unmodifiableObjectPrimitiveMap.stg.
- Since:
- 3.2
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintaddToValue(K key, int toBeAdded) booleanallSatisfy(IntPredicate predicate) booleananySatisfy(IntPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()chunk(int size) voidclear()<V1> MutableCollection<V1>collect(IntToObjectFunction<? extends V1> function) booleancontains(int value) booleancontainsAll(int... source) booleancontainsAll(IntIterable source) booleancontainsKey(Object key) booleancontainsValue(int value) intcount(IntPredicate predicate) intdetectIfNone(IntPredicate predicate, int ifNone) voideach(IntProcedure procedure) booleanvoidforEachKey(Procedure<? super K> procedure) voidforEachKeyValue(ObjectIntProcedure<? super K> procedure) voidforEachValue(IntProcedure procedure) intintintgetIfAbsent(Object key, int ifAbsent) intgetIfAbsentPut(K key, int value) intgetIfAbsentPut(K key, IntFunction0 function) <P> intgetIfAbsentPutWith(K key, IntFunction<? super P> function, P parameter) intgetIfAbsentPutWithKey(K key, IntFunction<? super K> function) intgetOrThrow(Object key) inthashCode()<T> TinjectInto(T injectedValue, ObjectIntToObjectFunction<? super T, ? extends T> function) booleanisEmpty()keySet()keysView()makeString(String separator) makeString(String start, String separator, String end) intmax()intmaxIfEmpty(int defaultValue) doublemedian()intmin()intminIfEmpty(int defaultValue) booleannoneSatisfy(IntPredicate predicate) booleannotEmpty()voidvoidputAll(ObjectIntMap<? extends K> map) voidputPair(ObjectIntPair<K> keyValuePair) reject(IntPredicate predicate) reject(ObjectIntPredicate<? super K> predicate) voidvoidintremoveKeyIfAbsent(K key, int value) select(IntPredicate predicate) select(ObjectIntPredicate<? super K> predicate) intsize()longsum()int[]toArray()int[]toArray(int[] target) toBag()toList()toSet()int[]toString()intupdateValue(K key, int initialValueIfAbsent, IntToIntFunction function) voidupdateValues(ObjectIntToIntFunction<? super K> function) values()withKeyValue(K key, int value) withoutAllKeys(Iterable<? extends K> keys) withoutKey(K key) Methods inherited from interface org.eclipse.collections.api.IntIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap
tap, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.ObjectIntMap
allSatisfyKeyValue, injectIntoKeyValue
-
Constructor Details
-
UnmodifiableObjectIntMap
-
-
Method Details
-
getAndPut
- Specified by:
getAndPutin interfaceMutableObjectIntMap<K>
-
clear
public void clear()- Specified by:
clearin interfaceMutableObjectIntMap<K>
-
put
- Specified by:
putin interfaceMutableObjectIntMap<K>
-
putPair
- Specified by:
putPairin interfaceMutableObjectIntMap<K>
-
putAll
- Specified by:
putAllin interfaceMutableObjectIntMap<K>
-
updateValues
- Specified by:
updateValuesin interfaceMutableObjectIntMap<K>
-
removeKey
- Specified by:
removeKeyin interfaceMutableObjectIntMap<K>
-
remove
- Specified by:
removein interfaceMutableObjectIntMap<K>
-
removeKeyIfAbsent
- Specified by:
removeKeyIfAbsentin interfaceMutableObjectIntMap<K>
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableObjectIntMap<K>
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableObjectIntMap<K>
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableObjectIntMap<K>
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableObjectIntMap<K>
-
updateValue
- Specified by:
updateValuein interfaceMutableObjectIntMap<K>
-
addToValue
- Specified by:
addToValuein interfaceMutableObjectIntMap<K>
-
get
- Specified by:
getin interfaceObjectIntMap<K>
-
getOrThrow
- Specified by:
getOrThrowin interfaceObjectIntMap<K>
-
getIfAbsent
- Specified by:
getIfAbsentin interfaceObjectIntMap<K>
-
containsKey
- Specified by:
containsKeyin interfaceObjectIntMap<K>
-
containsValue
public boolean containsValue(int value) - Specified by:
containsValuein interfaceObjectIntMap<K>
-
forEachValue
- Specified by:
forEachValuein interfaceObjectIntMap<K>
-
forEachKey
- Specified by:
forEachKeyin interfaceObjectIntMap<K>
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceObjectIntMap<K>
-
select
- Specified by:
selectin interfaceMutableObjectIntMap<K>- Specified by:
selectin interfaceObjectIntMap<K>
-
reject
- Specified by:
rejectin interfaceMutableObjectIntMap<K>- Specified by:
rejectin interfaceObjectIntMap<K>
-
intIterator
- Specified by:
intIteratorin interfaceIntIterable- Specified by:
intIteratorin interfaceMutableObjectIntMap<K>
-
each
- Specified by:
eachin interfaceIntIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceIntIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceIntIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceIntIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceIntIterable
-
select
- Specified by:
selectin interfaceIntIterable- Specified by:
selectin interfaceMutableObjectIntMap<K>
-
reject
- Specified by:
rejectin interfaceIntIterable- Specified by:
rejectin interfaceMutableObjectIntMap<K>
-
detectIfNone
- Specified by:
detectIfNonein interfaceIntIterable
-
collect
- Specified by:
collectin interfaceIntIterable- Specified by:
collectin interfaceMutableObjectIntMap<K>
-
sum
public long sum()- Specified by:
sumin interfaceIntIterable
-
max
public int max()- Specified by:
maxin interfaceIntIterable
-
maxIfEmpty
public int maxIfEmpty(int defaultValue) - Specified by:
maxIfEmptyin interfaceIntIterable
-
min
public int min()- Specified by:
minin interfaceIntIterable
-
minIfEmpty
public int minIfEmpty(int defaultValue) - Specified by:
minIfEmptyin interfaceIntIterable
-
average
public double average()- Specified by:
averagein interfaceIntIterable
-
median
public double median()- Specified by:
medianin interfaceIntIterable
-
toSortedArray
public int[] toSortedArray()- Specified by:
toSortedArrayin interfaceIntIterable
-
toSortedList
- Specified by:
toSortedListin interfaceIntIterable
-
toArray
public int[] toArray()- Specified by:
toArrayin interfaceIntIterable
-
toArray
public int[] toArray(int[] target) - Specified by:
toArrayin interfaceIntIterable
-
contains
public boolean contains(int value) - Specified by:
containsin interfaceIntIterable
-
containsAll
public boolean containsAll(int... source) - Specified by:
containsAllin interfaceIntIterable
-
containsAll
- Specified by:
containsAllin interfaceIntIterable
-
toList
- Specified by:
toListin interfaceIntIterable
-
toSet
- Specified by:
toSetin interfaceIntIterable
-
toBag
- Specified by:
toBagin interfaceIntIterable
-
asLazy
- Specified by:
asLazyin interfaceIntIterable
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableObjectIntMap<K>
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableObjectIntMap<K>
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableObjectIntMap<K>
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableObjectIntMap<K>
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableObjectIntMap<K>
-
toImmutable
- Specified by:
toImmutablein interfaceObjectIntMap<K>
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
keySet
- Specified by:
keySetin interfaceObjectIntMap<K>
-
values
- Specified by:
valuesin interfaceObjectIntMap<K>
-
keysView
- Specified by:
keysViewin interfaceObjectIntMap<K>
-
keyValuesView
- Specified by:
keyValuesViewin interfaceObjectIntMap<K>
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceMutableObjectIntMap<K>- Specified by:
flipUniqueValuesin interfaceObjectIntMap<K>
-
equals
-
hashCode
public int hashCode() -
toString
- Specified by:
toStringin interfaceObjectIntMap<K>- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
injectInto
- Specified by:
injectIntoin interfaceIntIterable
-
chunk
- Specified by:
chunkin interfaceIntIterable
-