fiftyone.mobile.detection.entities.stream
Class StreamFixedList<T extends BaseEntity>

java.lang.Object
  extended by fiftyone.mobile.detection.entities.stream.BaseList<T>
      extended by 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.


Field Summary
 
Fields inherited from class fiftyone.mobile.detection.entities.stream.BaseList
cache, dataSet, entityFactory, header, pool
 
Constructor Summary
StreamFixedList(Dataset dataSet, BinaryReader reader, Source source, BaseEntityFactory<T> entityFactory)
           
 
Method Summary
protected  T createEntity(int index, BinaryReader reader)
          Creates a new entity of type T.
 Iterator<T> iterator()
           
 
Methods inherited from class fiftyone.mobile.detection.entities.stream.BaseList
dispose, get, getCount, getPercentageMisses, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamFixedList

public StreamFixedList(Dataset dataSet,
                       BinaryReader reader,
                       Source source,
                       BaseEntityFactory<T> entityFactory)
Method Detail

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()