File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/main/java/com/arangodb Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ v4.2.x (xxxx-xx-xx)
3
3
* fixed ArangoDatabase.transaction(): ignore null result
4
4
* added properties validation arangodb.host
5
5
* added ArangoCollection.ensure<IndexType>Index()
6
- * made ArangoCollection.create<IndexType>Index() deprecated
6
+ * maded ArangoCollection.create<IndexType>Index() deprecated
7
+ * let ArangoCursor implement Iterable
7
8
8
9
v4.2.3 (2017-07-31)
9
10
---------------------------
Original file line number Diff line number Diff line change 39
39
* @author Mark Vollmary
40
40
*
41
41
*/
42
- public class ArangoCursor <T > implements Iterator <T >, Closeable {
42
+ public class ArangoCursor <T > implements Iterable < T >, Iterator <T >, Closeable {
43
43
44
44
private final Class <T > type ;
45
45
protected final ArangoCursorIterator <T > iterator ;
@@ -130,4 +130,9 @@ public void remove() {
130
130
throw new UnsupportedOperationException ();
131
131
}
132
132
133
+ @ Override
134
+ public Iterator <T > iterator () {
135
+ return iterator ;
136
+ }
137
+
133
138
}
You can’t perform that action at this time.
0 commit comments