public class ConcurrentRecordList extends RecordList
log
SERIALIZED_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, toRecord
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
spliterator
fromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecord
newInstanceFromJson
public ConcurrentRecordList()
public ConcurrentRecordList(int initialCapacity)
public ConcurrentRecordList(Record... records)
public ConcurrentRecordList(DataReader reader)
public ReadWriteLock getReadWriteLock()
public Iterator<Record> iterator()
RecordList
iterator
in interface Iterable<Record>
iterator
in class RecordList
public ConcurrentRecordList clone()
RecordList
clone
in class RecordList
public List<Record> getRecords()
RecordList
getRecords
in class RecordList
public void forEach(Consumer<? super Record> consumer)
RecordList
forEach
in interface Iterable<Record>
forEach
in class RecordList
public Stream<Record> stream()
RecordList
stream
in class RecordList
public Stream<Record> parallelStream()
RecordList
parallelStream
in class RecordList
public int getRecordCount()
RecordList
RecordList.size()
.getRecordCount
in class RecordList
public Record get(int index)
RecordList
get
in class RecordList
public RecordList add(Record... records)
RecordList
add
in class RecordList
public RecordList add(int index, Record record)
RecordList
index
to the right.add
in class RecordList
public RecordList set(int index, Record record)
RecordList
set
in class RecordList
public RecordList move(int oldIndex, int newIndex)
RecordList
oldIndex
to the newIndex
, shifting any existing elements at or after newIndex
to the right.move
in class RecordList
public RecordList addAll(DataReader reader)
RecordList
addAll
in class RecordList
public RecordList sublist(int fromIndex, int toIndex, boolean cloneRecords)
sublist
in class RecordList
public RecordList sublist(int fromIndex, boolean cloneRecords)
sublist
in class RecordList
public RecordList sort(RecordComparator comparator, boolean cacheFieldIndexes)
sort
in class RecordList
public RecordList sort(RecordComparator comparator)
sort
in class RecordList
public int findFirst(Filter filter, int from)
findFirst
in class RecordList
public int findLast(Filter filter, int from)
findLast
in class RecordList
public RecordList findAll(Filter filter)
findAll
in class RecordList
public long getSizeInBytes()
getSizeInBytes
in class RecordList
public String toString()
toString
in class RecordList
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.