public final class DoubleBigArray extends Object
| Constructor and Description |
|---|
DoubleBigArray()
Creates a new big array containing one initial segment
|
DoubleBigArray(double 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,
double 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.
|
double |
get(long index)
Returns the element of this big array at specified index.
|
void |
set(long index,
double value)
Sets the element of this big array at specified index.
|
long |
sizeOf()
Returns the size of this big array in bytes.
|
public DoubleBigArray()
public DoubleBigArray(double initialValue)
public long sizeOf()
public double get(long index)
index - a position in this big array.public void set(long index,
double value)
index - a position in this big array.public void add(long index,
double value)
index - a position in this big array.value - the valuepublic void ensureCapacity(long length)
Copyright © 2012–2022. All rights reserved.