Class UnmodifiableObjectLongMap<K>
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableObjectLongMap<K>
-
- All Implemented Interfaces:
Serializable
,LongIterable
,MutableObjectLongMap<K>
,ObjectLongMap<K>
,PrimitiveIterable
public class UnmodifiableObjectLongMap<K> extends Object implements MutableObjectLongMap<K>, Serializable
This file was automatically generated from template file unmodifiableObjectPrimitiveMap.stg.- Since:
- 3.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableObjectLongMap(MutableObjectLongMap<K> map)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.LongIterable
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.MutableObjectLongMap
tap, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ObjectLongMap
injectIntoKeyValue
-
-
-
-
Constructor Detail
-
UnmodifiableObjectLongMap
public UnmodifiableObjectLongMap(MutableObjectLongMap<K> map)
-
-
Method Detail
-
getAndPut
public long getAndPut(K key, long defaultValue, long putValue)
- Specified by:
getAndPut
in interfaceMutableObjectLongMap<K>
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableObjectLongMap<K>
-
put
public void put(K key, long value)
- Specified by:
put
in interfaceMutableObjectLongMap<K>
-
putPair
public void putPair(ObjectLongPair<K> keyValuePair)
- Specified by:
putPair
in interfaceMutableObjectLongMap<K>
-
putAll
public void putAll(ObjectLongMap<? extends K> map)
- Specified by:
putAll
in interfaceMutableObjectLongMap<K>
-
updateValues
public void updateValues(ObjectLongToLongFunction<? super K> function)
- Specified by:
updateValues
in interfaceMutableObjectLongMap<K>
-
removeKey
public void removeKey(K key)
- Specified by:
removeKey
in interfaceMutableObjectLongMap<K>
-
remove
public void remove(Object key)
- Specified by:
remove
in interfaceMutableObjectLongMap<K>
-
removeKeyIfAbsent
public long removeKeyIfAbsent(K key, long value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableObjectLongMap<K>
-
getIfAbsentPut
public long getIfAbsentPut(K key, long value)
- Specified by:
getIfAbsentPut
in interfaceMutableObjectLongMap<K>
-
getIfAbsentPut
public long getIfAbsentPut(K key, LongFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableObjectLongMap<K>
-
getIfAbsentPutWithKey
public long getIfAbsentPutWithKey(K key, LongFunction<? super K> function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableObjectLongMap<K>
-
getIfAbsentPutWith
public <P> long getIfAbsentPutWith(K key, LongFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableObjectLongMap<K>
-
updateValue
public long updateValue(K key, long initialValueIfAbsent, LongToLongFunction function)
- Specified by:
updateValue
in interfaceMutableObjectLongMap<K>
-
addToValue
public long addToValue(K key, long toBeAdded)
- Specified by:
addToValue
in interfaceMutableObjectLongMap<K>
-
get
public long get(Object key)
- Specified by:
get
in interfaceObjectLongMap<K>
-
getOrThrow
public long getOrThrow(Object key)
- Specified by:
getOrThrow
in interfaceObjectLongMap<K>
-
getIfAbsent
public long getIfAbsent(Object key, long ifAbsent)
- Specified by:
getIfAbsent
in interfaceObjectLongMap<K>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceObjectLongMap<K>
-
containsValue
public boolean containsValue(long value)
- Specified by:
containsValue
in interfaceObjectLongMap<K>
-
forEachValue
public void forEachValue(LongProcedure procedure)
- Specified by:
forEachValue
in interfaceObjectLongMap<K>
-
forEachKey
public void forEachKey(Procedure<? super K> procedure)
- Specified by:
forEachKey
in interfaceObjectLongMap<K>
-
forEachKeyValue
public void forEachKeyValue(ObjectLongProcedure<? super K> procedure)
- Specified by:
forEachKeyValue
in interfaceObjectLongMap<K>
-
select
public MutableObjectLongMap<K> select(ObjectLongPredicate<? super K> predicate)
- Specified by:
select
in interfaceMutableObjectLongMap<K>
- Specified by:
select
in interfaceObjectLongMap<K>
-
reject
public MutableObjectLongMap<K> reject(ObjectLongPredicate<? super K> predicate)
- Specified by:
reject
in interfaceMutableObjectLongMap<K>
- Specified by:
reject
in interfaceObjectLongMap<K>
-
longIterator
public MutableLongIterator longIterator()
- Specified by:
longIterator
in interfaceLongIterable
- Specified by:
longIterator
in interfaceMutableObjectLongMap<K>
-
each
public void each(LongProcedure procedure)
- Specified by:
each
in interfaceLongIterable
- Since:
- 7.0.
-
count
public int count(LongPredicate predicate)
- Specified by:
count
in interfaceLongIterable
-
anySatisfy
public boolean anySatisfy(LongPredicate predicate)
- Specified by:
anySatisfy
in interfaceLongIterable
-
allSatisfy
public boolean allSatisfy(LongPredicate predicate)
- Specified by:
allSatisfy
in interfaceLongIterable
-
noneSatisfy
public boolean noneSatisfy(LongPredicate predicate)
- Specified by:
noneSatisfy
in interfaceLongIterable
-
select
public MutableLongCollection select(LongPredicate predicate)
- Specified by:
select
in interfaceLongIterable
- Specified by:
select
in interfaceMutableObjectLongMap<K>
-
reject
public MutableLongCollection reject(LongPredicate predicate)
- Specified by:
reject
in interfaceLongIterable
- Specified by:
reject
in interfaceMutableObjectLongMap<K>
-
detectIfNone
public long detectIfNone(LongPredicate predicate, long ifNone)
- Specified by:
detectIfNone
in interfaceLongIterable
-
collect
public <V1> MutableCollection<V1> collect(LongToObjectFunction<? extends V1> function)
- Specified by:
collect
in interfaceLongIterable
- Specified by:
collect
in interfaceMutableObjectLongMap<K>
-
sum
public long sum()
- Specified by:
sum
in interfaceLongIterable
-
max
public long max()
- Specified by:
max
in interfaceLongIterable
-
maxIfEmpty
public long maxIfEmpty(long defaultValue)
- Specified by:
maxIfEmpty
in interfaceLongIterable
-
min
public long min()
- Specified by:
min
in interfaceLongIterable
-
minIfEmpty
public long minIfEmpty(long defaultValue)
- Specified by:
minIfEmpty
in interfaceLongIterable
-
average
public double average()
- Specified by:
average
in interfaceLongIterable
-
median
public double median()
- Specified by:
median
in interfaceLongIterable
-
toSortedArray
public long[] toSortedArray()
- Specified by:
toSortedArray
in interfaceLongIterable
-
toSortedList
public MutableLongList toSortedList()
- Specified by:
toSortedList
in interfaceLongIterable
-
toArray
public long[] toArray()
- Specified by:
toArray
in interfaceLongIterable
-
toArray
public long[] toArray(long[] target)
- Specified by:
toArray
in interfaceLongIterable
-
contains
public boolean contains(long value)
- Specified by:
contains
in interfaceLongIterable
-
containsAll
public boolean containsAll(long... source)
- Specified by:
containsAll
in interfaceLongIterable
-
containsAll
public boolean containsAll(LongIterable source)
- Specified by:
containsAll
in interfaceLongIterable
-
toList
public MutableLongList toList()
- Specified by:
toList
in interfaceLongIterable
-
toSet
public MutableLongSet toSet()
- Specified by:
toSet
in interfaceLongIterable
-
toBag
public MutableLongBag toBag()
- Specified by:
toBag
in interfaceLongIterable
-
asLazy
public LazyLongIterable asLazy()
- Specified by:
asLazy
in interfaceLongIterable
-
withKeyValue
public MutableObjectLongMap<K> withKeyValue(K key, long value)
- Specified by:
withKeyValue
in interfaceMutableObjectLongMap<K>
-
withoutKey
public MutableObjectLongMap<K> withoutKey(K key)
- Specified by:
withoutKey
in interfaceMutableObjectLongMap<K>
-
withoutAllKeys
public MutableObjectLongMap<K> withoutAllKeys(Iterable<? extends K> keys)
- Specified by:
withoutAllKeys
in interfaceMutableObjectLongMap<K>
-
asUnmodifiable
public MutableObjectLongMap<K> asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableObjectLongMap<K>
-
asSynchronized
public MutableObjectLongMap<K> asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableObjectLongMap<K>
-
toImmutable
public ImmutableObjectLongMap<K> toImmutable()
- Specified by:
toImmutable
in interfaceObjectLongMap<K>
-
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 Set<K> keySet()
- Specified by:
keySet
in interfaceObjectLongMap<K>
-
values
public MutableLongCollection values()
- Specified by:
values
in interfaceObjectLongMap<K>
-
keysView
public LazyIterable<K> keysView()
- Specified by:
keysView
in interfaceObjectLongMap<K>
-
keyValuesView
public RichIterable<ObjectLongPair<K>> keyValuesView()
- Specified by:
keyValuesView
in interfaceObjectLongMap<K>
-
flipUniqueValues
public MutableLongObjectMap<K> flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceMutableObjectLongMap<K>
- Specified by:
flipUniqueValues
in interfaceObjectLongMap<K>
-
toString
public String toString()
- Specified by:
toString
in interfaceObjectLongMap<K>
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classObject
-
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, ObjectLongToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceLongIterable
-
chunk
public RichIterable<LongIterable> chunk(int size)
- Specified by:
chunk
in interfaceLongIterable
-
-