public abstract class VariableSizeIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
| Modifier and Type | Field and Description |
|---|---|
protected int |
size |
| Modifier | Constructor and Description |
|---|---|
protected |
VariableSizeIterator(DexBuffer buffer,
int offset,
int size) |
protected |
VariableSizeIterator(DexReader reader,
int size) |
| Modifier and Type | Method and Description |
|---|---|
int |
getReaderOffset() |
boolean |
hasNext() |
T |
next() |
protected abstract T |
readNextItem(DexReader reader,
int index)
Reads the next item from reader.
|
void |
remove() |
protected VariableSizeIterator(@Nonnull
DexBuffer buffer,
int offset,
int size)
protected VariableSizeIterator(@Nonnull
DexReader reader,
int size)
protected abstract T readNextItem(@Nonnull DexReader reader, int index)
reader - The DexReader to read the next item fromindex - The index of the item being read. This is guaranteed to be less than sizepublic int getReaderOffset()
public boolean hasNext()
hasNext in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>