public Map<String, List<Cursor>> getCursorsByDocument() {
    return this.getCursors().collect(Collectors.groupingBy((Cursor x) -> x.getDocument()));
  }
public Map < String , List < Cursor > > getCursorsByDocument ( ) { return this . getCursors ( ) . collect ( Collectors . groupingBy ( ( Cursor x ) -> x . getDocument ( ) ) ) ; }
Gets cursors by document.

@return the cursors by document