Class UnmodifiableByteLongMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.UnmodifiableByteLongMap
-
- All Implemented Interfaces:
Serializable
,LongIterable
,ByteLongMap
,LongValuesMap
,MutableByteLongMap
,MutableLongValuesMap
,PrimitiveIterable
public class UnmodifiableByteLongMap extends Object implements MutableByteLongMap, Serializable
This file was automatically generated from template file unmodifiablePrimitivePrimitiveMap.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableByteLongMap(MutableByteLongMap map)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ByteLongMap
injectIntoKeyValue
-
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.LongValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteLongMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
UnmodifiableByteLongMap
public UnmodifiableByteLongMap(MutableByteLongMap map)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableLongValuesMap
-
put
public void put(byte key, long value)
- Specified by:
put
in interfaceMutableByteLongMap
-
putPair
public void putPair(ByteLongPair keyValuePair)
- Specified by:
putPair
in interfaceMutableByteLongMap
-
putAll
public void putAll(ByteLongMap map)
- Specified by:
putAll
in interfaceMutableByteLongMap
-
updateValues
public void updateValues(ByteLongToLongFunction function)
- Specified by:
updateValues
in interfaceMutableByteLongMap
-
removeKey
public void removeKey(byte key)
- Specified by:
removeKey
in interfaceMutableByteLongMap
-
remove
public void remove(byte key)
- Specified by:
remove
in interfaceMutableByteLongMap
-
removeKeyIfAbsent
public long removeKeyIfAbsent(byte key, long value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableByteLongMap
-
getIfAbsentPut
public long getIfAbsentPut(byte key, long value)
- Specified by:
getIfAbsentPut
in interfaceMutableByteLongMap
-
getAndPut
public long getAndPut(byte key, long putValue, long defaultValue)
- Specified by:
getAndPut
in interfaceMutableByteLongMap
-
getIfAbsentPut
public long getIfAbsentPut(byte key, LongFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableByteLongMap
-
getIfAbsentPutWithKey
public long getIfAbsentPutWithKey(byte key, ByteToLongFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableByteLongMap
-
getIfAbsentPutWith
public <P> long getIfAbsentPutWith(byte key, LongFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableByteLongMap
-
updateValue
public long updateValue(byte key, long initialValueIfAbsent, LongToLongFunction function)
- Specified by:
updateValue
in interfaceMutableByteLongMap
-
get
public long get(byte key)
- Specified by:
get
in interfaceByteLongMap
-
getIfAbsent
public long getIfAbsent(byte key, long ifAbsent)
- Specified by:
getIfAbsent
in interfaceByteLongMap
-
getOrThrow
public long getOrThrow(byte key)
- Specified by:
getOrThrow
in interfaceByteLongMap
-
containsKey
public boolean containsKey(byte key)
- Specified by:
containsKey
in interfaceByteLongMap
-
containsValue
public boolean containsValue(long value)
- Specified by:
containsValue
in interfaceLongValuesMap
-
forEachValue
public void forEachValue(LongProcedure procedure)
- Specified by:
forEachValue
in interfaceLongValuesMap
-
forEachKey
public void forEachKey(ByteProcedure procedure)
- Specified by:
forEachKey
in interfaceByteLongMap
-
forEachKeyValue
public void forEachKeyValue(ByteLongProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceByteLongMap
-
keysView
public LazyByteIterable keysView()
- Specified by:
keysView
in interfaceByteLongMap
-
keyValuesView
public RichIterable<ByteLongPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceByteLongMap
-
flipUniqueValues
public MutableLongByteMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceByteLongMap
- Specified by:
flipUniqueValues
in interfaceMutableByteLongMap
-
select
public MutableByteLongMap select(ByteLongPredicate predicate)
- Specified by:
select
in interfaceByteLongMap
- Specified by:
select
in interfaceMutableByteLongMap
-
reject
public MutableByteLongMap reject(ByteLongPredicate predicate)
- Specified by:
reject
in interfaceByteLongMap
- Specified by:
reject
in interfaceMutableByteLongMap
-
longIterator
public MutableLongIterator longIterator()
- Specified by:
longIterator
in interfaceLongIterable
- Specified by:
longIterator
in interfaceMutableLongValuesMap
-
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 MutableLongBag select(LongPredicate predicate)
- Specified by:
select
in interfaceLongIterable
- Specified by:
select
in interfaceLongValuesMap
- Specified by:
select
in interfaceMutableLongValuesMap
-
reject
public MutableLongBag reject(LongPredicate predicate)
- Specified by:
reject
in interfaceLongIterable
- Specified by:
reject
in interfaceLongValuesMap
- Specified by:
reject
in interfaceMutableLongValuesMap
-
collect
public <V> MutableBag<V> collect(LongToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceLongIterable
- Specified by:
collect
in interfaceLongValuesMap
- Specified by:
collect
in interfaceMutableLongValuesMap
-
detectIfNone
public long detectIfNone(LongPredicate predicate, long ifNone)
- Specified by:
detectIfNone
in interfaceLongIterable
-
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
-
addToValue
public long addToValue(byte key, long toBeAdded)
- Specified by:
addToValue
in interfaceMutableByteLongMap
-
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 MutableByteLongMap withKeyValue(byte key, long value)
- Specified by:
withKeyValue
in interfaceMutableByteLongMap
-
withoutKey
public MutableByteLongMap withoutKey(byte key)
- Specified by:
withoutKey
in interfaceMutableByteLongMap
-
withoutAllKeys
public MutableByteLongMap withoutAllKeys(ByteIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableByteLongMap
-
asUnmodifiable
public MutableByteLongMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableByteLongMap
-
asSynchronized
public MutableByteLongMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableByteLongMap
-
toImmutable
public ImmutableByteLongMap toImmutable()
- Specified by:
toImmutable
in interfaceByteLongMap
-
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 MutableByteSet keySet()
- Specified by:
keySet
in interfaceByteLongMap
-
values
public MutableLongCollection values()
- Specified by:
values
in interfaceLongValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceByteLongMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceByteLongMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceByteLongMap
- 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
-
-