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 boolean
hasNext()
JSONObject
next()
void
remove()
-
-
-
Constructor Detail
-
JSONArrayIterator
public JSONArrayIterator(JSONArray arr)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<JSONObject>
-
next
public JSONObject next()
- Specified by:
next
in interfacejava.util.Iterator<JSONObject>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<JSONObject>
-
-