public interface Indexable
Indexer.
The class implementing this interface can choose the type (byte, short, etc.) of
the indexer, and whether it is array-based or direct. The Indexer.release()
method should also be overridden to copy back any data written in the case of
non-direct indexers.| Modifier and Type | Method and Description |
|---|---|
<I extends Indexer> |
createIndexer(boolean direct)
Factory method called by the user to get an indexer to access the data.
|
<I extends Indexer> I createIndexer(boolean direct)
Indexer.release() should be called to have changes
reflected in the underlying data.I - the type of the returned objectdirect - a hint for the implementation, leaving the choice up to the user, since
buffers are slower than arrays on Android, but not with OpenJDK, for exampleIndexerNullPointerException - when there is no dataCopyright © 2016. All rights reserved.