Package fr.gouv.vitam.common.mongo
Class FakeMongoCursor<T>
java.lang.Object
fr.gouv.vitam.common.mongo.FakeMongoCursor<T>
- All Implemented Interfaces:
com.mongodb.client.MongoCursor<T>
,Closeable
,AutoCloseable
,Iterator<T>
-
Constructor Details
-
FakeMongoCursor
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfacecom.mongodb.client.MongoCursor<T>
-
hasNext
public boolean hasNext() -
next
-
tryNext
- Specified by:
tryNext
in interfacecom.mongodb.client.MongoCursor<T>
-
getServerCursor
public com.mongodb.ServerCursor getServerCursor()- Specified by:
getServerCursor
in interfacecom.mongodb.client.MongoCursor<T>
-
getServerAddress
public com.mongodb.ServerAddress getServerAddress()- Specified by:
getServerAddress
in interfacecom.mongodb.client.MongoCursor<T>
-
available
public int available()- Specified by:
available
in interfacecom.mongodb.client.MongoCursor<T>
-