Interface Collection

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean endOfCollection()
      Returns true if the end of the collection has been reached
      Document getDocument()
      Get the document object representing the current document.
      boolean nextDocument()
      Move the collection to the start of the next document.
      void reset()
      Resets the Collection iterator to the start of the collection.
      • Methods inherited from interface java.io.Closeable

        close
    • Method Detail

      • nextDocument

        boolean nextDocument()
        Move the collection to the start of the next document.
        Returns:
        boolean true if there exists another document in the collection, otherwise it returns false.
      • getDocument

        Document getDocument()
        Get the document object representing the current document.
        Returns:
        Document the current document;
      • endOfCollection

        boolean endOfCollection()
        Returns true if the end of the collection has been reached
        Returns:
        boolean true if the end of collection has been reached, otherwise it returns false.
      • reset

        void reset()
        Resets the Collection iterator to the start of the collection.