public class MemoryIntegerList extends Object implements ISimpleList
getRange(int, int).| Constructor and Description |
|---|
MemoryIntegerList(BinaryReader reader)
Constructs a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
get(int index)
Returns the value in the list at the index provided.
|
List<Integer> |
getRange(int index,
int count)
Returns the values in the list starting at the index provided.
|
void |
read(BinaryReader reader)
Reads the list into memory.
|
int |
size() |
protected final Integer[] array
public MemoryIntegerList(BinaryReader reader)
reader - BinaryReader connected to the source data structure and
positioned to start reading.public void read(BinaryReader reader)
reader - BinaryReader connected to the source data structure and
positioned to start reading.public int get(int index)
ISimpleListget in interface ISimpleListindex - of the value required.public List<Integer> getRange(int index, int count)
ISimpleListgetRange in interface ISimpleListindex - first index of the range required.count - number of elements to return.public int size()
size in interface ISimpleListCopyright © 2017 51Degrees. All rights reserved.