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
,java.io.Closeable
,java.lang.AutoCloseable
,java.util.Iterator
public class FakeMongoCursor<T> extends java.lang.Object implements com.mongodb.client.MongoCursor
-
-
Constructor Summary
Constructors Constructor Description FakeMongoCursor(java.util.List<T> iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
com.mongodb.ServerAddress
getServerAddress()
com.mongodb.ServerCursor
getServerCursor()
boolean
hasNext()
java.lang.Object
next()
java.lang.Object
tryNext()
-
-
-
Constructor Detail
-
FakeMongoCursor
public FakeMongoCursor(java.util.List<T> iterator)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfacecom.mongodb.client.MongoCursor<T>
-
hasNext
public boolean hasNext()
-
next
public java.lang.Object next()
-
tryNext
public java.lang.Object 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>
-
-