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 byte
addToValue(long key, byte toBeAdded)
MutableLongByteMap
asSynchronized()
MutableLongByteMap
asUnmodifiable()
MutableByteIterator
byteIterator()
void
clear()
void
compact()
Deprecated.since 12.0 - UsetrimToSize()
insteadboolean
containsKey(long key)
boolean
equals(Object obj)
MutableByteLongMap
flipUniqueValues()
void
forEachKey(LongProcedure procedure)
void
forEachKeyValue(LongByteProcedure procedure)
byte
get(long key)
byte
getAndPut(long key, byte putValue, byte defaultValue)
byte
getIfAbsent(long key, byte ifAbsent)
byte
getIfAbsentPut(long key, byte value)
byte
getIfAbsentPut(long key, ByteFunction0 function)
<P> byte
getIfAbsentPutWith(long key, ByteFunction<? super P> function, P parameter)
byte
getIfAbsentPutWithKey(long key, LongToByteFunction function)
byte
getOrThrow(long key)
int
hashCode()
<V> V
injectInto(V injectedValue, ObjectByteToObjectFunction<? super V,? extends V> function)
MutableLongSet
keySet()
LazyLongIterable
keysView()
RichIterable<LongBytePair>
keyValuesView()
static LongByteHashMap
newWithKeysValues(long key1, byte value1)
static LongByteHashMap
newWithKeysValues(long key1, byte value1, long key2, byte value2)
static LongByteHashMap
newWithKeysValues(long key1, byte value1, long key2, byte value2, long key3, byte value3)
static LongByteHashMap
newWithKeysValues(long key1, byte value1, long key2, byte value2, long key3, byte value3, long key4, byte value4)
void
put(long key, byte value)
void
putAll(LongByteMap map)
void
readExternal(ObjectInput in)
LongByteHashMap
reject(LongBytePredicate predicate)
void
remove(long key)
void
removeKey(long key)
byte
removeKeyIfAbsent(long key, byte value)
LongByteHashMap
select(LongBytePredicate predicate)
ImmutableLongByteMap
toImmutable()
String
toString()
boolean
trimToSize()
byte
updateValue(long key, byte initialValueIfAbsent, ByteToByteFunction function)
void
updateValues(LongByteToByteFunction function)
MutableByteCollection
values()
LongByteHashMap
withKeysValues(long key1, byte value1, long key2, byte value2)
LongByteHashMap
withKeysValues(long key1, byte value1, long key2, byte value2, long key3, byte value3)
LongByteHashMap
withKeysValues(long key1, byte value1, long key2, byte value2, long key3, byte value3, long key4, byte value4)
LongByteHashMap
withKeyValue(long key1, byte value1)
LongByteHashMap
withoutAllKeys(LongIterable keys)
LongByteHashMap
withoutKey(long key)
void
writeExternal(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:
equals
in interfaceLongByteMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceLongByteMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceLongByteMap
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classAbstractByteIterable
-
byteIterator
public MutableByteIterator byteIterator()
- Specified by:
byteIterator
in interfaceByteIterable
- Specified by:
byteIterator
in interfaceMutableByteValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectByteToObjectFunction<? super V,? extends V> function)
- Specified by:
injectInto
in interfaceByteIterable
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableByteValuesMap
- Specified by:
clear
in interfaceMutableLongKeysMap
-
put
public void put(long key, byte value)
- Specified by:
put
in interfaceMutableLongByteMap
-
putAll
public void putAll(LongByteMap map)
- Specified by:
putAll
in interfaceMutableLongByteMap
-
updateValues
public void updateValues(LongByteToByteFunction function)
- Specified by:
updateValues
in interfaceMutableLongByteMap
-
removeKey
public void removeKey(long key)
- Specified by:
removeKey
in interfaceMutableLongByteMap
- Specified by:
removeKey
in interfaceMutableLongKeysMap
-
remove
public void remove(long key)
- Specified by:
remove
in interfaceMutableLongByteMap
-
removeKeyIfAbsent
public byte removeKeyIfAbsent(long key, byte value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableLongByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(long key, byte value)
- Specified by:
getIfAbsentPut
in interfaceMutableLongByteMap
-
getAndPut
public byte getAndPut(long key, byte putValue, byte defaultValue)
- Specified by:
getAndPut
in interfaceMutableLongByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(long key, ByteFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableLongByteMap
-
getIfAbsentPutWith
public <P> byte getIfAbsentPutWith(long key, ByteFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableLongByteMap
-
getIfAbsentPutWithKey
public byte getIfAbsentPutWithKey(long key, LongToByteFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableLongByteMap
-
addToValue
public byte addToValue(long key, byte toBeAdded)
- Specified by:
addToValue
in interfaceMutableLongByteMap
-
updateValue
public byte updateValue(long key, byte initialValueIfAbsent, ByteToByteFunction function)
- Specified by:
updateValue
in interfaceMutableLongByteMap
-
withKeyValue
public LongByteHashMap withKeyValue(long key1, byte value1)
- Specified by:
withKeyValue
in 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:
withoutKey
in interfaceMutableLongByteMap
-
withoutAllKeys
public LongByteHashMap withoutAllKeys(LongIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableLongByteMap
-
asUnmodifiable
public MutableLongByteMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableLongByteMap
-
asSynchronized
public MutableLongByteMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableLongByteMap
-
toImmutable
public ImmutableLongByteMap toImmutable()
- Specified by:
toImmutable
in interfaceLongByteMap
-
get
public byte get(long key)
- Specified by:
get
in interfaceLongByteMap
-
getIfAbsent
public byte getIfAbsent(long key, byte ifAbsent)
- Specified by:
getIfAbsent
in interfaceLongByteMap
-
getOrThrow
public byte getOrThrow(long key)
- Specified by:
getOrThrow
in interfaceLongByteMap
-
containsKey
public boolean containsKey(long key)
- Specified by:
containsKey
in interfaceLongByteMap
- Specified by:
containsKey
in interfaceLongKeysMap
-
forEachKey
public void forEachKey(LongProcedure procedure)
- Specified by:
forEachKey
in interfaceLongByteMap
- Specified by:
forEachKey
in interfaceLongKeysMap
-
forEachKeyValue
public void forEachKeyValue(LongByteProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceLongByteMap
-
keysView
public LazyLongIterable keysView()
- Specified by:
keysView
in interfaceLongByteMap
-
keyValuesView
public RichIterable<LongBytePair> keyValuesView()
- Specified by:
keyValuesView
in interfaceLongByteMap
-
flipUniqueValues
public MutableByteLongMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceLongByteMap
- Specified by:
flipUniqueValues
in interfaceMutableLongByteMap
-
select
public LongByteHashMap select(LongBytePredicate predicate)
- Specified by:
select
in interfaceLongByteMap
- Specified by:
select
in interfaceMutableLongByteMap
-
reject
public LongByteHashMap reject(LongBytePredicate predicate)
- Specified by:
reject
in interfaceLongByteMap
- Specified by:
reject
in interfaceMutableLongByteMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
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:
keySet
in interfaceLongByteMap
-
values
public MutableByteCollection values()
- Specified by:
values
in interfaceByteValuesMap
-
-