Class SynchronizedByteLongMap
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.SynchronizedByteLongMap
- All Implemented Interfaces:
Serializable,LongIterable,ByteLongMap,LongValuesMap,MutableByteLongMap,MutableLongValuesMap,PrimitiveIterable
A synchronized view of a
MutableByteLongMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
MutableLongIterator as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongaddToValue(byte key, long toBeAdded) booleanallSatisfy(LongPredicate predicate) booleanallSatisfyKeyValue(ByteLongPredicate predicate) booleananySatisfy(LongPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()chunk(int size) voidclear()<V> MutableBag<V>collect(LongToObjectFunction<? extends V> function) booleancontains(long value) booleancontainsAll(long... source) booleancontainsAll(LongIterable source) booleancontainsKey(byte key) booleancontainsValue(long value) intcount(LongPredicate predicate) longdetectIfNone(LongPredicate predicate, long ifNone) voideach(LongProcedure procedure) booleanvoidforEachKey(ByteProcedure procedure) voidforEachKeyValue(ByteLongProcedure procedure) voidforEachValue(LongProcedure procedure) longget(byte key) longgetAndPut(byte key, long putValue, long defaultValue) longgetIfAbsent(byte key, long ifAbsent) longgetIfAbsentPut(byte key, long value) longgetIfAbsentPut(byte key, LongFunction0 function) <P> longgetIfAbsentPutWith(byte key, LongFunction<? super P> function, P parameter) longgetIfAbsentPutWithKey(byte key, ByteToLongFunction function) longgetOrThrow(byte key) inthashCode()<T> TinjectInto(T injectedValue, ObjectLongToObjectFunction<? super T, ? extends T> function) booleanisEmpty()keySet()keysView()This must be manually synchronized by the developer.makeString(String separator) makeString(String start, String separator, String end) longmax()longmaxIfEmpty(long defaultValue) doublemedian()longmin()longminIfEmpty(long defaultValue) booleannoneSatisfy(LongPredicate predicate) booleannotEmpty()voidput(byte key, long value) voidputAll(ByteLongMap map) voidputPair(ByteLongPair keyValuePair) reject(ByteLongPredicate predicate) reject(LongPredicate predicate) voidremove(byte key) voidremoveKey(byte key) longremoveKeyIfAbsent(byte key, long value) select(ByteLongPredicate predicate) select(LongPredicate predicate) intsize()longsum()long[]toArray()long[]toArray(long[] target) toBag()toList()toSet()long[]toString()longupdateValue(byte key, long initialValueIfAbsent, LongToLongFunction function) voidupdateValues(ByteLongToLongFunction function) values()withKeyValue(byte key, long value) withoutAllKeys(ByteIterable keys) withoutKey(byte key) Methods inherited from interface org.eclipse.collections.api.map.primitive.ByteLongMap
injectIntoKeyValueMethods 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, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.LongValuesMap
tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteLongMap
withAllKeyValues
-
Constructor Details
-
SynchronizedByteLongMap
-
SynchronizedByteLongMap
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceMutableLongValuesMap
-
put
public void put(byte key, long value) - Specified by:
putin interfaceMutableByteLongMap
-
putPair
- Specified by:
putPairin interfaceMutableByteLongMap
-
putAll
- Specified by:
putAllin interfaceMutableByteLongMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableByteLongMap
-
removeKey
public void removeKey(byte key) - Specified by:
removeKeyin interfaceMutableByteLongMap
-
remove
public void remove(byte key) - Specified by:
removein interfaceMutableByteLongMap
-
removeKeyIfAbsent
public long removeKeyIfAbsent(byte key, long value) - Specified by:
removeKeyIfAbsentin interfaceMutableByteLongMap
-
getIfAbsentPut
public long getIfAbsentPut(byte key, long value) - Specified by:
getIfAbsentPutin interfaceMutableByteLongMap
-
getAndPut
public long getAndPut(byte key, long putValue, long defaultValue) - Specified by:
getAndPutin interfaceMutableByteLongMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableByteLongMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableByteLongMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableByteLongMap
-
updateValue
- Specified by:
updateValuein interfaceMutableByteLongMap
-
get
public long get(byte key) - Specified by:
getin interfaceByteLongMap
-
getIfAbsent
public long getIfAbsent(byte key, long ifAbsent) - Specified by:
getIfAbsentin interfaceByteLongMap
-
getOrThrow
public long getOrThrow(byte key) - Specified by:
getOrThrowin interfaceByteLongMap
-
containsKey
public boolean containsKey(byte key) - Specified by:
containsKeyin interfaceByteLongMap
-
containsValue
public boolean containsValue(long value) - Specified by:
containsValuein interfaceLongValuesMap
-
forEachValue
- Specified by:
forEachValuein interfaceLongValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceByteLongMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceByteLongMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceByteLongMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceByteLongMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceByteLongMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceByteLongMap- Specified by:
flipUniqueValuesin interfaceMutableByteLongMap
-
select
- Specified by:
selectin interfaceByteLongMap- Specified by:
selectin interfaceMutableByteLongMap
-
reject
- Specified by:
rejectin interfaceByteLongMap- Specified by:
rejectin interfaceMutableByteLongMap
-
longIterator
This must be manually synchronized by the developer.- Specified by:
longIteratorin interfaceLongIterable- Specified by:
longIteratorin interfaceMutableLongValuesMap
-
each
- Specified by:
eachin interfaceLongIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceLongIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceLongIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceLongIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceLongIterable
-
select
- Specified by:
selectin interfaceLongIterable- Specified by:
selectin interfaceLongValuesMap- Specified by:
selectin interfaceMutableLongValuesMap
-
reject
- Specified by:
rejectin interfaceLongIterable- Specified by:
rejectin interfaceLongValuesMap- Specified by:
rejectin interfaceMutableLongValuesMap
-
collect
- Specified by:
collectin interfaceLongIterable- Specified by:
collectin interfaceLongValuesMap- Specified by:
collectin interfaceMutableLongValuesMap
-
detectIfNone
- Specified by:
detectIfNonein interfaceLongIterable
-
sum
public long sum()- Specified by:
sumin interfaceLongIterable
-
max
public long max()- Specified by:
maxin interfaceLongIterable
-
maxIfEmpty
public long maxIfEmpty(long defaultValue) - Specified by:
maxIfEmptyin interfaceLongIterable
-
min
public long min()- Specified by:
minin interfaceLongIterable
-
minIfEmpty
public long minIfEmpty(long defaultValue) - Specified by:
minIfEmptyin interfaceLongIterable
-
average
public double average()- Specified by:
averagein interfaceLongIterable
-
median
public double median()- Specified by:
medianin interfaceLongIterable
-
addToValue
public long addToValue(byte key, long toBeAdded) - Specified by:
addToValuein interfaceMutableByteLongMap
-
toSortedArray
public long[] toSortedArray()- Specified by:
toSortedArrayin interfaceLongIterable
-
toSortedList
- Specified by:
toSortedListin interfaceLongIterable
-
toArray
public long[] toArray()- Specified by:
toArrayin interfaceLongIterable
-
toArray
public long[] toArray(long[] target) - Specified by:
toArrayin interfaceLongIterable
-
contains
public boolean contains(long value) - Specified by:
containsin interfaceLongIterable
-
containsAll
public boolean containsAll(long... source) - Specified by:
containsAllin interfaceLongIterable
-
containsAll
- Specified by:
containsAllin interfaceLongIterable
-
toList
- Specified by:
toListin interfaceLongIterable
-
toSet
- Specified by:
toSetin interfaceLongIterable
-
toBag
- Specified by:
toBagin interfaceLongIterable
-
asLazy
- Specified by:
asLazyin interfaceLongIterable
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableByteLongMap
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableByteLongMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableByteLongMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableByteLongMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableByteLongMap
-
toImmutable
- Specified by:
toImmutablein interfaceByteLongMap
-
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
- Specified by:
keySetin interfaceByteLongMap
-
values
- Specified by:
valuesin interfaceLongValuesMap
-
equals
- Specified by:
equalsin interfaceByteLongMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceByteLongMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceByteLongMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectLongToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceLongIterable
-
chunk
- Specified by:
chunkin interfaceLongIterable
-