Class ByteLongHashMap
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractLongIterable
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableLongValuesMap
-
- org.eclipse.collections.impl.map.mutable.primitive.ByteLongHashMap
-
- All Implemented Interfaces:
Externalizable,Serializable,LongIterable,ByteLongMap,LongValuesMap,MutableByteLongMap,MutableLongValuesMap,PrimitiveIterable,MutableByteKeysMap,ByteKeysMap
public class ByteLongHashMap extends AbstractMutableLongValuesMap implements MutableByteLongMap, Externalizable, MutableByteKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ByteLongHashMap()ByteLongHashMap(int initialCapacity)ByteLongHashMap(ByteLongMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longaddToValue(byte key, long toBeAdded)MutableByteLongMapasSynchronized()MutableByteLongMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(byte key)booleanequals(Object obj)MutableLongByteMapflipUniqueValues()voidforEachKey(ByteProcedure procedure)voidforEachKeyValue(ByteLongProcedure 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()<V> VinjectInto(V injectedValue, ObjectLongToObjectFunction<? super V,? extends V> function)MutableByteSetkeySet()LazyByteIterablekeysView()RichIterable<ByteLongPair>keyValuesView()MutableLongIteratorlongIterator()static ByteLongHashMapnewWithKeysValues(byte key1, long value1)static ByteLongHashMapnewWithKeysValues(byte key1, long value1, byte key2, long value2)static ByteLongHashMapnewWithKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3)static ByteLongHashMapnewWithKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3, byte key4, long value4)voidput(byte key, long value)voidputAll(ByteLongMap map)voidreadExternal(ObjectInput in)ByteLongHashMapreject(ByteLongPredicate predicate)voidremove(byte key)voidremoveKey(byte key)longremoveKeyIfAbsent(byte key, long value)ByteLongHashMapselect(ByteLongPredicate predicate)ImmutableByteLongMaptoImmutable()StringtoString()booleantrimToSize()longupdateValue(byte key, long initialValueIfAbsent, LongToLongFunction function)voidupdateValues(ByteLongToLongFunction function)MutableLongCollectionvalues()ByteLongHashMapwithKeysValues(byte key1, long value1, byte key2, long value2)ByteLongHashMapwithKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3)ByteLongHashMapwithKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3, byte key4, long value4)ByteLongHashMapwithKeyValue(byte key1, long value1)ByteLongHashMapwithoutAllKeys(ByteIterable keys)ByteLongHashMapwithoutKey(byte key)voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableLongValuesMap
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEachValue, isEmpty, max, min, notEmpty, reject, select, size, sum, toArray, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractLongIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.ByteKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ByteLongMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.LongIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.LongValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteLongMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
ByteLongHashMap
public ByteLongHashMap()
-
ByteLongHashMap
public ByteLongHashMap(int initialCapacity)
-
ByteLongHashMap
public ByteLongHashMap(ByteLongMap map)
-
-
Method Detail
-
newWithKeysValues
public static ByteLongHashMap newWithKeysValues(byte key1, long value1)
-
newWithKeysValues
public static ByteLongHashMap newWithKeysValues(byte key1, long value1, byte key2, long value2)
-
newWithKeysValues
public static ByteLongHashMap newWithKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3)
-
newWithKeysValues
public static ByteLongHashMap newWithKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3, byte key4, long value4)
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceByteLongMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceByteLongMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceByteLongMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractLongIterable
-
longIterator
public MutableLongIterator longIterator()
- Specified by:
longIteratorin interfaceLongIterable- Specified by:
longIteratorin interfaceMutableLongValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectLongToObjectFunction<? super V,? extends V> function)- Specified by:
injectIntoin interfaceLongIterable
-
clear
public void clear()
- Specified by:
clearin interfaceMutableByteKeysMap- Specified by:
clearin interfaceMutableLongValuesMap
-
put
public void put(byte key, long value)- Specified by:
putin interfaceMutableByteLongMap
-
putAll
public void putAll(ByteLongMap map)
- Specified by:
putAllin interfaceMutableByteLongMap
-
updateValues
public void updateValues(ByteLongToLongFunction function)
- Specified by:
updateValuesin interfaceMutableByteLongMap
-
removeKey
public void removeKey(byte key)
- Specified by:
removeKeyin interfaceMutableByteKeysMap- 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
public long getIfAbsentPut(byte key, LongFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableByteLongMap
-
getIfAbsentPutWith
public <P> long getIfAbsentPutWith(byte key, LongFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableByteLongMap
-
getIfAbsentPutWithKey
public long getIfAbsentPutWithKey(byte key, ByteToLongFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableByteLongMap
-
addToValue
public long addToValue(byte key, long toBeAdded)- Specified by:
addToValuein interfaceMutableByteLongMap
-
updateValue
public long updateValue(byte key, long initialValueIfAbsent, LongToLongFunction function)- Specified by:
updateValuein interfaceMutableByteLongMap
-
withKeyValue
public ByteLongHashMap withKeyValue(byte key1, long value1)
- Specified by:
withKeyValuein interfaceMutableByteLongMap
-
withKeysValues
public ByteLongHashMap withKeysValues(byte key1, long value1, byte key2, long value2)
-
withKeysValues
public ByteLongHashMap withKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3)
-
withKeysValues
public ByteLongHashMap withKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3, byte key4, long value4)
-
withoutKey
public ByteLongHashMap withoutKey(byte key)
- Specified by:
withoutKeyin interfaceMutableByteLongMap
-
withoutAllKeys
public ByteLongHashMap withoutAllKeys(ByteIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableByteLongMap
-
asUnmodifiable
public MutableByteLongMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableByteLongMap
-
asSynchronized
public MutableByteLongMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableByteLongMap
-
toImmutable
public ImmutableByteLongMap toImmutable()
- Specified by:
toImmutablein interfaceByteLongMap
-
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 interfaceByteKeysMap- Specified by:
containsKeyin interfaceByteLongMap
-
forEachKey
public void forEachKey(ByteProcedure procedure)
- Specified by:
forEachKeyin interfaceByteKeysMap- Specified by:
forEachKeyin interfaceByteLongMap
-
forEachKeyValue
public void forEachKeyValue(ByteLongProcedure procedure)
- Specified by:
forEachKeyValuein interfaceByteLongMap
-
keysView
public LazyByteIterable keysView()
- Specified by:
keysViewin interfaceByteLongMap
-
keyValuesView
public RichIterable<ByteLongPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceByteLongMap
-
flipUniqueValues
public MutableLongByteMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceByteLongMap- Specified by:
flipUniqueValuesin interfaceMutableByteLongMap
-
select
public ByteLongHashMap select(ByteLongPredicate predicate)
- Specified by:
selectin interfaceByteLongMap- Specified by:
selectin interfaceMutableByteLongMap
-
reject
public ByteLongHashMap reject(ByteLongPredicate predicate)
- Specified by:
rejectin interfaceByteLongMap- Specified by:
rejectin interfaceMutableByteLongMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
trimToSize
public boolean trimToSize()
- Since:
- 12.0
-
compact
@Deprecated public void compact()
Deprecated.since 12.0 - UsetrimToSize()insteadRehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
-
keySet
public MutableByteSet keySet()
- Specified by:
keySetin interfaceByteLongMap
-
values
public MutableLongCollection values()
- Specified by:
valuesin interfaceLongValuesMap
-
-