public class DataSetData
extends Object
implements Serializable
DataSet
,
DataSetRecord
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
DataSetData.SortType
Sort types.
|
Constructor and Description |
---|
DataSetData()
Instantiates a new DataSetData.
|
Modifier and Type | Method and Description |
---|---|
void |
add(DataSetRecord value)
Adds the record.
|
void |
add(int index,
DataSetRecord value)
Adds the record at the index.
|
void |
addAll(DataSetData data)
Add all rows from the other DataSetData object.
|
void |
clear()
Clears data.
|
DataSetData |
copy()
Create copy of the data.
|
DataSetRecord |
delete(int index)
Deletes record at the index.
|
DataSetRecord |
get(int index)
Gets the record for the index.
|
List<DataSetRecord> |
getData()
Gets the data.
|
boolean |
isEmpty()
Checks if it is empty.
|
void |
set(int index,
DataSetRecord value)
Sets the record at the index.
|
int |
size()
Gets the number of records.
|
void |
sort(List<TypedKeyValue<Integer,DataSetData.SortType>> orderBy,
List<FieldDef> fields)
Sorts data using given order by list with field indexes.
|
public void add(DataSetRecord value)
value
- the recordpublic void add(int index, DataSetRecord value)
index
- the indexvalue
- the recordpublic void addAll(DataSetData data)
data
- the DataSetData objectpublic void clear()
public DataSetData copy()
public DataSetRecord delete(int index)
index
- the index of the recordpublic DataSetRecord get(int index)
index
- the indexpublic List<DataSetRecord> getData()
public boolean isEmpty()
public void set(int index, DataSetRecord value)
index
- the indexvalue
- the recordpublic int size()
public void sort(List<TypedKeyValue<Integer,DataSetData.SortType>> orderBy, List<FieldDef> fields)
orderBy
- the order by listfields
- the fieldsCopyright © 2010-2020 Toolsverse. All Rights Reserved.