Class JsonArrayIterator

  • All Implemented Interfaces:
    java.util.Iterator<javax.json.stream.JsonParser.Event>

    public class JsonArrayIterator
    extends java.lang.Object
    Iterates over JsonArray.
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonArrayIterator​(javax.json.JsonArray jsonArray)
      Creates new array iterator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      After JsonParser.Event END_ARRAY is returned from next() iterator is removed from the stack.
      javax.json.stream.JsonParser.Event 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
    • Constructor Detail

      • JsonArrayIterator

        public JsonArrayIterator​(javax.json.JsonArray jsonArray)
        Creates new array iterator.
        Parameters:
        jsonArray - json array
    • Method Detail

      • hasNext

        public boolean hasNext()
        After JsonParser.Event END_ARRAY is returned from next() iterator is removed from the stack.
        Returns:
        always true
      • next

        public javax.json.stream.JsonParser.Event next()