public class IndexData extends 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.
|
String |
toString() |
public IndexData(int count)
count - number of index valuespublic byte[] getBytes(int index)
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 valueCopyright © 2008–2018 The Apache Software Foundation. All rights reserved.