mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-02 11:05:28 -04:00
iterable
This commit is contained in:
parent
0cf7491a37
commit
d2cd1a8df5
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user