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