Class SynchronizedDoubleByteMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedDoubleByteMap
-
- All Implemented Interfaces:
Serializable,ByteIterable,ByteValuesMap,DoubleByteMap,MutableByteValuesMap,MutableDoubleByteMap,PrimitiveIterable
public class SynchronizedDoubleByteMap extends Object implements MutableDoubleByteMap, Serializable
A synchronized view of aMutableDoubleByteMap. It is imperative that the user manually synchronize on the collection when iterating over it using theMutableByteIteratoras perCollections.synchronizedCollection(Collection).This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
MutableDoubleByteMap.asSynchronized(),MutableMap.asSynchronized(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedDoubleByteMap(MutableDoubleByteMap map)SynchronizedDoubleByteMap(MutableDoubleByteMap map, Object newLock)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.ByteIterable
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.ByteValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleByteMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleByteMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
SynchronizedDoubleByteMap
public SynchronizedDoubleByteMap(MutableDoubleByteMap map)
-
SynchronizedDoubleByteMap
public SynchronizedDoubleByteMap(MutableDoubleByteMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableByteValuesMap
-
put
public void put(double key, byte value)- Specified by:
putin interfaceMutableDoubleByteMap
-
putPair
public void putPair(DoubleBytePair keyValuePair)
- Specified by:
putPairin interfaceMutableDoubleByteMap
-
putAll
public void putAll(DoubleByteMap map)
- Specified by:
putAllin interfaceMutableDoubleByteMap
-
updateValues
public void updateValues(DoubleByteToByteFunction function)
- Specified by:
updateValuesin interfaceMutableDoubleByteMap
-
removeKey
public void removeKey(double key)
- Specified by:
removeKeyin interfaceMutableDoubleByteMap
-
remove
public void remove(double key)
- Specified by:
removein interfaceMutableDoubleByteMap
-
removeKeyIfAbsent
public byte removeKeyIfAbsent(double key, byte value)- Specified by:
removeKeyIfAbsentin interfaceMutableDoubleByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(double key, byte value)- Specified by:
getIfAbsentPutin interfaceMutableDoubleByteMap
-
getAndPut
public byte getAndPut(double key, byte putValue, byte defaultValue)- Specified by:
getAndPutin interfaceMutableDoubleByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(double key, ByteFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableDoubleByteMap
-
getIfAbsentPutWithKey
public byte getIfAbsentPutWithKey(double key, DoubleToByteFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableDoubleByteMap
-
getIfAbsentPutWith
public <P> byte getIfAbsentPutWith(double key, ByteFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleByteMap
-
updateValue
public byte updateValue(double key, byte initialValueIfAbsent, ByteToByteFunction function)- Specified by:
updateValuein interfaceMutableDoubleByteMap
-
get
public byte get(double key)
- Specified by:
getin interfaceDoubleByteMap
-
getIfAbsent
public byte getIfAbsent(double key, byte ifAbsent)- Specified by:
getIfAbsentin interfaceDoubleByteMap
-
getOrThrow
public byte getOrThrow(double key)
- Specified by:
getOrThrowin interfaceDoubleByteMap
-
containsKey
public boolean containsKey(double key)
- Specified by:
containsKeyin interfaceDoubleByteMap
-
containsValue
public boolean containsValue(byte value)
- Specified by:
containsValuein interfaceByteValuesMap
-
forEachValue
public void forEachValue(ByteProcedure procedure)
- Specified by:
forEachValuein interfaceByteValuesMap
-
forEachKey
public void forEachKey(DoubleProcedure procedure)
- Specified by:
forEachKeyin interfaceDoubleByteMap
-
forEachKeyValue
public void forEachKeyValue(DoubleByteProcedure procedure)
- Specified by:
forEachKeyValuein interfaceDoubleByteMap
-
keysView
public LazyDoubleIterable keysView()
- Specified by:
keysViewin interfaceDoubleByteMap
-
keyValuesView
public RichIterable<DoubleBytePair> keyValuesView()
- Specified by:
keyValuesViewin interfaceDoubleByteMap
-
flipUniqueValues
public MutableByteDoubleMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceDoubleByteMap- Specified by:
flipUniqueValuesin interfaceMutableDoubleByteMap
-
select
public MutableDoubleByteMap select(DoubleBytePredicate predicate)
- Specified by:
selectin interfaceDoubleByteMap- Specified by:
selectin interfaceMutableDoubleByteMap
-
reject
public MutableDoubleByteMap reject(DoubleBytePredicate predicate)
- Specified by:
rejectin interfaceDoubleByteMap- Specified by:
rejectin interfaceMutableDoubleByteMap
-
byteIterator
public MutableByteIterator byteIterator()
This must be manually synchronized by the developer.- Specified by:
byteIteratorin interfaceByteIterable- Specified by:
byteIteratorin interfaceMutableByteValuesMap
-
each
public void each(ByteProcedure procedure)
- Specified by:
eachin interfaceByteIterable- Since:
- 7.0.
-
count
public int count(BytePredicate predicate)
- Specified by:
countin interfaceByteIterable
-
anySatisfy
public boolean anySatisfy(BytePredicate predicate)
- Specified by:
anySatisfyin interfaceByteIterable
-
allSatisfy
public boolean allSatisfy(BytePredicate predicate)
- Specified by:
allSatisfyin interfaceByteIterable
-
noneSatisfy
public boolean noneSatisfy(BytePredicate predicate)
- Specified by:
noneSatisfyin interfaceByteIterable
-
select
public MutableByteBag select(BytePredicate predicate)
- Specified by:
selectin interfaceByteIterable- Specified by:
selectin interfaceByteValuesMap- Specified by:
selectin interfaceMutableByteValuesMap
-
reject
public MutableByteBag reject(BytePredicate predicate)
- Specified by:
rejectin interfaceByteIterable- Specified by:
rejectin interfaceByteValuesMap- Specified by:
rejectin interfaceMutableByteValuesMap
-
collect
public <V> MutableBag<V> collect(ByteToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceByteIterable- Specified by:
collectin interfaceByteValuesMap- Specified by:
collectin interfaceMutableByteValuesMap
-
detectIfNone
public byte detectIfNone(BytePredicate predicate, byte ifNone)
- Specified by:
detectIfNonein interfaceByteIterable
-
sum
public long sum()
- Specified by:
sumin interfaceByteIterable
-
max
public byte max()
- Specified by:
maxin interfaceByteIterable
-
maxIfEmpty
public byte maxIfEmpty(byte defaultValue)
- Specified by:
maxIfEmptyin interfaceByteIterable
-
min
public byte min()
- Specified by:
minin interfaceByteIterable
-
minIfEmpty
public byte minIfEmpty(byte defaultValue)
- Specified by:
minIfEmptyin interfaceByteIterable
-
average
public double average()
- Specified by:
averagein interfaceByteIterable
-
median
public double median()
- Specified by:
medianin interfaceByteIterable
-
addToValue
public byte addToValue(double key, byte toBeAdded)- Specified by:
addToValuein interfaceMutableDoubleByteMap
-
toSortedArray
public byte[] toSortedArray()
- Specified by:
toSortedArrayin interfaceByteIterable
-
toSortedList
public MutableByteList toSortedList()
- Specified by:
toSortedListin interfaceByteIterable
-
toArray
public byte[] toArray()
- Specified by:
toArrayin interfaceByteIterable
-
toArray
public byte[] toArray(byte[] target)
- Specified by:
toArrayin interfaceByteIterable
-
contains
public boolean contains(byte value)
- Specified by:
containsin interfaceByteIterable
-
containsAll
public boolean containsAll(byte... source)
- Specified by:
containsAllin interfaceByteIterable
-
containsAll
public boolean containsAll(ByteIterable source)
- Specified by:
containsAllin interfaceByteIterable
-
toList
public MutableByteList toList()
- Specified by:
toListin interfaceByteIterable
-
toSet
public MutableByteSet toSet()
- Specified by:
toSetin interfaceByteIterable
-
toBag
public MutableByteBag toBag()
- Specified by:
toBagin interfaceByteIterable
-
asLazy
public LazyByteIterable asLazy()
- Specified by:
asLazyin interfaceByteIterable
-
withKeyValue
public MutableDoubleByteMap withKeyValue(double key, byte value)
- Specified by:
withKeyValuein interfaceMutableDoubleByteMap
-
withoutKey
public MutableDoubleByteMap withoutKey(double key)
- Specified by:
withoutKeyin interfaceMutableDoubleByteMap
-
withoutAllKeys
public MutableDoubleByteMap withoutAllKeys(DoubleIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableDoubleByteMap
-
asUnmodifiable
public MutableDoubleByteMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableDoubleByteMap
-
asSynchronized
public MutableDoubleByteMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableDoubleByteMap
-
toImmutable
public ImmutableDoubleByteMap toImmutable()
- Specified by:
toImmutablein interfaceDoubleByteMap
-
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 MutableDoubleSet keySet()
- Specified by:
keySetin interfaceDoubleByteMap
-
values
public MutableByteCollection values()
- Specified by:
valuesin interfaceByteValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceDoubleByteMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceDoubleByteMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceDoubleByteMap- 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, ObjectByteToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceByteIterable
-
chunk
public RichIterable<ByteIterable> chunk(int size)
- Specified by:
chunkin interfaceByteIterable
-
-