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
  • Constructor Details

    • ShadowCursorWrapper

      public ShadowCursorWrapper()
  • Method Details

    • __constructor__

      @Implementation protected void __constructor__(Cursor c)
    • getCount

      @Implementation public int getCount()
      Specified by:
      getCount in interface Cursor
    • getPosition

      @Implementation public int getPosition()
      Specified by:
      getPosition in interface Cursor
    • move

      @Implementation public boolean move(int i)
      Specified by:
      move in interface Cursor
    • moveToPosition

      @Implementation public boolean moveToPosition(int i)
      Specified by:
      moveToPosition in interface Cursor
    • moveToFirst

      @Implementation public boolean moveToFirst()
      Specified by:
      moveToFirst in interface Cursor
    • moveToLast

      @Implementation public boolean moveToLast()
      Specified by:
      moveToLast in interface Cursor
    • moveToNext

      @Implementation public boolean moveToNext()
      Specified by:
      moveToNext in interface Cursor
    • moveToPrevious

      @Implementation public boolean moveToPrevious()
      Specified by:
      moveToPrevious in interface Cursor
    • isFirst

      @Implementation public boolean isFirst()
      Specified by:
      isFirst in interface Cursor
    • isLast

      @Implementation public boolean isLast()
      Specified by:
      isLast in interface Cursor
    • isBeforeFirst

      @Implementation public boolean isBeforeFirst()
      Specified by:
      isBeforeFirst in interface Cursor
    • isAfterLast

      @Implementation public boolean isAfterLast()
      Specified by:
      isAfterLast in interface Cursor
    • getColumnIndex

      @Implementation public int getColumnIndex(String s)
      Specified by:
      getColumnIndex in interface Cursor
    • getColumnIndexOrThrow

      @Implementation public int getColumnIndexOrThrow(String s) throws IllegalArgumentException
      Specified by:
      getColumnIndexOrThrow in interface Cursor
      Throws:
      IllegalArgumentException
    • getColumnName

      @Implementation public String getColumnName(int i)
      Specified by:
      getColumnName in interface Cursor
    • getColumnNames

      @Implementation public String[] getColumnNames()
      Specified by:
      getColumnNames in interface Cursor
    • getColumnCount

      @Implementation public int getColumnCount()
      Specified by:
      getColumnCount in interface Cursor
    • getBlob

      @Implementation public byte[] getBlob(int i)
      Specified by:
      getBlob in interface Cursor
    • getString

      @Implementation public String getString(int i)
      Specified by:
      getString in interface Cursor
    • copyStringToBuffer

      @Implementation public void copyStringToBuffer(int i, CharArrayBuffer charArrayBuffer)
      Specified by:
      copyStringToBuffer in interface Cursor
    • getShort

      @Implementation public short getShort(int i)
      Specified by:
      getShort in interface Cursor
    • getInt

      @Implementation public int getInt(int i)
      Specified by:
      getInt in interface Cursor
    • getLong

      @Implementation public long getLong(int i)
      Specified by:
      getLong in interface Cursor
    • getFloat

      @Implementation public float getFloat(int i)
      Specified by:
      getFloat in interface Cursor
    • getDouble

      @Implementation public double getDouble(int i)
      Specified by:
      getDouble in interface Cursor
    • isNull

      @Implementation public boolean isNull(int i)
      Specified by:
      isNull in interface Cursor
    • deactivate

      @Implementation public void deactivate()
      Specified by:
      deactivate in interface Cursor
    • requery

      @Implementation public boolean requery()
      Specified by:
      requery in interface Cursor
    • close

      @Implementation public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface Cursor
    • isClosed

      @Implementation public boolean isClosed()
      Specified by:
      isClosed in interface Cursor
    • registerContentObserver

      @Implementation public void registerContentObserver(ContentObserver contentObserver)
      Specified by:
      registerContentObserver in interface Cursor
    • unregisterContentObserver

      @Implementation public void unregisterContentObserver(ContentObserver contentObserver)
      Specified by:
      unregisterContentObserver in interface Cursor
    • registerDataSetObserver

      @Implementation public void registerDataSetObserver(DataSetObserver dataSetObserver)
      Specified by:
      registerDataSetObserver in interface Cursor
    • unregisterDataSetObserver

      @Implementation public void unregisterDataSetObserver(DataSetObserver dataSetObserver)
      Specified by:
      unregisterDataSetObserver in interface Cursor
    • setNotificationUri

      @Implementation public void setNotificationUri(ContentResolver contentResolver, Uri uri)
      Specified by:
      setNotificationUri in interface Cursor
    • getNotificationUri

      @Implementation(minSdk=19) public Uri getNotificationUri()
      Specified by:
      getNotificationUri in interface Cursor
    • getWantsAllOnMoveCalls

      @Implementation public boolean getWantsAllOnMoveCalls()
      Specified by:
      getWantsAllOnMoveCalls in interface Cursor
    • setExtras

      @Implementation(minSdk=23) public void setExtras(Bundle extras)
      Specified by:
      setExtras in interface Cursor
    • getExtras

      @Implementation public Bundle getExtras()
      Specified by:
      getExtras in interface Cursor
    • respond

      @Implementation public Bundle respond(Bundle bundle)
      Specified by:
      respond in interface Cursor
    • getType

      @Implementation public int getType(int columnIndex)
      Specified by:
      getType in interface Cursor
    • getWrappedCursor

      @Implementation protected Cursor getWrappedCursor()