Class ListIteratorDecorator<E>
java.lang.Object
com.flipkart.zjsonpatch.mapping.ListIteratorDecorator<E>
- All Implemented Interfaces:
Iterator<JsonNodeWrapper>,ListIterator<JsonNodeWrapper>
Decorator that wraps a ListIterator to provide JsonNodeWrapper instances
instead of raw JSON nodes, enabling version-agnostic iteration.
- Since:
- 0.6.0
- Author:
- Mariusz Sondecki
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(JsonNodeWrapper obj) booleanhasNext()booleannext()intprevious()intvoidremove()voidset(JsonNodeWrapper obj) 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
-
Constructor Details
-
ListIteratorDecorator
-
-
Method Details
-
hasNext
-
next
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<E>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<E>
-
previous
- Specified by:
previousin interfaceListIterator<E>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<E>
-
remove
-
set
- Specified by:
setin interfaceListIterator<E>
-
add
- Specified by:
addin interfaceListIterator<E>
-