R
- the type of the elementspublic abstract class AbstractListInfo<R extends Serializable> extends AbstractLDSInfo
Constructor and Description |
---|
AbstractListInfo() |
Modifier and Type | Method and Description |
---|---|
protected void |
add(R subRecord)
Adds a sub-record to this list.
|
protected void |
addAll(List<R> subRecords)
Adds all sub-records in a collection.
|
boolean |
equals(Object other) |
protected List<R> |
getSubRecords()
Returns the sub-records of this list.
|
int |
hashCode() |
abstract void |
readObject(InputStream inputStream)
Reads this value from a stream.
|
protected void |
remove(int index)
Removes a sub-record at a given index.
|
abstract void |
writeObject(OutputStream outputStream)
Writes this value to a stream.
|
getEncoded
protected List<R> getSubRecords()
protected void add(R subRecord)
subRecord
- the sub-record to addprotected void addAll(List<R> subRecords)
subRecords
- the sub-records to addprotected void remove(int index)
index
- the index of the sub-record to removepublic abstract void writeObject(OutputStream outputStream) throws IOException
writeObject
in class AbstractLDSInfo
outputStream
- the stream to write toIOException
- on error writing to the streampublic abstract void readObject(InputStream inputStream) throws IOException
inputStream
- the stream to read fromIOException
- on error reading from the streamCopyright © 2024. All rights reserved.