public class SynchronizedByteByteMap extends Object implements MutableByteByteMap, Serializable
MutableByteByteMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
MutableByteIterator as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
MutableByteByteMap.asSynchronized(),
MutableMap.asSynchronized(),
Serialized Form| Constructor and Description |
|---|
SynchronizedByteByteMap(MutableByteByteMap map) |
SynchronizedByteByteMap(MutableByteByteMap map,
Object newLock) |
withAllKeyValuesinjectIntoKeyValuetapaverageIfEmpty, 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, toSortedListBypublic SynchronizedByteByteMap(MutableByteByteMap map)
public SynchronizedByteByteMap(MutableByteByteMap map, Object newLock)
public void clear()
clear in interface MutableByteValuesMappublic void put(byte key,
byte value)
put in interface MutableByteByteMappublic void putPair(ByteBytePair keyValuePair)
putPair in interface MutableByteByteMappublic void putAll(ByteByteMap map)
putAll in interface MutableByteByteMappublic void updateValues(ByteByteToByteFunction function)
updateValues in interface MutableByteByteMappublic void removeKey(byte key)
removeKey in interface MutableByteByteMappublic void remove(byte key)
remove in interface MutableByteByteMappublic byte removeKeyIfAbsent(byte key,
byte value)
removeKeyIfAbsent in interface MutableByteByteMappublic byte getIfAbsentPut(byte key,
byte value)
getIfAbsentPut in interface MutableByteByteMappublic byte getAndPut(byte key,
byte putValue,
byte defaultValue)
getAndPut in interface MutableByteByteMappublic byte getIfAbsentPut(byte key,
ByteFunction0 function)
getIfAbsentPut in interface MutableByteByteMappublic byte getIfAbsentPutWithKey(byte key,
ByteToByteFunction function)
getIfAbsentPutWithKey in interface MutableByteByteMappublic <P> byte getIfAbsentPutWith(byte key,
ByteFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableByteByteMappublic byte updateValue(byte key,
byte initialValueIfAbsent,
ByteToByteFunction function)
updateValue in interface MutableByteByteMappublic byte get(byte key)
get in interface ByteByteMappublic byte getIfAbsent(byte key,
byte ifAbsent)
getIfAbsent in interface ByteByteMappublic byte getOrThrow(byte key)
getOrThrow in interface ByteByteMappublic boolean containsKey(byte key)
containsKey in interface ByteByteMappublic boolean containsValue(byte value)
containsValue in interface ByteValuesMappublic void forEachValue(ByteProcedure procedure)
forEachValue in interface ByteValuesMappublic void forEachKey(ByteProcedure procedure)
forEachKey in interface ByteByteMappublic void forEachKeyValue(ByteByteProcedure procedure)
forEachKeyValue in interface ByteByteMappublic LazyByteIterable keysView()
keysView in interface ByteByteMappublic RichIterable<ByteBytePair> keyValuesView()
keyValuesView in interface ByteByteMappublic MutableByteByteMap flipUniqueValues()
flipUniqueValues in interface ByteByteMapflipUniqueValues in interface MutableByteByteMappublic MutableByteByteMap select(ByteBytePredicate predicate)
select in interface ByteByteMapselect in interface MutableByteByteMappublic MutableByteByteMap reject(ByteBytePredicate predicate)
reject in interface ByteByteMapreject in interface MutableByteByteMappublic MutableByteIterator byteIterator()
byteIterator in interface ByteIterablebyteIterator in interface MutableByteValuesMappublic void each(ByteProcedure procedure)
each in interface ByteIterablepublic int count(BytePredicate predicate)
count in interface ByteIterablepublic boolean anySatisfy(BytePredicate predicate)
anySatisfy in interface ByteIterablepublic boolean allSatisfy(BytePredicate predicate)
allSatisfy in interface ByteIterablepublic boolean noneSatisfy(BytePredicate predicate)
noneSatisfy in interface ByteIterablepublic MutableByteBag select(BytePredicate predicate)
select in interface ByteIterableselect in interface ByteValuesMapselect in interface MutableByteValuesMappublic MutableByteBag reject(BytePredicate predicate)
reject in interface ByteIterablereject in interface ByteValuesMapreject in interface MutableByteValuesMappublic <V> MutableBag<V> collect(ByteToObjectFunction<? extends V> function)
collect in interface ByteIterablecollect in interface ByteValuesMapcollect in interface MutableByteValuesMappublic byte detectIfNone(BytePredicate predicate, byte ifNone)
detectIfNone in interface ByteIterablepublic long sum()
sum in interface ByteIterablepublic byte max()
max in interface ByteIterablepublic byte maxIfEmpty(byte defaultValue)
maxIfEmpty in interface ByteIterablepublic byte min()
min in interface ByteIterablepublic byte minIfEmpty(byte defaultValue)
minIfEmpty in interface ByteIterablepublic double average()
average in interface ByteIterablepublic double median()
median in interface ByteIterablepublic byte addToValue(byte key,
byte toBeAdded)
addToValue in interface MutableByteByteMappublic byte[] toSortedArray()
toSortedArray in interface ByteIterablepublic MutableByteList toSortedList()
toSortedList in interface ByteIterablepublic byte[] toArray()
toArray in interface ByteIterablepublic byte[] toArray(byte[] target)
toArray in interface ByteIterablepublic boolean contains(byte value)
contains in interface ByteIterablepublic boolean containsAll(byte... source)
containsAll in interface ByteIterablepublic boolean containsAll(ByteIterable source)
containsAll in interface ByteIterablepublic MutableByteList toList()
toList in interface ByteIterablepublic MutableByteSet toSet()
toSet in interface ByteIterablepublic MutableByteBag toBag()
toBag in interface ByteIterablepublic LazyByteIterable asLazy()
asLazy in interface ByteIterablepublic MutableByteByteMap withKeyValue(byte key, byte value)
withKeyValue in interface MutableByteByteMappublic MutableByteByteMap withoutKey(byte key)
withoutKey in interface MutableByteByteMappublic MutableByteByteMap withoutAllKeys(ByteIterable keys)
withoutAllKeys in interface MutableByteByteMappublic MutableByteByteMap asUnmodifiable()
asUnmodifiable in interface MutableByteByteMappublic MutableByteByteMap asSynchronized()
asSynchronized in interface MutableByteByteMappublic ImmutableByteByteMap toImmutable()
toImmutable in interface ByteByteMappublic int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic MutableByteSet keySet()
keySet in interface ByteByteMappublic MutableByteCollection values()
values in interface ByteValuesMappublic boolean equals(Object otherMap)
equals in interface ByteByteMapequals in class Objectpublic int hashCode()
hashCode in interface ByteByteMaphashCode in class Objectpublic String toString()
toString in interface ByteByteMaptoString in interface PrimitiveIterabletoString in class Objectpublic String makeString()
makeString in interface PrimitiveIterablepublic String makeString(String separator)
makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface PrimitiveIterablepublic <T> T injectInto(T injectedValue,
ObjectByteToObjectFunction<? super T,? extends T> function)
injectInto in interface ByteIterablepublic RichIterable<ByteIterable> chunk(int size)
chunk in interface ByteIterableCopyright © 2004–2022. All rights reserved.