|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkrati.core.array.basic.MemoryLongArray
public class MemoryLongArray
Field Summary | |
---|---|
protected boolean |
_autoExpand
|
protected int |
_subArrayBits
|
protected int |
_subArrayMask
|
protected long[][] |
_subArrays
|
protected int |
_subArraySize
|
Constructor Summary | |
---|---|
MemoryLongArray()
|
|
MemoryLongArray(int subArrayBits)
|
|
MemoryLongArray(int subArrayBits,
boolean autoExpand)
|
Method Summary | |
---|---|
void |
clear()
Clears this Array. |
void |
expandCapacity(int index)
Expands the capacity of array to accommodate a given index. |
long |
get(int index)
Gets data at a specified index. |
protected ArrayExpandListener |
getArrayExpandListener()
|
long[] |
getInternalArray()
Gets the internal primitive array. |
boolean |
hasIndex(int index)
|
int |
length()
|
void |
set(int index,
long value)
|
void |
set(int index,
long value,
long scn)
Sets data at a specified index. |
protected void |
setArrayExpandListener(ArrayExpandListener listener)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long[][] _subArrays
protected final int _subArrayBits
protected final int _subArraySize
protected final int _subArrayMask
protected final boolean _autoExpand
Constructor Detail |
---|
public MemoryLongArray() throws Exception
Exception
public MemoryLongArray(int subArrayBits) throws Exception
Exception
public MemoryLongArray(int subArrayBits, boolean autoExpand) throws Exception
Exception
Method Detail |
---|
public void clear()
Array
clear
in interface Array
public int length()
length
in interface Array
public boolean hasIndex(int index)
hasIndex
in interface Array
public long get(int index)
LongArray
get
in interface LongArray
public void set(int index, long value)
public void set(int index, long value, long scn)
LongArray
set
in interface LongArray
public void expandCapacity(int index)
DynamicArray
expandCapacity
in interface DynamicArray
index
- an index in the arraypublic long[] getInternalArray()
LongArray
getInternalArray
in interface LongArray
protected void setArrayExpandListener(ArrayExpandListener listener)
protected ArrayExpandListener getArrayExpandListener()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |