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>

public class FakeMongoCursor<T> extends Object implements com.mongodb.client.MongoCursor<T>
  • Constructor Details

    • FakeMongoCursor

      public FakeMongoCursor(List<T> iterator)
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface com.mongodb.client.MongoCursor<T>
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
      Specified by:
      hasNext in interface com.mongodb.client.MongoCursor<T>
    • next

      public T next()
      Specified by:
      next in interface Iterator<T>
      Specified by:
      next in interface com.mongodb.client.MongoCursor<T>
    • tryNext

      public T tryNext()
      Specified by:
      tryNext in interface com.mongodb.client.MongoCursor<T>
    • getServerCursor

      public com.mongodb.ServerCursor getServerCursor()
      Specified by:
      getServerCursor in interface com.mongodb.client.MongoCursor<T>
    • getServerAddress

      public com.mongodb.ServerAddress getServerAddress()
      Specified by:
      getServerAddress in interface com.mongodb.client.MongoCursor<T>
    • available

      public int available()
      Specified by:
      available in interface com.mongodb.client.MongoCursor<T>