Package org.apache.johnzon.core
Class JsonArrayImpl.JsonArrayIterator
- java.lang.Object
-
- org.apache.johnzon.core.JsonArrayImpl.JsonArrayIterator
-
- All Implemented Interfaces:
Iterator<jakarta.json.JsonValue>
- Enclosing class:
- JsonArrayImpl
private class JsonArrayImpl.JsonArrayIterator extends Object implements Iterator<jakarta.json.JsonValue>
We don't need any range check, so we can simplify the Iterator logic. get() on an ArrayList works even faster than ArrayList#iterator!
-
-
Field Summary
Fields Modifier and Type Field Description private int
cursor
-
Constructor Summary
Constructors Modifier Constructor Description private
JsonArrayIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
jakarta.json.JsonValue
next()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-