Package org.jf.dexlib2.dexbacked.util
Class VariableSizeIterator<T>
- java.lang.Object
-
- org.jf.dexlib2.dexbacked.util.VariableSizeIterator<T>
-
- All Implemented Interfaces:
java.util.Iterator<T>
public abstract class VariableSizeIterator<T> extends java.lang.Object implements java.util.Iterator<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected int
size
-
Constructor Summary
Constructors Modifier Constructor Description protected
VariableSizeIterator(DexBuffer buffer, int offset, int size)
protected
VariableSizeIterator(DexReader reader, int size)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
getReaderOffset()
boolean
hasNext()
T
next()
protected abstract T
readNextItem(DexReader reader, int index)
Reads the next item from reader.void
remove()
-
-
-
Method Detail
-
readNextItem
protected abstract T readNextItem(@Nonnull DexReader reader, int index)
Reads the next item from reader.- Parameters:
reader
- TheDexReader
to read the next item fromindex
- The index of the item being read. This is guaranteed to be less thansize
- Returns:
- The item that was read
-
getReaderOffset
public int getReaderOffset()
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<T>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<T>
-
-