fiftyone.mobile.detection.entities.stream
Class StreamFixedList<T extends BaseEntity>
java.lang.Object
fiftyone.mobile.detection.entities.stream.BaseList<T>
fiftyone.mobile.detection.entities.stream.StreamFixedList<T>
- All Implemented Interfaces:
- Disposable, ICacheList, ReadonlyList<T>, Iterable<T>
public class StreamFixedList<T extends BaseEntity>
- extends BaseList<T>
Constructs a new instance of FixedList.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamFixedList
public StreamFixedList(Dataset dataSet,
BinaryReader reader,
Source source,
BaseEntityFactory<T> entityFactory)
createEntity
protected T createEntity(int index,
BinaryReader reader)
throws IOException
- Creates a new entity of type T.
- Specified by:
createEntity in class BaseList<T extends BaseEntity>
- Parameters:
index - The index of the entity being created.reader - Reader connected to the source data structure and
positioned to start reading.
- Returns:
- A new entity of type T at the index provided.
- Throws:
IOException
iterator
public Iterator<T> iterator()