|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfiftyone.mobile.detection.entities.BaseEntity
public class BaseEntity
Common properties and methods for all data types contained in the data set.
| Field Summary | |
|---|---|
private Dataset |
dataSet
The data set the item relates to. |
private int |
offsetOrIndex
The unique index of the item in the collection of items, or the unique offset to the item in the source data structure. |
| Constructor Summary | |
|---|---|
BaseEntity(Dataset dataSet,
int offsetOrIndex)
Constructs the base item for the data set and index provided. |
|
| Method Summary | |
|---|---|
protected int |
binarySearch(BaseEntity[] list,
int indexOrOffset)
Uses a divide and conquer method to search the ordered list of indexes. |
protected Dataset |
getDataSet()
|
int |
getIndex()
|
(package private) static int[] |
readIntegerArray(BinaryReader reader,
int count)
Reads an integer array where the first integer is the number of following integers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Dataset dataSet
private final int offsetOrIndex
| Constructor Detail |
|---|
BaseEntity(Dataset dataSet,
int offsetOrIndex)
dataSet - The data set the item is contained withinindex - The index of the item within the dataset| Method Detail |
|---|
protected int binarySearch(BaseEntity[] list,
int indexOrOffset)
list - List of entities to be searchedindexOrOffset - The index or offset to be sought
static int[] readIntegerArray(BinaryReader reader,
int count)
reader - Reader set to the position at the start of the listcount - The number of integers to read to form the array
protected Dataset getDataSet()
public int getIndex()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||