Class UnmodifiableIntIntMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableIntIntMap
-
- All Implemented Interfaces:
Serializable
,IntIterable
,IntIntMap
,IntValuesMap
,MutableIntIntMap
,MutableIntValuesMap
,PrimitiveIterable
public class UnmodifiableIntIntMap extends Object implements MutableIntIntMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableIntIntMap(MutableIntIntMap map)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.IntIntMap
injectIntoKeyValue
-
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.IntValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntIntMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
UnmodifiableIntIntMap
public UnmodifiableIntIntMap(MutableIntIntMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableIntValuesMap
-
put
public void put(int key, int value)
- Specified by:
put
in interfaceMutableIntIntMap
-
putPair
public void putPair(IntIntPair keyValuePair)
- Specified by:
putPair
in interfaceMutableIntIntMap
-
putAll
public void putAll(IntIntMap map)
- Specified by:
putAll
in interfaceMutableIntIntMap
-
updateValues
public void updateValues(IntIntToIntFunction function)
- Specified by:
updateValues
in interfaceMutableIntIntMap
-
removeKey
public void removeKey(int key)
- Specified by:
removeKey
in interfaceMutableIntIntMap
-
remove
public void remove(int key)
- Specified by:
remove
in interfaceMutableIntIntMap
-
removeKeyIfAbsent
public int removeKeyIfAbsent(int key, int value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableIntIntMap
-
getIfAbsentPut
public int getIfAbsentPut(int key, int value)
- Specified by:
getIfAbsentPut
in interfaceMutableIntIntMap
-
getAndPut
public int getAndPut(int key, int putValue, int defaultValue)
- Specified by:
getAndPut
in interfaceMutableIntIntMap
-
getIfAbsentPut
public int getIfAbsentPut(int key, IntFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableIntIntMap
-
getIfAbsentPutWithKey
public int getIfAbsentPutWithKey(int key, IntToIntFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableIntIntMap
-
getIfAbsentPutWith
public <P> int getIfAbsentPutWith(int key, IntFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableIntIntMap
-
updateValue
public int updateValue(int key, int initialValueIfAbsent, IntToIntFunction function)
- Specified by:
updateValue
in interfaceMutableIntIntMap
-
getIfAbsent
public int getIfAbsent(int key, int ifAbsent)
- Specified by:
getIfAbsent
in interfaceIntIntMap
-
getOrThrow
public int getOrThrow(int key)
- Specified by:
getOrThrow
in interfaceIntIntMap
-
containsKey
public boolean containsKey(int key)
- Specified by:
containsKey
in interfaceIntIntMap
-
containsValue
public boolean containsValue(int value)
- Specified by:
containsValue
in interfaceIntValuesMap
-
forEachValue
public void forEachValue(IntProcedure procedure)
- Specified by:
forEachValue
in interfaceIntValuesMap
-
forEachKey
public void forEachKey(IntProcedure procedure)
- Specified by:
forEachKey
in interfaceIntIntMap
-
forEachKeyValue
public void forEachKeyValue(IntIntProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceIntIntMap
-
keysView
public LazyIntIterable keysView()
-
keyValuesView
public RichIterable<IntIntPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceIntIntMap
-
flipUniqueValues
public MutableIntIntMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceIntIntMap
- Specified by:
flipUniqueValues
in interfaceMutableIntIntMap
-
select
public MutableIntIntMap select(IntIntPredicate predicate)
- Specified by:
select
in interfaceIntIntMap
- Specified by:
select
in interfaceMutableIntIntMap
-
reject
public MutableIntIntMap reject(IntIntPredicate predicate)
- Specified by:
reject
in interfaceIntIntMap
- Specified by:
reject
in interfaceMutableIntIntMap
-
intIterator
public MutableIntIterator intIterator()
- Specified by:
intIterator
in interfaceIntIterable
- Specified by:
intIterator
in interfaceMutableIntValuesMap
-
each
public void each(IntProcedure procedure)
- Specified by:
each
in interfaceIntIterable
- Since:
- 7.0.
-
count
public int count(IntPredicate predicate)
- Specified by:
count
in interfaceIntIterable
-
anySatisfy
public boolean anySatisfy(IntPredicate predicate)
- Specified by:
anySatisfy
in interfaceIntIterable
-
allSatisfy
public boolean allSatisfy(IntPredicate predicate)
- Specified by:
allSatisfy
in interfaceIntIterable
-
noneSatisfy
public boolean noneSatisfy(IntPredicate predicate)
- Specified by:
noneSatisfy
in interfaceIntIterable
-
select
public MutableIntBag select(IntPredicate predicate)
- Specified by:
select
in interfaceIntIterable
- Specified by:
select
in interfaceIntValuesMap
- Specified by:
select
in interfaceMutableIntValuesMap
-
reject
public MutableIntBag reject(IntPredicate predicate)
- Specified by:
reject
in interfaceIntIterable
- Specified by:
reject
in interfaceIntValuesMap
- Specified by:
reject
in interfaceMutableIntValuesMap
-
collect
public <V> MutableBag<V> collect(IntToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceIntIterable
- Specified by:
collect
in interfaceIntValuesMap
- Specified by:
collect
in interfaceMutableIntValuesMap
-
detectIfNone
public int detectIfNone(IntPredicate predicate, int ifNone)
- Specified by:
detectIfNone
in interfaceIntIterable
-
sum
public long sum()
- Specified by:
sum
in interfaceIntIterable
-
max
public int max()
- Specified by:
max
in interfaceIntIterable
-
maxIfEmpty
public int maxIfEmpty(int defaultValue)
- Specified by:
maxIfEmpty
in interfaceIntIterable
-
min
public int min()
- Specified by:
min
in interfaceIntIterable
-
minIfEmpty
public int minIfEmpty(int defaultValue)
- Specified by:
minIfEmpty
in interfaceIntIterable
-
average
public double average()
- Specified by:
average
in interfaceIntIterable
-
median
public double median()
- Specified by:
median
in interfaceIntIterable
-
addToValue
public int addToValue(int key, int toBeAdded)
- Specified by:
addToValue
in interfaceMutableIntIntMap
-
toSortedArray
public int[] toSortedArray()
- Specified by:
toSortedArray
in interfaceIntIterable
-
toSortedList
public MutableIntList toSortedList()
- Specified by:
toSortedList
in interfaceIntIterable
-
toArray
public int[] toArray()
- Specified by:
toArray
in interfaceIntIterable
-
toArray
public int[] toArray(int[] target)
- Specified by:
toArray
in interfaceIntIterable
-
contains
public boolean contains(int value)
- Specified by:
contains
in interfaceIntIterable
-
containsAll
public boolean containsAll(int... source)
- Specified by:
containsAll
in interfaceIntIterable
-
containsAll
public boolean containsAll(IntIterable source)
- Specified by:
containsAll
in interfaceIntIterable
-
toList
public MutableIntList toList()
- Specified by:
toList
in interfaceIntIterable
-
toSet
public MutableIntSet toSet()
- Specified by:
toSet
in interfaceIntIterable
-
toBag
public MutableIntBag toBag()
- Specified by:
toBag
in interfaceIntIterable
-
asLazy
public LazyIntIterable asLazy()
- Specified by:
asLazy
in interfaceIntIterable
-
withKeyValue
public MutableIntIntMap withKeyValue(int key, int value)
- Specified by:
withKeyValue
in interfaceMutableIntIntMap
-
withoutKey
public MutableIntIntMap withoutKey(int key)
- Specified by:
withoutKey
in interfaceMutableIntIntMap
-
withoutAllKeys
public MutableIntIntMap withoutAllKeys(IntIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableIntIntMap
-
asUnmodifiable
public MutableIntIntMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableIntIntMap
-
asSynchronized
public MutableIntIntMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableIntIntMap
-
toImmutable
public ImmutableIntIntMap toImmutable()
- Specified by:
toImmutable
in interfaceIntIntMap
-
size
public int size()
- Specified by:
size
in interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmpty
in interfacePrimitiveIterable
-
keySet
public MutableIntSet keySet()
-
values
public MutableIntCollection values()
- Specified by:
values
in interfaceIntValuesMap
-
equals
public boolean equals(Object otherMap)
-
hashCode
public int hashCode()
-
toString
public String toString()
-
makeString
public String makeString()
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendString
in interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectIntToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceIntIterable
-
chunk
public RichIterable<IntIterable> chunk(int size)
- Specified by:
chunk
in interfaceIntIterable
-
-