Class LongByteHashMap
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractByteIterable
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableByteValuesMap
-
- org.eclipse.collections.impl.map.mutable.primitive.LongByteHashMap
-
- All Implemented Interfaces:
Externalizable,Serializable,ByteIterable,ByteValuesMap,LongByteMap,MutableByteValuesMap,MutableLongByteMap,PrimitiveIterable,MutableLongKeysMap,LongKeysMap
public class LongByteHashMap extends AbstractMutableByteValuesMap implements MutableLongByteMap, Externalizable, MutableLongKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LongByteHashMap()LongByteHashMap(int initialCapacity)LongByteHashMap(LongByteMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description byteaddToValue(long key, byte toBeAdded)MutableLongByteMapasSynchronized()MutableLongByteMapasUnmodifiable()MutableByteIteratorbyteIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(long key)booleanequals(Object obj)MutableByteLongMapflipUniqueValues()voidforEachKey(LongProcedure procedure)voidforEachKeyValue(LongByteProcedure procedure)byteget(long key)bytegetAndPut(long key, byte putValue, byte defaultValue)bytegetIfAbsent(long key, byte ifAbsent)bytegetIfAbsentPut(long key, byte value)bytegetIfAbsentPut(long key, ByteFunction0 function)<P> bytegetIfAbsentPutWith(long key, ByteFunction<? super P> function, P parameter)bytegetIfAbsentPutWithKey(long key, LongToByteFunction function)bytegetOrThrow(long key)inthashCode()<V> VinjectInto(V injectedValue, ObjectByteToObjectFunction<? super V,? extends V> function)MutableLongSetkeySet()LazyLongIterablekeysView()RichIterable<LongBytePair>keyValuesView()static LongByteHashMapnewWithKeysValues(long key1, byte value1)static LongByteHashMapnewWithKeysValues(long key1, byte value1, long key2, byte value2)static LongByteHashMapnewWithKeysValues(long key1, byte value1, long key2, byte value2, long key3, byte value3)static LongByteHashMapnewWithKeysValues(long key1, byte value1, long key2, byte value2, long key3, byte value3, long key4, byte value4)voidput(long key, byte value)voidputAll(LongByteMap map)voidreadExternal(ObjectInput in)LongByteHashMapreject(LongBytePredicate predicate)voidremove(long key)voidremoveKey(long key)byteremoveKeyIfAbsent(long key, byte value)LongByteHashMapselect(LongBytePredicate predicate)ImmutableLongByteMaptoImmutable()StringtoString()booleantrimToSize()byteupdateValue(long key, byte initialValueIfAbsent, ByteToByteFunction function)voidupdateValues(LongByteToByteFunction function)MutableByteCollectionvalues()LongByteHashMapwithKeysValues(long key1, byte value1, long key2, byte value2)LongByteHashMapwithKeysValues(long key1, byte value1, long key2, byte value2, long key3, byte value3)LongByteHashMapwithKeysValues(long key1, byte value1, long key2, byte value2, long key3, byte value3, long key4, byte value4)LongByteHashMapwithKeyValue(long key1, byte value1)LongByteHashMapwithoutAllKeys(LongIterable keys)LongByteHashMapwithoutKey(long key)voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableByteValuesMap
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.AbstractByteIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods inherited from interface org.eclipse.collections.api.ByteIterable
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.ByteValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.LongByteMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.LongKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongByteMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
LongByteHashMap
public LongByteHashMap()
-
LongByteHashMap
public LongByteHashMap(int initialCapacity)
-
LongByteHashMap
public LongByteHashMap(LongByteMap map)
-
-
Method Detail
-
newWithKeysValues
public static LongByteHashMap newWithKeysValues(long key1, byte value1)
-
newWithKeysValues
public static LongByteHashMap newWithKeysValues(long key1, byte value1, long key2, byte value2)
-
newWithKeysValues
public static LongByteHashMap newWithKeysValues(long key1, byte value1, long key2, byte value2, long key3, byte value3)
-
newWithKeysValues
public static LongByteHashMap newWithKeysValues(long key1, byte value1, long key2, byte value2, long key3, byte value3, long key4, byte value4)
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceLongByteMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceLongByteMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceLongByteMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractByteIterable
-
byteIterator
public MutableByteIterator byteIterator()
- Specified by:
byteIteratorin interfaceByteIterable- Specified by:
byteIteratorin interfaceMutableByteValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectByteToObjectFunction<? super V,? extends V> function)- Specified by:
injectIntoin interfaceByteIterable
-
clear
public void clear()
- Specified by:
clearin interfaceMutableByteValuesMap- Specified by:
clearin interfaceMutableLongKeysMap
-
put
public void put(long key, byte value)- Specified by:
putin interfaceMutableLongByteMap
-
putAll
public void putAll(LongByteMap map)
- Specified by:
putAllin interfaceMutableLongByteMap
-
updateValues
public void updateValues(LongByteToByteFunction function)
- Specified by:
updateValuesin interfaceMutableLongByteMap
-
removeKey
public void removeKey(long key)
- Specified by:
removeKeyin interfaceMutableLongByteMap- Specified by:
removeKeyin interfaceMutableLongKeysMap
-
remove
public void remove(long key)
- Specified by:
removein interfaceMutableLongByteMap
-
removeKeyIfAbsent
public byte removeKeyIfAbsent(long key, byte value)- Specified by:
removeKeyIfAbsentin interfaceMutableLongByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(long key, byte value)- Specified by:
getIfAbsentPutin interfaceMutableLongByteMap
-
getAndPut
public byte getAndPut(long key, byte putValue, byte defaultValue)- Specified by:
getAndPutin interfaceMutableLongByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(long key, ByteFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableLongByteMap
-
getIfAbsentPutWith
public <P> byte getIfAbsentPutWith(long key, ByteFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableLongByteMap
-
getIfAbsentPutWithKey
public byte getIfAbsentPutWithKey(long key, LongToByteFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableLongByteMap
-
addToValue
public byte addToValue(long key, byte toBeAdded)- Specified by:
addToValuein interfaceMutableLongByteMap
-
updateValue
public byte updateValue(long key, byte initialValueIfAbsent, ByteToByteFunction function)- Specified by:
updateValuein interfaceMutableLongByteMap
-
withKeyValue
public LongByteHashMap withKeyValue(long key1, byte value1)
- Specified by:
withKeyValuein interfaceMutableLongByteMap
-
withKeysValues
public LongByteHashMap withKeysValues(long key1, byte value1, long key2, byte value2)
-
withKeysValues
public LongByteHashMap withKeysValues(long key1, byte value1, long key2, byte value2, long key3, byte value3)
-
withKeysValues
public LongByteHashMap withKeysValues(long key1, byte value1, long key2, byte value2, long key3, byte value3, long key4, byte value4)
-
withoutKey
public LongByteHashMap withoutKey(long key)
- Specified by:
withoutKeyin interfaceMutableLongByteMap
-
withoutAllKeys
public LongByteHashMap withoutAllKeys(LongIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableLongByteMap
-
asUnmodifiable
public MutableLongByteMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableLongByteMap
-
asSynchronized
public MutableLongByteMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableLongByteMap
-
toImmutable
public ImmutableLongByteMap toImmutable()
- Specified by:
toImmutablein interfaceLongByteMap
-
get
public byte get(long key)
- Specified by:
getin interfaceLongByteMap
-
getIfAbsent
public byte getIfAbsent(long key, byte ifAbsent)- Specified by:
getIfAbsentin interfaceLongByteMap
-
getOrThrow
public byte getOrThrow(long key)
- Specified by:
getOrThrowin interfaceLongByteMap
-
containsKey
public boolean containsKey(long key)
- Specified by:
containsKeyin interfaceLongByteMap- Specified by:
containsKeyin interfaceLongKeysMap
-
forEachKey
public void forEachKey(LongProcedure procedure)
- Specified by:
forEachKeyin interfaceLongByteMap- Specified by:
forEachKeyin interfaceLongKeysMap
-
forEachKeyValue
public void forEachKeyValue(LongByteProcedure procedure)
- Specified by:
forEachKeyValuein interfaceLongByteMap
-
keysView
public LazyLongIterable keysView()
- Specified by:
keysViewin interfaceLongByteMap
-
keyValuesView
public RichIterable<LongBytePair> keyValuesView()
- Specified by:
keyValuesViewin interfaceLongByteMap
-
flipUniqueValues
public MutableByteLongMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceLongByteMap- Specified by:
flipUniqueValuesin interfaceMutableLongByteMap
-
select
public LongByteHashMap select(LongBytePredicate predicate)
- Specified by:
selectin interfaceLongByteMap- Specified by:
selectin interfaceMutableLongByteMap
-
reject
public LongByteHashMap reject(LongBytePredicate predicate)
- Specified by:
rejectin interfaceLongByteMap- Specified by:
rejectin interfaceMutableLongByteMap
-
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 MutableLongSet keySet()
- Specified by:
keySetin interfaceLongByteMap
-
values
public MutableByteCollection values()
- Specified by:
valuesin interfaceByteValuesMap
-
-