1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00
This commit is contained in:
stleary 2015-06-04 22:26:16 -05:00
parent 0cf7491a37
commit d2cd1a8df5

View file

@ -75,9 +75,9 @@ import java.util.Map;
* </ul> * </ul>
* *
* @author JSON.org * @author JSON.org
* @version 2014-05-03 * @version 2015-06-04
*/ */
public class JSONArray { public class JSONArray implements Iterable<Object> {
/** /**
* The arrayList where the JSONArray's properties are kept. * The arrayList where the JSONArray's properties are kept.
@ -179,6 +179,11 @@ public class JSONArray {
} }
} }
@Override
public Iterator<Object> iterator() {
return myArrayList.iterator();
}
/** /**
* Get the object value associated with an index. * Get the object value associated with an index.
* *