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.
<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 object
direct- 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 example
NullPointerException- when there is no data
Copyright © 2017. All rights reserved.