Class EmptyMongoCursor<TResult>
- java.lang.Object
-
- fr.gouv.vitam.common.database.server.mongodb.EmptyMongoCursor<TResult>
-
- Type Parameters:
TResult- The type of documents the cursor is supposed to contain
- All Implemented Interfaces:
com.mongodb.client.MongoCursor<TResult>,java.io.Closeable,java.lang.AutoCloseable,java.util.Iterator<TResult>
public class EmptyMongoCursor<TResult> extends java.lang.Object implements com.mongodb.client.MongoCursor<TResult>Empty mongo cursor implementation to use in place of a real MongoCursor
-
-
Constructor Summary
Constructors Constructor Description EmptyMongoCursor()the constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()com.mongodb.ServerAddressgetServerAddress()com.mongodb.ServerCursorgetServerCursor()booleanhasNext()TResultnext()TResulttryNext()
-
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfacecom.mongodb.client.MongoCursor<TResult>
-
hasNext
public boolean hasNext()
-
next
public TResult next()
-
available
public int available()
- Specified by:
availablein interfacecom.mongodb.client.MongoCursor<TResult>
-
tryNext
public TResult tryNext()
- Specified by:
tryNextin interfacecom.mongodb.client.MongoCursor<TResult>
-
getServerCursor
public com.mongodb.ServerCursor getServerCursor()
- Specified by:
getServerCursorin interfacecom.mongodb.client.MongoCursor<TResult>
-
getServerAddress
public com.mongodb.ServerAddress getServerAddress()
- Specified by:
getServerAddressin interfacecom.mongodb.client.MongoCursor<TResult>
-
-