mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-06 02:35:33 +08:00
iterable
This commit is contained in:
@@ -75,9 +75,9 @@ import java.util.Map;
|
||||
* </ul>
|
||||
*
|
||||
* @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.
|
||||
@@ -179,6 +179,11 @@ public class JSONArray {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Iterator<Object> iterator() {
|
||||
return myArrayList.iterator();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the object value associated with an index.
|
||||
*
|
||||
|
Reference in New Issue
Block a user