public class Long2LongMapHsa extends Object implements Long2LongMap
Long2LongMap
implemented in terms of a HashSlotArray8byteKey
.Constructor and Description |
---|
Long2LongMapHsa(long nullValue,
MemoryManager memMgr) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(long key) |
LongLongCursor |
cursor() |
void |
dispose() |
long |
get(long key) |
boolean |
isEmpty() |
long |
put(long key,
long value) |
void |
putAll(Long2LongMap from) |
long |
putIfAbsent(long key,
long value) |
long |
remove(long key) |
boolean |
remove(long key,
long value) |
long |
replace(long key,
long value) |
boolean |
replace(long key,
long oldValue,
long newValue) |
long |
size() |
public Long2LongMapHsa(long nullValue, MemoryManager memMgr)
nullValue
- the value that represents "null" or missing valuememMgr
- memory manager to use. It is safe for its MemoryManager.getAccessor()
method
to return an accessor that only supports aligned memory access.public long get(long key)
get
in interface Long2LongMap
public long put(long key, long value)
put
in interface Long2LongMap
public long putIfAbsent(long key, long value)
putIfAbsent
in interface Long2LongMap
public void putAll(Long2LongMap from)
putAll
in interface Long2LongMap
public boolean replace(long key, long oldValue, long newValue)
replace
in interface Long2LongMap
public long replace(long key, long value)
replace
in interface Long2LongMap
public long remove(long key)
remove
in interface Long2LongMap
public boolean remove(long key, long value)
remove
in interface Long2LongMap
public boolean containsKey(long key)
containsKey
in interface Long2LongMap
public long size()
size
in interface Long2LongMap
public boolean isEmpty()
isEmpty
in interface Long2LongMap
public void clear()
clear
in interface Long2LongMap
public void dispose()
dispose
in interface Long2LongMap
public LongLongCursor cursor()
cursor
in interface Long2LongMap
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.