public class ConcurrentRecordList extends RecordList
logSERIALIZED_CLASS_NAME, TYPE| Constructor and Description |
|---|
ConcurrentRecordList() |
ConcurrentRecordList(DataReader reader) |
ConcurrentRecordList(int initialCapacity) |
ConcurrentRecordList(Record... records) |
| Modifier and Type | Method and Description |
|---|---|
RecordList |
add(int index,
Record record)
Inserts a record at the specified position in this list, shifting any record at or after
index to the right. |
RecordList |
add(Record... records)
Appends all the specified records to the end of this list.
|
RecordList |
addAll(DataReader reader)
Writes all the records in the specified reader to the end of this list.
|
ConcurrentRecordList |
clone()
Returns a new RecordList that is a copy of this RecordList.
|
RecordList |
findAll(Filter filter) |
int |
findFirst(Filter filter,
int from) |
int |
findLast(Filter filter,
int from) |
void |
forEach(Consumer<? super Record> consumer)
Performs the given action for each record in this list.
|
Record |
get(int index)
Returns the record at the specified position in this list.
|
ReadWriteLock |
getReadWriteLock() |
int |
getRecordCount()
Returns the number of records in this list -- an alias for
RecordList.size(). |
List<Record> |
getRecords()
Returns a list of records.
|
long |
getSizeInBytes() |
Iterator<Record> |
iterator()
Returns an iterator over the records in this list.
|
RecordList |
move(int oldIndex,
int newIndex)
Moves the index field at the
oldIndex to the newIndex, shifting any existing elements at or after newIndex to the right. |
Stream<Record> |
parallelStream()
Returns a parallel Stream of the records in this list.
|
RecordList |
set(int index,
Record record)
Replaces the record at the specified position in this list with a new record.
|
RecordList |
sort(RecordComparator comparator) |
RecordList |
sort(RecordComparator comparator,
boolean cacheFieldIndexes) |
Stream<Record> |
stream()
Returns a sequential Stream of the records in this list.
|
RecordList |
sublist(int fromIndex,
boolean cloneRecords) |
RecordList |
sublist(int fromIndex,
int toIndex,
boolean cloneRecords) |
String |
toString() |
addAll, addAll, clear, ensureCapacity, fromArrayValue, fromBinary, fromBinary, fromBinary, fromRecord, getValuesAsArray, isEmpty, isNotEmpty, size, toArrayValue, toBinary, toBinary, toBinary, toDataReader, toRecordequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitspliteratorfromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecordnewInstanceFromJsonpublic ConcurrentRecordList()
public ConcurrentRecordList(int initialCapacity)
public ConcurrentRecordList(Record... records)
public ConcurrentRecordList(DataReader reader)
public ReadWriteLock getReadWriteLock()
public Iterator<Record> iterator()
RecordListiterator in interface Iterable<Record>iterator in class RecordListpublic ConcurrentRecordList clone()
RecordListclone in class RecordListpublic List<Record> getRecords()
RecordListgetRecords in class RecordListpublic void forEach(Consumer<? super Record> consumer)
RecordListforEach in interface Iterable<Record>forEach in class RecordListpublic Stream<Record> stream()
RecordListstream in class RecordListpublic Stream<Record> parallelStream()
RecordListparallelStream in class RecordListpublic int getRecordCount()
RecordListRecordList.size().getRecordCount in class RecordListpublic Record get(int index)
RecordListget in class RecordListpublic RecordList add(Record... records)
RecordListadd in class RecordListpublic RecordList add(int index, Record record)
RecordListindex to the right.add in class RecordListpublic RecordList set(int index, Record record)
RecordListset in class RecordListpublic RecordList move(int oldIndex, int newIndex)
RecordListoldIndex to the newIndex, shifting any existing elements at or after newIndex to the right.move in class RecordListpublic RecordList addAll(DataReader reader)
RecordListaddAll in class RecordListpublic RecordList sublist(int fromIndex, int toIndex, boolean cloneRecords)
sublist in class RecordListpublic RecordList sublist(int fromIndex, boolean cloneRecords)
sublist in class RecordListpublic RecordList sort(RecordComparator comparator, boolean cacheFieldIndexes)
sort in class RecordListpublic RecordList sort(RecordComparator comparator)
sort in class RecordListpublic int findFirst(Filter filter, int from)
findFirst in class RecordListpublic int findLast(Filter filter, int from)
findLast in class RecordListpublic RecordList findAll(Filter filter)
findAll in class RecordListpublic long getSizeInBytes()
getSizeInBytes in class RecordListpublic String toString()
toString in class RecordListCopyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.