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 Constructor Description ShadowCursorWrapper()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface android.database.Cursor
getNotificationUris, setNotificationUris
-
-
-
-
Method Detail
-
__constructor__
@Implementation protected void __constructor__(Cursor c)
-
getCount
@Implementation public int getCount()
-
getPosition
@Implementation public int getPosition()
- Specified by:
getPosition
in interfaceCursor
-
move
@Implementation public boolean move(int i)
-
moveToPosition
@Implementation public boolean moveToPosition(int i)
- Specified by:
moveToPosition
in interfaceCursor
-
moveToFirst
@Implementation public boolean moveToFirst()
- Specified by:
moveToFirst
in interfaceCursor
-
moveToLast
@Implementation public boolean moveToLast()
- Specified by:
moveToLast
in interfaceCursor
-
moveToNext
@Implementation public boolean moveToNext()
- Specified by:
moveToNext
in interfaceCursor
-
moveToPrevious
@Implementation public boolean moveToPrevious()
- Specified by:
moveToPrevious
in interfaceCursor
-
isFirst
@Implementation public boolean isFirst()
-
isLast
@Implementation public boolean isLast()
-
isBeforeFirst
@Implementation public boolean isBeforeFirst()
- Specified by:
isBeforeFirst
in interfaceCursor
-
isAfterLast
@Implementation public boolean isAfterLast()
- Specified by:
isAfterLast
in interfaceCursor
-
getColumnIndex
@Implementation public int getColumnIndex(String s)
- Specified by:
getColumnIndex
in interfaceCursor
-
getColumnIndexOrThrow
@Implementation public int getColumnIndexOrThrow(String s) throws IllegalArgumentException
- Specified by:
getColumnIndexOrThrow
in interfaceCursor
- Throws:
IllegalArgumentException
-
getColumnName
@Implementation public String getColumnName(int i)
- Specified by:
getColumnName
in interfaceCursor
-
getColumnNames
@Implementation public String[] getColumnNames()
- Specified by:
getColumnNames
in interfaceCursor
-
getColumnCount
@Implementation public int getColumnCount()
- Specified by:
getColumnCount
in interfaceCursor
-
getBlob
@Implementation public byte[] getBlob(int i)
-
getString
@Implementation public String getString(int i)
-
copyStringToBuffer
@Implementation public void copyStringToBuffer(int i, CharArrayBuffer charArrayBuffer)
- Specified by:
copyStringToBuffer
in 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:
deactivate
in interfaceCursor
-
requery
@Implementation public boolean requery()
-
close
@Implementation public void close()
-
isClosed
@Implementation public boolean isClosed()
-
registerContentObserver
@Implementation public void registerContentObserver(ContentObserver contentObserver)
- Specified by:
registerContentObserver
in interfaceCursor
-
unregisterContentObserver
@Implementation public void unregisterContentObserver(ContentObserver contentObserver)
- Specified by:
unregisterContentObserver
in interfaceCursor
-
registerDataSetObserver
@Implementation public void registerDataSetObserver(DataSetObserver dataSetObserver)
- Specified by:
registerDataSetObserver
in interfaceCursor
-
unregisterDataSetObserver
@Implementation public void unregisterDataSetObserver(DataSetObserver dataSetObserver)
- Specified by:
unregisterDataSetObserver
in interfaceCursor
-
setNotificationUri
@Implementation public void setNotificationUri(ContentResolver contentResolver, Uri uri)
- Specified by:
setNotificationUri
in interfaceCursor
-
getNotificationUri
@Implementation(minSdk=19) public Uri getNotificationUri()
- Specified by:
getNotificationUri
in interfaceCursor
-
getWantsAllOnMoveCalls
@Implementation public boolean getWantsAllOnMoveCalls()
- Specified by:
getWantsAllOnMoveCalls
in interfaceCursor
-
setExtras
@Implementation(minSdk=23) public void setExtras(Bundle extras)
-
getExtras
@Implementation public Bundle getExtras()
-
respond
@Implementation public Bundle respond(Bundle bundle)
-
getType
@Implementation public int getType(int columnIndex)
-
getWrappedCursor
@Implementation protected Cursor getWrappedCursor()
-
-