Package org.robolectric.shadows
Class ShadowCursorWrapper
java.lang.Object
org.robolectric.shadows.ShadowCursorWrapper
- All Implemented Interfaces:
Cursor,Closeable,AutoCloseable
@Implements(android.database.CursorWrapper.class)
public class ShadowCursorWrapper
extends Object
implements Cursor
-
Nested Class Summary
Nested classes/interfaces inherited from interface android.database.Cursor
Cursor.FieldType -
Field Summary
Fields inherited from interface android.database.Cursor
FIELD_TYPE_BLOB, FIELD_TYPE_FLOAT, FIELD_TYPE_INTEGER, FIELD_TYPE_NULL, FIELD_TYPE_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidclose()voidcopyStringToBuffer(int i, CharArrayBuffer charArrayBuffer) voidbyte[]getBlob(int i) intintintgetColumnName(int i) String[]intgetCount()doublegetDouble(int i) floatgetFloat(int i) intgetInt(int i) longgetLong(int i) intshortgetShort(int i) getString(int i) intgetType(int columnIndex) booleanprotected CursorbooleanbooleanbooleanisClosed()booleanisFirst()booleanisLast()booleanisNull(int i) booleanmove(int i) booleanbooleanbooleanbooleanmoveToPosition(int i) booleanvoidregisterContentObserver(ContentObserver contentObserver) voidregisterDataSetObserver(DataSetObserver dataSetObserver) booleanrequery()voidvoidsetNotificationUri(ContentResolver contentResolver, Uri uri) voidunregisterContentObserver(ContentObserver contentObserver) voidunregisterDataSetObserver(DataSetObserver dataSetObserver) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface android.database.Cursor
getNotificationUris, setNotificationUris
-
Constructor Details
-
ShadowCursorWrapper
public ShadowCursorWrapper()
-
-
Method Details
-
__constructor__
-
getCount
@Implementation public int getCount() -
getPosition
@Implementation public int getPosition()- Specified by:
getPositionin interfaceCursor
-
move
@Implementation public boolean move(int i) -
moveToPosition
@Implementation public boolean moveToPosition(int i) - Specified by:
moveToPositionin interfaceCursor
-
moveToFirst
@Implementation public boolean moveToFirst()- Specified by:
moveToFirstin interfaceCursor
-
moveToLast
@Implementation public boolean moveToLast()- Specified by:
moveToLastin interfaceCursor
-
moveToNext
@Implementation public boolean moveToNext()- Specified by:
moveToNextin interfaceCursor
-
moveToPrevious
@Implementation public boolean moveToPrevious()- Specified by:
moveToPreviousin interfaceCursor
-
isFirst
@Implementation public boolean isFirst() -
isLast
@Implementation public boolean isLast() -
isBeforeFirst
@Implementation public boolean isBeforeFirst()- Specified by:
isBeforeFirstin interfaceCursor
-
isAfterLast
@Implementation public boolean isAfterLast()- Specified by:
isAfterLastin interfaceCursor
-
getColumnIndex
- Specified by:
getColumnIndexin interfaceCursor
-
getColumnIndexOrThrow
- Specified by:
getColumnIndexOrThrowin interfaceCursor- Throws:
IllegalArgumentException
-
getColumnName
- Specified by:
getColumnNamein interfaceCursor
-
getColumnNames
- Specified by:
getColumnNamesin interfaceCursor
-
getColumnCount
@Implementation public int getColumnCount()- Specified by:
getColumnCountin interfaceCursor
-
getBlob
@Implementation public byte[] getBlob(int i) -
getString
-
copyStringToBuffer
- Specified by:
copyStringToBufferin interfaceCursor
-
getShort
@Implementation public short getShort(int i) -
getInt
@Implementation public int getInt(int i) -
getLong
@Implementation public long getLong(int i) -
getFloat
@Implementation public float getFloat(int i) -
getDouble
@Implementation public double getDouble(int i) -
isNull
@Implementation public boolean isNull(int i) -
deactivate
@Implementation public void deactivate()- Specified by:
deactivatein interfaceCursor
-
requery
@Implementation public boolean requery() -
close
@Implementation public void close() -
isClosed
@Implementation public boolean isClosed() -
registerContentObserver
- Specified by:
registerContentObserverin interfaceCursor
-
unregisterContentObserver
- Specified by:
unregisterContentObserverin interfaceCursor
-
registerDataSetObserver
- Specified by:
registerDataSetObserverin interfaceCursor
-
unregisterDataSetObserver
- Specified by:
unregisterDataSetObserverin interfaceCursor
-
setNotificationUri
- Specified by:
setNotificationUriin interfaceCursor
-
getNotificationUri
- Specified by:
getNotificationUriin interfaceCursor
-
getWantsAllOnMoveCalls
@Implementation public boolean getWantsAllOnMoveCalls()- Specified by:
getWantsAllOnMoveCallsin interfaceCursor
-
setExtras
-
getExtras
-
respond
-
getType
@Implementation public int getType(int columnIndex) -
getWrappedCursor
-