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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableObjectIntMap(MutableObjectIntMap<K> map)
-
Method Summary
-
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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableObjectIntMap
tap, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ObjectIntMap
injectIntoKeyValue
-
-
-
-
Constructor Detail
-
UnmodifiableObjectIntMap
public UnmodifiableObjectIntMap(MutableObjectIntMap<K> map)
-
-
Method Detail
-
getAndPut
public int getAndPut(K key, int defaultValue, int putValue)
- Specified by:
getAndPutin interfaceMutableObjectIntMap<K>
-
clear
public void clear()
- Specified by:
clearin interfaceMutableObjectIntMap<K>
-
put
public void put(K key, int value)
- Specified by:
putin interfaceMutableObjectIntMap<K>
-
putPair
public void putPair(ObjectIntPair<K> keyValuePair)
- Specified by:
putPairin interfaceMutableObjectIntMap<K>
-
putAll
public void putAll(ObjectIntMap<? extends K> map)
- Specified by:
putAllin interfaceMutableObjectIntMap<K>
-
updateValues
public void updateValues(ObjectIntToIntFunction<? super K> function)
- Specified by:
updateValuesin interfaceMutableObjectIntMap<K>
-
removeKey
public void removeKey(K key)
- Specified by:
removeKeyin interfaceMutableObjectIntMap<K>
-
remove
public void remove(Object key)
- Specified by:
removein interfaceMutableObjectIntMap<K>
-
removeKeyIfAbsent
public int removeKeyIfAbsent(K key, int value)
- Specified by:
removeKeyIfAbsentin interfaceMutableObjectIntMap<K>
-
getIfAbsentPut
public int getIfAbsentPut(K key, int value)
- Specified by:
getIfAbsentPutin interfaceMutableObjectIntMap<K>
-
getIfAbsentPut
public int getIfAbsentPut(K key, IntFunction0 function)
- Specified by:
getIfAbsentPutin interfaceMutableObjectIntMap<K>
-
getIfAbsentPutWithKey
public int getIfAbsentPutWithKey(K key, IntFunction<? super K> function)
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableObjectIntMap<K>
-
getIfAbsentPutWith
public <P> int getIfAbsentPutWith(K key, IntFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWithin interfaceMutableObjectIntMap<K>
-
updateValue
public int updateValue(K key, int initialValueIfAbsent, IntToIntFunction function)
- Specified by:
updateValuein interfaceMutableObjectIntMap<K>
-
addToValue
public int addToValue(K key, int toBeAdded)
- Specified by:
addToValuein interfaceMutableObjectIntMap<K>
-
get
public int get(Object key)
- Specified by:
getin interfaceObjectIntMap<K>
-
getOrThrow
public int getOrThrow(Object key)
- Specified by:
getOrThrowin interfaceObjectIntMap<K>
-
getIfAbsent
public int getIfAbsent(Object key, int ifAbsent)
- Specified by:
getIfAbsentin interfaceObjectIntMap<K>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceObjectIntMap<K>
-
containsValue
public boolean containsValue(int value)
- Specified by:
containsValuein interfaceObjectIntMap<K>
-
forEachValue
public void forEachValue(IntProcedure procedure)
- Specified by:
forEachValuein interfaceObjectIntMap<K>
-
forEachKey
public void forEachKey(Procedure<? super K> procedure)
- Specified by:
forEachKeyin interfaceObjectIntMap<K>
-
forEachKeyValue
public void forEachKeyValue(ObjectIntProcedure<? super K> procedure)
- Specified by:
forEachKeyValuein interfaceObjectIntMap<K>
-
select
public MutableObjectIntMap<K> select(ObjectIntPredicate<? super K> predicate)
- Specified by:
selectin interfaceMutableObjectIntMap<K>- Specified by:
selectin interfaceObjectIntMap<K>
-
reject
public MutableObjectIntMap<K> reject(ObjectIntPredicate<? super K> predicate)
- Specified by:
rejectin interfaceMutableObjectIntMap<K>- Specified by:
rejectin interfaceObjectIntMap<K>
-
intIterator
public MutableIntIterator intIterator()
- Specified by:
intIteratorin interfaceIntIterable- Specified by:
intIteratorin interfaceMutableObjectIntMap<K>
-
each
public void each(IntProcedure procedure)
- Specified by:
eachin interfaceIntIterable- Since:
- 7.0.
-
count
public int count(IntPredicate predicate)
- Specified by:
countin interfaceIntIterable
-
anySatisfy
public boolean anySatisfy(IntPredicate predicate)
- Specified by:
anySatisfyin interfaceIntIterable
-
allSatisfy
public boolean allSatisfy(IntPredicate predicate)
- Specified by:
allSatisfyin interfaceIntIterable
-
noneSatisfy
public boolean noneSatisfy(IntPredicate predicate)
- Specified by:
noneSatisfyin interfaceIntIterable
-
select
public MutableIntCollection select(IntPredicate predicate)
- Specified by:
selectin interfaceIntIterable- Specified by:
selectin interfaceMutableObjectIntMap<K>
-
reject
public MutableIntCollection reject(IntPredicate predicate)
- Specified by:
rejectin interfaceIntIterable- Specified by:
rejectin interfaceMutableObjectIntMap<K>
-
detectIfNone
public int detectIfNone(IntPredicate predicate, int ifNone)
- Specified by:
detectIfNonein interfaceIntIterable
-
collect
public <V1> MutableCollection<V1> collect(IntToObjectFunction<? extends V1> function)
- 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
public MutableIntList 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
public boolean containsAll(IntIterable source)
- Specified by:
containsAllin interfaceIntIterable
-
toList
public MutableIntList toList()
- Specified by:
toListin interfaceIntIterable
-
toSet
public MutableIntSet toSet()
- Specified by:
toSetin interfaceIntIterable
-
toBag
public MutableIntBag toBag()
- Specified by:
toBagin interfaceIntIterable
-
asLazy
public LazyIntIterable asLazy()
- Specified by:
asLazyin interfaceIntIterable
-
withKeyValue
public MutableObjectIntMap<K> withKeyValue(K key, int value)
- Specified by:
withKeyValuein interfaceMutableObjectIntMap<K>
-
withoutKey
public MutableObjectIntMap<K> withoutKey(K key)
- Specified by:
withoutKeyin interfaceMutableObjectIntMap<K>
-
withoutAllKeys
public MutableObjectIntMap<K> withoutAllKeys(Iterable<? extends K> keys)
- Specified by:
withoutAllKeysin interfaceMutableObjectIntMap<K>
-
asUnmodifiable
public MutableObjectIntMap<K> asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableObjectIntMap<K>
-
asSynchronized
public MutableObjectIntMap<K> asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableObjectIntMap<K>
-
toImmutable
public ImmutableObjectIntMap<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
public Set<K> keySet()
- Specified by:
keySetin interfaceObjectIntMap<K>
-
values
public MutableIntCollection values()
- Specified by:
valuesin interfaceObjectIntMap<K>
-
keysView
public LazyIterable<K> keysView()
- Specified by:
keysViewin interfaceObjectIntMap<K>
-
keyValuesView
public RichIterable<ObjectIntPair<K>> keyValuesView()
- Specified by:
keyValuesViewin interfaceObjectIntMap<K>
-
flipUniqueValues
public MutableIntObjectMap<K> flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceMutableObjectIntMap<K>- Specified by:
flipUniqueValuesin interfaceObjectIntMap<K>
-
toString
public String toString()
- Specified by:
toStringin interfaceObjectIntMap<K>- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectIntToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceIntIterable
-
chunk
public RichIterable<IntIterable> chunk(int size)
- Specified by:
chunkin interfaceIntIterable
-
-