public abstract class AbstractDataTypeList<T extends AbstractDataType> extends AbstractDataType
Cloneable
(!!) AbstractDataType
s, continuing until the end of the buffer.frameBody, identifier, logger, size, TYPE_ELEMENT, value
Modifier | Constructor and Description |
---|---|
protected |
AbstractDataTypeList(AbstractDataTypeList<T> copy)
Copy constructor.
|
|
AbstractDataTypeList(String identifier,
AbstractTagFrameBody frameBody) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
createListElement()
Factory method that creates new elements for this list.
|
int |
getSize()
Return the size in byte of this datatype list.
|
List<T> |
getValue()
Get value held by this Object
|
int |
hashCode() |
void |
readByteArray(byte[] buffer,
int offset)
Reads list of
EventTimingCode s from buffer starting at the given offset. |
void |
setValue(List<T> list) |
String |
toString() |
byte[] |
writeByteArray()
Write contents to a byte array.
|
createStructure, equals, getBody, getIdentifier, readByteArray, setBody, setValue
public AbstractDataTypeList(String identifier, AbstractTagFrameBody frameBody)
protected AbstractDataTypeList(AbstractDataTypeList<T> copy)
ID3Tags.copyObject(Object)
to work.
A parametrized AbstractDataTypeList
is not sufficient.copy
- instancepublic List<T> getValue()
AbstractDataType
getValue
in class AbstractDataType
public int getSize()
getSize
in class AbstractDataType
public void readByteArray(byte[] buffer, int offset) throws InvalidDataTypeException
EventTimingCode
s from buffer starting at the given offset.readByteArray
in class AbstractDataType
buffer
- bufferoffset
- initial offset into the bufferNullPointerException
IndexOutOfBoundsException
InvalidDataTypeException
protected abstract T createListElement()
readByteArray(byte[], int)
.public byte[] writeByteArray()
writeByteArray
in class AbstractDataType
Copyright © 2005–2020 jthink.net. All rights reserved.