public class RecordList extends Object implements Cloneable, Serializable, Iterable<Record>
Modifier and Type | Field and Description |
---|---|
static Logger |
log |
Constructor and Description |
---|
RecordList() |
RecordList(DataReader reader) |
RecordList(int initialCapacity) |
RecordList(Record... records) |
Modifier and Type | Method and Description |
---|---|
RecordList |
add(int index,
Record record) |
RecordList |
add(Record... records) |
RecordList |
addAll(Collection<Record> records) |
RecordList |
addAll(DataReader reader) |
RecordList |
addAll(RecordList recordList) |
void |
clear() |
RecordList |
clone() |
RecordList |
findAll(Filter filter) |
int |
findFirst(Filter filter,
int from) |
int |
findLast(Filter filter,
int from) |
Record |
get(int index) |
int |
getRecordCount()
Returns the number of records in this list -- an alias for
size() . |
List<Record> |
getRecords() |
long |
getSizeInBytes() |
boolean |
isEmpty() |
boolean |
isNotEmpty() |
Iterator<Record> |
iterator() |
RecordList |
move(int oldIndex,
int newIndex) |
RecordList |
set(int index,
Record record) |
int |
size()
Returns the number of records in this list.
|
RecordList |
sort(RecordComparator comparator) |
RecordList |
sort(RecordComparator comparator,
boolean cacheFieldIndexes) |
RecordList |
sublist(int fromIndex,
boolean cloneRecords) |
RecordList |
sublist(int fromIndex,
int toIndex,
boolean cloneRecords) |
String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public RecordList()
public RecordList(int initialCapacity)
public RecordList(Record... records)
public RecordList(DataReader reader)
public RecordList clone()
public int getRecordCount()
size()
.public int size()
public boolean isEmpty()
public boolean isNotEmpty()
public Record get(int index)
public RecordList add(Record... records)
public RecordList addAll(RecordList recordList)
public RecordList addAll(Collection<Record> records)
public RecordList add(int index, Record record)
public RecordList set(int index, Record record)
public RecordList move(int oldIndex, int newIndex)
public RecordList addAll(DataReader reader)
public RecordList sublist(int fromIndex, int toIndex, boolean cloneRecords)
public RecordList sublist(int fromIndex, boolean cloneRecords)
public void clear()
public RecordList sort(RecordComparator comparator, boolean cacheFieldIndexes)
public RecordList sort(RecordComparator comparator)
public int findFirst(Filter filter, int from)
public int findLast(Filter filter, int from)
public RecordList findAll(Filter filter)
public long getSizeInBytes()