Class UnmodifiableLongIntMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableLongIntMap
-
- All Implemented Interfaces:
Serializable,IntIterable,IntValuesMap,LongIntMap,MutableIntValuesMap,MutableLongIntMap,PrimitiveIterable
public class UnmodifiableLongIntMap extends Object implements MutableLongIntMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableLongIntMap(MutableLongIntMap 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.IntValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.LongIntMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongIntMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
UnmodifiableLongIntMap
public UnmodifiableLongIntMap(MutableLongIntMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableIntValuesMap
-
put
public void put(long key, int value)- Specified by:
putin interfaceMutableLongIntMap
-
putPair
public void putPair(LongIntPair keyValuePair)
- Specified by:
putPairin interfaceMutableLongIntMap
-
putAll
public void putAll(LongIntMap map)
- Specified by:
putAllin interfaceMutableLongIntMap
-
updateValues
public void updateValues(LongIntToIntFunction function)
- Specified by:
updateValuesin interfaceMutableLongIntMap
-
removeKey
public void removeKey(long key)
- Specified by:
removeKeyin interfaceMutableLongIntMap
-
remove
public void remove(long key)
- Specified by:
removein interfaceMutableLongIntMap
-
removeKeyIfAbsent
public int removeKeyIfAbsent(long key, int value)- Specified by:
removeKeyIfAbsentin interfaceMutableLongIntMap
-
getIfAbsentPut
public int getIfAbsentPut(long key, int value)- Specified by:
getIfAbsentPutin interfaceMutableLongIntMap
-
getAndPut
public int getAndPut(long key, int putValue, int defaultValue)- Specified by:
getAndPutin interfaceMutableLongIntMap
-
getIfAbsentPut
public int getIfAbsentPut(long key, IntFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableLongIntMap
-
getIfAbsentPutWithKey
public int getIfAbsentPutWithKey(long key, LongToIntFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableLongIntMap
-
getIfAbsentPutWith
public <P> int getIfAbsentPutWith(long key, IntFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableLongIntMap
-
updateValue
public int updateValue(long key, int initialValueIfAbsent, IntToIntFunction function)- Specified by:
updateValuein interfaceMutableLongIntMap
-
get
public int get(long key)
- Specified by:
getin interfaceLongIntMap
-
getIfAbsent
public int getIfAbsent(long key, int ifAbsent)- Specified by:
getIfAbsentin interfaceLongIntMap
-
getOrThrow
public int getOrThrow(long key)
- Specified by:
getOrThrowin interfaceLongIntMap
-
containsKey
public boolean containsKey(long key)
- Specified by:
containsKeyin interfaceLongIntMap
-
containsValue
public boolean containsValue(int value)
- Specified by:
containsValuein interfaceIntValuesMap
-
forEachValue
public void forEachValue(IntProcedure procedure)
- Specified by:
forEachValuein interfaceIntValuesMap
-
forEachKey
public void forEachKey(LongProcedure procedure)
- Specified by:
forEachKeyin interfaceLongIntMap
-
forEachKeyValue
public void forEachKeyValue(LongIntProcedure procedure)
- Specified by:
forEachKeyValuein interfaceLongIntMap
-
keysView
public LazyLongIterable keysView()
- Specified by:
keysViewin interfaceLongIntMap
-
keyValuesView
public RichIterable<LongIntPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceLongIntMap
-
flipUniqueValues
public MutableIntLongMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceLongIntMap- Specified by:
flipUniqueValuesin interfaceMutableLongIntMap
-
select
public MutableLongIntMap select(LongIntPredicate predicate)
- Specified by:
selectin interfaceLongIntMap- Specified by:
selectin interfaceMutableLongIntMap
-
reject
public MutableLongIntMap reject(LongIntPredicate predicate)
- Specified by:
rejectin interfaceLongIntMap- Specified by:
rejectin interfaceMutableLongIntMap
-
intIterator
public MutableIntIterator intIterator()
- Specified by:
intIteratorin interfaceIntIterable- Specified by:
intIteratorin interfaceMutableIntValuesMap
-
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 MutableIntBag select(IntPredicate predicate)
- Specified by:
selectin interfaceIntIterable- Specified by:
selectin interfaceIntValuesMap- Specified by:
selectin interfaceMutableIntValuesMap
-
reject
public MutableIntBag reject(IntPredicate predicate)
- Specified by:
rejectin interfaceIntIterable- Specified by:
rejectin interfaceIntValuesMap- Specified by:
rejectin interfaceMutableIntValuesMap
-
collect
public <V> MutableBag<V> collect(IntToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceIntIterable- Specified by:
collectin interfaceIntValuesMap- Specified by:
collectin interfaceMutableIntValuesMap
-
detectIfNone
public int detectIfNone(IntPredicate predicate, int ifNone)
- Specified by:
detectIfNonein interfaceIntIterable
-
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
-
addToValue
public int addToValue(long key, int toBeAdded)- Specified by:
addToValuein interfaceMutableLongIntMap
-
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 MutableLongIntMap withKeyValue(long key, int value)
- Specified by:
withKeyValuein interfaceMutableLongIntMap
-
withoutKey
public MutableLongIntMap withoutKey(long key)
- Specified by:
withoutKeyin interfaceMutableLongIntMap
-
withoutAllKeys
public MutableLongIntMap withoutAllKeys(LongIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableLongIntMap
-
asUnmodifiable
public MutableLongIntMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableLongIntMap
-
asSynchronized
public MutableLongIntMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableLongIntMap
-
toImmutable
public ImmutableLongIntMap toImmutable()
- Specified by:
toImmutablein interfaceLongIntMap
-
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 MutableLongSet keySet()
- Specified by:
keySetin interfaceLongIntMap
-
values
public MutableIntCollection values()
- Specified by:
valuesin interfaceIntValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceLongIntMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceLongIntMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceLongIntMap- 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
-
-