Class MongoCursor
On this page
Atlas Device SDKs are deprecated. Refer to the deprecation page for details.
io.realm.mongodb.mongo.iterable
io.realm.mongodb.mongo.iterable.MongoCursor
Implemented interfaces:
The Mongo Cursor class is fundamentally an Iterator containing an additional tryNext()
method for convenience.
An application should ensure that a cursor is closed in all circumstances, e.g. using a try-with-resources statement.
Method Summary
Inherited Methods
Methods inherited from class java.lang.Object :
getClass
,hashCode
,equals
,clone
,toString
,notify
,notifyAll
,wait
,wait
,wait
,finalize
Method Detail
close
public void close () |
---|
hasNext
public boolean hasNext () |
---|
next
public ResultT next () |
---|
tryNext
public ResultT tryNext () |
---|
A special Returns A |