public final class LongBigArray extends Object
| Constructor and Description |
|---|
LongBigArray()
Creates a new big array containing one initial segment
|
LongBigArray(long initialValue)
Creates a new big array containing one initial segment filled with the specified default value
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(long index,
long value)
Adds the specified value to the specified element of this big array.
|
void |
ensureCapacity(long length)
Ensures this big array is at least the specified length.
|
long |
get(long index)
Returns the element of this big array at specified index.
|
void |
increment(long index)
Increments the element of this big array at specified index.
|
void |
set(long index,
long value)
Sets the element of this big array at specified index.
|
long |
sizeOf()
Returns the size of this big array in bytes.
|
public LongBigArray()
public LongBigArray(long initialValue)
public long sizeOf()
public long get(long index)
index - a position in this big array.public void set(long index,
long value)
index - a position in this big array.public void increment(long index)
index - a position in this big array.public void add(long index,
long value)
index - a position in this big array.value - the valuepublic void ensureCapacity(long length)
Copyright © 2012–2022. All rights reserved.