Package com.adobe.aemds.guide.utils
Class JSONArrayIterator
- java.lang.Object
-
- com.adobe.aemds.guide.utils.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
-
-
Constructor Summary
Constructors Constructor Description JSONArrayIterator(JSONArray arr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()JSONObjectnext()voidremove()
-
-
-
Constructor Detail
-
JSONArrayIterator
public JSONArrayIterator(JSONArray arr)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<JSONObject>
-
next
public JSONObject next()
- Specified by:
nextin interfacejava.util.Iterator<JSONObject>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<JSONObject>
-
-