ResultT- The type to which this iterable will decode documents.
public abstract class MongoIterable<ResultT> extends Object
This class somewhat mimics the behavior of an
Iterable but given its results are
obtained asynchronously, its values are wrapped inside a
|Modifier and Type||Method and Description|
Helper to return the first item in the iterator or null.
Returns a cursor of the operation represented by this iterable.
public RealmResultTask<MongoCursor<ResultT>> iterator()
The result is wrapped in a
Task since the iterator should be capable of
asynchronously retrieve documents from the server.