Class JSONArrayIterator

  • All Implemented Interfaces:
    java.util.Iterator<JSONObject>

    public class JSONArrayIterator
    extends java.lang.Object
    implements java.util.Iterator<JSONObject>
    Expectation of this iterator from input JSONArray is that array should consist of only and only JSONObjects
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      JSONObject next()  
      void remove()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • JSONArrayIterator

        public JSONArrayIterator​(JSONArray arr)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<JSONObject>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<JSONObject>