public abstract class VariableSizeListIterator<T>
extends java.lang.Object
implements java.util.ListIterator<T>
| Modifier and Type | Field and Description |
|---|---|
protected int |
size |
| Modifier | Constructor and Description |
|---|---|
protected |
VariableSizeListIterator(DexBuffer buffer,
int offset,
int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T t) |
int |
getReaderOffset() |
boolean |
hasNext() |
boolean |
hasPrevious() |
T |
next() |
int |
nextIndex() |
T |
previous() |
int |
previousIndex() |
protected abstract T |
readNextItem(DexReader reader,
int index)
Reads the next item from reader.
|
void |
remove() |
void |
set(T t) |
protected VariableSizeListIterator(@Nonnull
DexBuffer buffer,
int offset,
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()
public T next()
public boolean hasPrevious()
hasPrevious in interface java.util.ListIterator<T>public int nextIndex()
nextIndex in interface java.util.ListIterator<T>public int previousIndex()
previousIndex in interface java.util.ListIterator<T>public void remove()