Class BaseCursor
java.lang.Object
org.robolectric.fakes.BaseCursor
- All Implemented Interfaces:
Cursor, Closeable, AutoCloseable
- Direct Known Subclasses:
RoboCursor
Deprecated.
Robolectric implementation of
Cursor.-
Nested Class Summary
Nested classes/interfaces inherited from interface Cursor
Cursor.FieldType -
Field Summary
Fields inherited from interface Cursor
FIELD_TYPE_BLOB, FIELD_TYPE_FLOAT, FIELD_TYPE_INTEGER, FIELD_TYPE_NULL, FIELD_TYPE_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.voidcopyStringToBuffer(int columnIndex, CharArrayBuffer buffer) Deprecated.voidDeprecated.byte[]getBlob(int columnIndex) Deprecated.intDeprecated.intgetColumnIndex(String columnName) Deprecated.intgetColumnIndexOrThrow(String columnName) Deprecated.getColumnName(int columnIndex) Deprecated.String[]Deprecated.intgetCount()Deprecated.doublegetDouble(int columnIndex) Deprecated.Deprecated.floatgetFloat(int columnIndex) Deprecated.intgetInt(int columnIndex) Deprecated.longgetLong(int columnIndex) Deprecated.Deprecated.intDeprecated.shortgetShort(int columnIndex) Deprecated.getString(int columnIndex) Deprecated.intgetType(int columnIndex) Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanisClosed()Deprecated.booleanisFirst()Deprecated.booleanisLast()Deprecated.booleanisNull(int columnIndex) Deprecated.booleanmove(int offset) Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanmoveToPosition(int position) Deprecated.booleanDeprecated.voidregisterContentObserver(ContentObserver observer) Deprecated.voidregisterDataSetObserver(DataSetObserver observer) Deprecated.booleanrequery()Deprecated.Deprecated.voidDeprecated.voidsetNotificationUri(ContentResolver cr, Uri uri) Deprecated.voidDeprecated.voidunregisterContentObserver(ContentObserver observer) Deprecated.voidunregisterDataSetObserver(DataSetObserver observer) Deprecated.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Cursor
getNotificationUris, setNotificationUris
-
Constructor Details
-
BaseCursor
public BaseCursor()Deprecated.
-
-
Method Details
-
getCount
-
getPosition
-
move
-
moveToPosition
public boolean moveToPosition(int position) Deprecated.- Specified by:
moveToPositionin interfaceCursor
-
moveToFirst
-
moveToLast
-
moveToNext
-
moveToPrevious
-
isFirst
-
isLast
-
isBeforeFirst
-
isAfterLast
-
getColumnIndex
Deprecated.- Specified by:
getColumnIndexin interfaceCursor
-
getColumnIndexOrThrow
Deprecated.- Specified by:
getColumnIndexOrThrowin interfaceCursor- Throws:
IllegalArgumentException
-
getColumnName
Deprecated.- Specified by:
getColumnNamein interfaceCursor
-
getColumnNames
-
getColumnCount
-
getBlob
-
getString
-
copyStringToBuffer
Deprecated.- Specified by:
copyStringToBufferin interfaceCursor
-
getShort
-
getInt
-
getLong
-
getFloat
-
getDouble
-
isNull
-
deactivate
-
requery
-
close
-
isClosed
-
registerContentObserver
Deprecated.- Specified by:
registerContentObserverin interfaceCursor
-
unregisterContentObserver
Deprecated.- Specified by:
unregisterContentObserverin interfaceCursor
-
registerDataSetObserver
Deprecated.- Specified by:
registerDataSetObserverin interfaceCursor
-
unregisterDataSetObserver
Deprecated.- Specified by:
unregisterDataSetObserverin interfaceCursor
-
setNotificationUri
Deprecated.- Specified by:
setNotificationUriin interfaceCursor
-
getNotificationUri
-
getWantsAllOnMoveCalls
public boolean getWantsAllOnMoveCalls()Deprecated.- Specified by:
getWantsAllOnMoveCallsin interfaceCursor
-
setExtras
-
getExtras
-
respond
-
getType
-
setQuery
-
MatrixCursorinstead.