public class SynchronizedLongIntMap extends Object implements MutableLongIntMap, Serializable
MutableLongIntMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
MutableIntIterator as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
MutableLongIntMap.asSynchronized(),
MutableMap.asSynchronized(),
Serialized Form| Constructor and Description |
|---|
SynchronizedLongIntMap(MutableLongIntMap map) |
SynchronizedLongIntMap(MutableLongIntMap 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 SynchronizedLongIntMap(MutableLongIntMap map)
public SynchronizedLongIntMap(MutableLongIntMap map, Object newLock)
public void clear()
clear in interface MutableIntValuesMappublic void put(long key,
int value)
put in interface MutableLongIntMappublic void putPair(LongIntPair keyValuePair)
putPair in interface MutableLongIntMappublic void putAll(LongIntMap map)
putAll in interface MutableLongIntMappublic void updateValues(LongIntToIntFunction function)
updateValues in interface MutableLongIntMappublic void removeKey(long key)
removeKey in interface MutableLongIntMappublic void remove(long key)
remove in interface MutableLongIntMappublic int removeKeyIfAbsent(long key,
int value)
removeKeyIfAbsent in interface MutableLongIntMappublic int getIfAbsentPut(long key,
int value)
getIfAbsentPut in interface MutableLongIntMappublic int getAndPut(long key,
int putValue,
int defaultValue)
getAndPut in interface MutableLongIntMappublic int getIfAbsentPut(long key,
IntFunction0 function)
getIfAbsentPut in interface MutableLongIntMappublic int getIfAbsentPutWithKey(long key,
LongToIntFunction function)
getIfAbsentPutWithKey in interface MutableLongIntMappublic <P> int getIfAbsentPutWith(long key,
IntFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableLongIntMappublic int updateValue(long key,
int initialValueIfAbsent,
IntToIntFunction function)
updateValue in interface MutableLongIntMappublic int get(long key)
get in interface LongIntMappublic int getIfAbsent(long key,
int ifAbsent)
getIfAbsent in interface LongIntMappublic int getOrThrow(long key)
getOrThrow in interface LongIntMappublic boolean containsKey(long key)
containsKey in interface LongIntMappublic boolean containsValue(int value)
containsValue in interface IntValuesMappublic void forEachValue(IntProcedure procedure)
forEachValue in interface IntValuesMappublic void forEachKey(LongProcedure procedure)
forEachKey in interface LongIntMappublic void forEachKeyValue(LongIntProcedure procedure)
forEachKeyValue in interface LongIntMappublic LazyLongIterable keysView()
keysView in interface LongIntMappublic RichIterable<LongIntPair> keyValuesView()
keyValuesView in interface LongIntMappublic MutableIntLongMap flipUniqueValues()
flipUniqueValues in interface LongIntMapflipUniqueValues in interface MutableLongIntMappublic MutableLongIntMap select(LongIntPredicate predicate)
select in interface LongIntMapselect in interface MutableLongIntMappublic MutableLongIntMap reject(LongIntPredicate predicate)
reject in interface LongIntMapreject in interface MutableLongIntMappublic MutableIntIterator intIterator()
intIterator in interface IntIterableintIterator in interface MutableIntValuesMappublic void each(IntProcedure procedure)
each in interface IntIterablepublic int count(IntPredicate predicate)
count in interface IntIterablepublic boolean anySatisfy(IntPredicate predicate)
anySatisfy in interface IntIterablepublic boolean allSatisfy(IntPredicate predicate)
allSatisfy in interface IntIterablepublic boolean noneSatisfy(IntPredicate predicate)
noneSatisfy in interface IntIterablepublic MutableIntBag select(IntPredicate predicate)
select in interface IntIterableselect in interface IntValuesMapselect in interface MutableIntValuesMappublic MutableIntBag reject(IntPredicate predicate)
reject in interface IntIterablereject in interface IntValuesMapreject in interface MutableIntValuesMappublic <V> MutableBag<V> collect(IntToObjectFunction<? extends V> function)
collect in interface IntIterablecollect in interface IntValuesMapcollect in interface MutableIntValuesMappublic int detectIfNone(IntPredicate predicate, int ifNone)
detectIfNone in interface IntIterablepublic long sum()
sum in interface IntIterablepublic int max()
max in interface IntIterablepublic int maxIfEmpty(int defaultValue)
maxIfEmpty in interface IntIterablepublic int min()
min in interface IntIterablepublic int minIfEmpty(int defaultValue)
minIfEmpty in interface IntIterablepublic double average()
average in interface IntIterablepublic double median()
median in interface IntIterablepublic int addToValue(long key,
int toBeAdded)
addToValue in interface MutableLongIntMappublic int[] toSortedArray()
toSortedArray in interface IntIterablepublic MutableIntList toSortedList()
toSortedList in interface IntIterablepublic int[] toArray()
toArray in interface IntIterablepublic int[] toArray(int[] target)
toArray in interface IntIterablepublic boolean contains(int value)
contains in interface IntIterablepublic boolean containsAll(int... source)
containsAll in interface IntIterablepublic boolean containsAll(IntIterable source)
containsAll in interface IntIterablepublic MutableIntList toList()
toList in interface IntIterablepublic MutableIntSet toSet()
toSet in interface IntIterablepublic MutableIntBag toBag()
toBag in interface IntIterablepublic LazyIntIterable asLazy()
asLazy in interface IntIterablepublic MutableLongIntMap withKeyValue(long key, int value)
withKeyValue in interface MutableLongIntMappublic MutableLongIntMap withoutKey(long key)
withoutKey in interface MutableLongIntMappublic MutableLongIntMap withoutAllKeys(LongIterable keys)
withoutAllKeys in interface MutableLongIntMappublic MutableLongIntMap asUnmodifiable()
asUnmodifiable in interface MutableLongIntMappublic MutableLongIntMap asSynchronized()
asSynchronized in interface MutableLongIntMappublic ImmutableLongIntMap toImmutable()
toImmutable in interface LongIntMappublic int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic MutableLongSet keySet()
keySet in interface LongIntMappublic MutableIntCollection values()
values in interface IntValuesMappublic boolean equals(Object otherMap)
equals in interface LongIntMapequals in class Objectpublic int hashCode()
hashCode in interface LongIntMaphashCode in class Objectpublic String toString()
toString in interface LongIntMaptoString 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,
ObjectIntToObjectFunction<? super T,? extends T> function)
injectInto in interface IntIterablepublic RichIterable<IntIterable> chunk(int size)
chunk in interface IntIterableCopyright © 2004–2022. All rights reserved.