@ Override public boolean hasNext ( ) { if ( closed ) { throw new IllegalStateException ( "Cursor has been closed" ) ; } if ( cursor == null ) { FindOperation < DBObject > operation = getQueryOperation ( decoder ) ; if ( operation . getCursorType ( ) == CursorType . Tailable ) { operation . cursorType ( CursorType . TailableAwait ) ; } initializeCursor ( operation ) ; } boolean hasNext = cursor . hasNext ( ) ; setServerCursorOnFinalizer ( cursor . getServerCursor ( ) ) ; return hasNext ; }
Checks if there is another object available .