public final class LongArray extends Object implements com.hazelcast.nio.Disposable
| Constructor and Description |
|---|
LongArray(com.hazelcast.internal.memory.MemoryManager memMgr,
long length) |
| Modifier and Type | Method and Description |
|---|---|
long |
address() |
void |
dispose() |
void |
expand(long newLength)
Expands array to new length
|
long |
get(long index)
Returns array element at specified index.
|
long |
length()
Returns length of array
|
void |
set(long index,
long value)
Writes value to specified index of array.
|
public LongArray(com.hazelcast.internal.memory.MemoryManager memMgr,
long length)
memMgr - memory allocatorlength - length of arraypublic long get(long index)
index - index of elementpublic void set(long index,
long value)
index - index to write valuevalue - valuepublic void expand(long newLength)
newLength - new lengthpublic long address()
public long length()
public void dispose()
dispose in interface com.hazelcast.nio.DisposableCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.