public class IndexData
extends java.lang.Object
Constructor and Description |
---|
IndexData(int count)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes(int index) |
int |
getCount()
Returns the count value.
|
int |
getOffset(int index)
Returns the offset at the given index.
|
void |
initData(int dataSize)
Initializes the data array with the given size.
|
void |
setData(int index,
int value)
Sets the data value to the given value.
|
void |
setOffset(int index,
int value)
Sets the offset value to the given value.
|
java.lang.String |
toString() |
public IndexData(int count)
count
- number of index valuespublic byte[] getBytes(int index)
public java.lang.String toString()
toString
in class java.lang.Object
public int getCount()
public void setOffset(int index, int value)
index
- the index of the offset valuevalue
- the given offset valuepublic int getOffset(int index)
index
- the indexpublic void initData(int dataSize)
dataSize
- the size of the data arraypublic void setData(int index, int value)
index
- the index of the data valuevalue
- the given data value