Package io.scanbot.sdk.util
Object CursorUtil
-
- All Implemented Interfaces:
public class CursorUtil
Helper class to work with Cursors
-
-
Field Summary
Fields Modifier and Type Field Description public final static CursorUtil
INSTANCE
-
Method Summary
Modifier and Type Method Description final static Unit
closeQuietly(Cursor cursor)
Closes cursor if it is not null
or is not closed alreadyfinal static Boolean
hasElements(Cursor cursor)
final static Cursor
emptyCursor()
-
-
Method Detail
-
closeQuietly
final static Unit closeQuietly(Cursor cursor)
Closes cursor if it is not
null
or 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()
-
-
-
-