Package org.jf.dexlib2.dexbacked.util
Class VariableSizeListIterator<T>
java.lang.Object
org.jf.dexlib2.dexbacked.util.VariableSizeListIterator<T>
- All Implemented Interfaces:
Iterator<T>,ListIterator<T>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVariableSizeListIterator(DexBuffer buffer, int offset, int size) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
reader
-
size
protected final int size -
startOffset
private final int startOffset -
index
private int index
-
-
Constructor Details
-
VariableSizeListIterator
-
-
Method Details
-
readNextItem
Reads the next item from reader.- Parameters:
reader- TheDexReaderto 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() -
next
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<T>
-
previous
- Specified by:
previousin interfaceListIterator<T>
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<T>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<T>
-
remove
public void remove() -
set
- Specified by:
setin interfaceListIterator<T>
-
add
- Specified by:
addin interfaceListIterator<T>
-