Package io.scanbot.sdk.util
Object CursorUtil
-
- All Implemented Interfaces:
public class CursorUtilHelper class to work with Cursors
-
-
Field Summary
Fields Modifier and Type Field Description public final static CursorUtilINSTANCE
-
Method Summary
Modifier and Type Method Description final static UnitcloseQuietly(Cursor cursor)Closes cursor if it is not nullor is not closed alreadyfinal static BooleanhasElements(Cursor cursor)final static CursoremptyCursor()-
-
Method Detail
-
closeQuietly
final static Unit closeQuietly(Cursor cursor)
Closes cursor if it is not
nullor is not closed already- Parameters:
cursor- Cursor to close
-
hasElements
final static Boolean hasElements(Cursor cursor)
- Parameters:
cursor- Cursor to check
-
emptyCursor
final static Cursor emptyCursor()
-
-
-
-