|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkrati.core.array.basic.MemoryIntArray
public class MemoryIntArray
Field Summary | |
---|---|
protected boolean |
_autoExpand
|
protected int |
_subArrayBits
|
protected int |
_subArrayMask
|
protected int[][] |
_subArrays
|
protected int |
_subArraySize
|
Constructor Summary | |
---|---|
MemoryIntArray()
|
|
MemoryIntArray(int subArrayBits)
|
|
MemoryIntArray(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. |
int |
get(int index)
Gets data at a specified index. |
protected ArrayExpandListener |
getArrayExpandListener()
|
int[] |
getInternalArray()
Gets the internal primitive array. |
boolean |
hasIndex(int index)
|
int |
length()
|
void |
set(int index,
int value)
|
void |
set(int index,
int 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 int[][] _subArrays
protected final int _subArrayBits
protected final int _subArraySize
protected final int _subArrayMask
protected final boolean _autoExpand
Constructor Detail |
---|
public MemoryIntArray() throws Exception
Exception
public MemoryIntArray(int subArrayBits) throws Exception
Exception
public MemoryIntArray(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 int get(int index)
IntArray
get
in interface IntArray
public void set(int index, int value)
public void set(int index, int value, long scn) throws Exception
IntArray
set
in interface IntArray
Exception
public void expandCapacity(int index)
DynamicArray
expandCapacity
in interface DynamicArray
index
- an index in the arraypublic int[] getInternalArray()
IntArray
getInternalArray
in interface IntArray
protected void setArrayExpandListener(ArrayExpandListener listener)
protected ArrayExpandListener getArrayExpandListener()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |