public class Dataset extends Object implements Serializable
Record,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
int |
index
Deprecated.
As of MobileFabric 7.3.2, instead use
getIndex() or
setIndex(int). |
| Constructor and Description |
|---|
Dataset()
Creates an empty Dataset.
|
Dataset(String id)
Creates an empty Dataset with given id.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllRecords(Collection<Record> recordsToAdd)
Adds all the Records to the Dataset.
|
void |
addRecord(Record record)
Adds a Record to the Dataset.
|
List<Record> |
getAllRecords()
Gets the read-only list of Records contained in the Dataset.
|
String |
getId()
Gets the unique id of the Dataset.
|
int |
getIndex()
Gets the index of the Dataset.
|
Record |
getRecord(int indexToGet)
Gets the Record at the specified index from the list of Records contained
in the Dataset.
|
Record |
getRecordOrder(int order)
Deprecated.
As of MobileFabric 7.3.2, this method is redundant as order is
not used anymore. To get Record by index, use
getRecord(int). |
ArrayList<Record> |
getRecords()
Deprecated.
As of MobileFabric 7.3.2, instead use
getAllRecords(). |
void |
setId(String id)
Sets the id for the Dataset.
|
void |
setIndex(int index)
Sets the index for the Dataset.
|
void |
setRecord(Record record)
Deprecated.
As of MobileFabric 7.3.2, instead use
addRecord(Record). |
void |
setRecords(ArrayList<Record> records)
Deprecated.
As of MobileFabric 7.3.2, instead use
addAllRecords(Collection). |
String |
toString() |
@Deprecated public int index
getIndex() or
setIndex(int).public Dataset()
public Dataset(String id)
id - The given idpublic String getId()
public void setId(String id)
id - The id to setpublic int getIndex()
public void setIndex(int index)
index - The index to set@Deprecated public ArrayList<Record> getRecords()
getAllRecords().Recordpublic List<Record> getAllRecords()
Record@Deprecated public void setRecords(ArrayList<Record> records)
addAllRecords(Collection).records - The list of Records to setRecord@Deprecated public void setRecord(Record record)
addRecord(Record).record - The Record to addRecordpublic void addRecord(Record record)
record - The Record to addRecordpublic void addAllRecords(Collection<Record> recordsToAdd)
recordsToAdd - The Records to addRecordpublic Record getRecord(int indexToGet)
indexToGet - The index to getRecord@Deprecated public Record getRecordOrder(int order)
getRecord(int).order - The orderRecordCopyright © 2019. All rights reserved.