Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d2cd1a8

Browse filesBrowse files
committed
iterable
1 parent 0cf7491 commit d2cd1a8
Copy full SHA for d2cd1a8

File tree

Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed
Open diff view settings
Collapse file

‎JSONArray.java‎

Copy file name to clipboardExpand all lines: JSONArray.java
+7-2Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ of this software and associated documentation files (the "Software"), to deal
7575
* </ul>
7676
*
7777
* @author JSON.org
78-
* @version 2014-05-03
78+
* @version 2015-06-04
7979
*/
80-
public class JSONArray {
80+
public class JSONArray implements Iterable<Object> {
8181

8282
/**
8383
* The arrayList where the JSONArray's properties are kept.
@@ -179,6 +179,11 @@ public JSONArray(Object array) throws JSONException {
179179
}
180180
}
181181

182+
@Override
183+
public Iterator<Object> iterator() {
184+
return myArrayList.iterator();
185+
}
186+
182187
/**
183188
* Get the object value associated with an index.
184189
*

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.