Class BaseCursor

java.lang.Object
org.robolectric.fakes.BaseCursor
All Implemented Interfaces:
Cursor, Closeable, AutoCloseable
Direct Known Subclasses:
RoboCursor

@Deprecated public class BaseCursor extends Object implements Cursor
Deprecated.
Use MatrixCursor instead.
Robolectric implementation of Cursor.
  • Constructor Details

    • BaseCursor

      public BaseCursor()
      Deprecated.
  • Method Details

    • getCount

      public int getCount()
      Deprecated.
      Specified by:
      getCount in interface Cursor
    • getPosition

      public int getPosition()
      Deprecated.
      Specified by:
      getPosition in interface Cursor
    • move

      public boolean move(int offset)
      Deprecated.
      Specified by:
      move in interface Cursor
    • moveToPosition

      public boolean moveToPosition(int position)
      Deprecated.
      Specified by:
      moveToPosition in interface Cursor
    • moveToFirst

      public boolean moveToFirst()
      Deprecated.
      Specified by:
      moveToFirst in interface Cursor
    • moveToLast

      public boolean moveToLast()
      Deprecated.
      Specified by:
      moveToLast in interface Cursor
    • moveToNext

      public boolean moveToNext()
      Deprecated.
      Specified by:
      moveToNext in interface Cursor
    • moveToPrevious

      public boolean moveToPrevious()
      Deprecated.
      Specified by:
      moveToPrevious in interface Cursor
    • isFirst

      public boolean isFirst()
      Deprecated.
      Specified by:
      isFirst in interface Cursor
    • isLast

      public boolean isLast()
      Deprecated.
      Specified by:
      isLast in interface Cursor
    • isBeforeFirst

      public boolean isBeforeFirst()
      Deprecated.
      Specified by:
      isBeforeFirst in interface Cursor
    • isAfterLast

      public boolean isAfterLast()
      Deprecated.
      Specified by:
      isAfterLast in interface Cursor
    • getColumnIndex

      public int getColumnIndex(String columnName)
      Deprecated.
      Specified by:
      getColumnIndex in interface Cursor
    • getColumnIndexOrThrow

      public int getColumnIndexOrThrow(String columnName) throws IllegalArgumentException
      Deprecated.
      Specified by:
      getColumnIndexOrThrow in interface Cursor
      Throws:
      IllegalArgumentException
    • getColumnName

      public String getColumnName(int columnIndex)
      Deprecated.
      Specified by:
      getColumnName in interface Cursor
    • getColumnNames

      public String[] getColumnNames()
      Deprecated.
      Specified by:
      getColumnNames in interface Cursor
    • getColumnCount

      public int getColumnCount()
      Deprecated.
      Specified by:
      getColumnCount in interface Cursor
    • getBlob

      public byte[] getBlob(int columnIndex)
      Deprecated.
      Specified by:
      getBlob in interface Cursor
    • getString

      public String getString(int columnIndex)
      Deprecated.
      Specified by:
      getString in interface Cursor
    • copyStringToBuffer

      public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer)
      Deprecated.
      Specified by:
      copyStringToBuffer in interface Cursor
    • getShort

      public short getShort(int columnIndex)
      Deprecated.
      Specified by:
      getShort in interface Cursor
    • getInt

      public int getInt(int columnIndex)
      Deprecated.
      Specified by:
      getInt in interface Cursor
    • getLong

      public long getLong(int columnIndex)
      Deprecated.
      Specified by:
      getLong in interface Cursor
    • getFloat

      public float getFloat(int columnIndex)
      Deprecated.
      Specified by:
      getFloat in interface Cursor
    • getDouble

      public double getDouble(int columnIndex)
      Deprecated.
      Specified by:
      getDouble in interface Cursor
    • isNull

      public boolean isNull(int columnIndex)
      Deprecated.
      Specified by:
      isNull in interface Cursor
    • deactivate

      public void deactivate()
      Deprecated.
      Specified by:
      deactivate in interface Cursor
    • requery

      public boolean requery()
      Deprecated.
      Specified by:
      requery in interface Cursor
    • close

      public void close()
      Deprecated.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface Cursor
    • isClosed

      public boolean isClosed()
      Deprecated.
      Specified by:
      isClosed in interface Cursor
    • registerContentObserver

      public void registerContentObserver(ContentObserver observer)
      Deprecated.
      Specified by:
      registerContentObserver in interface Cursor
    • unregisterContentObserver

      public void unregisterContentObserver(ContentObserver observer)
      Deprecated.
      Specified by:
      unregisterContentObserver in interface Cursor
    • registerDataSetObserver

      public void registerDataSetObserver(DataSetObserver observer)
      Deprecated.
      Specified by:
      registerDataSetObserver in interface Cursor
    • unregisterDataSetObserver

      public void unregisterDataSetObserver(DataSetObserver observer)
      Deprecated.
      Specified by:
      unregisterDataSetObserver in interface Cursor
    • setNotificationUri

      public void setNotificationUri(ContentResolver cr, Uri uri)
      Deprecated.
      Specified by:
      setNotificationUri in interface Cursor
    • getNotificationUri

      public Uri getNotificationUri()
      Deprecated.
      Specified by:
      getNotificationUri in interface Cursor
    • getWantsAllOnMoveCalls

      public boolean getWantsAllOnMoveCalls()
      Deprecated.
      Specified by:
      getWantsAllOnMoveCalls in interface Cursor
    • setExtras

      public void setExtras(Bundle extras)
      Deprecated.
      Specified by:
      setExtras in interface Cursor
    • getExtras

      public Bundle getExtras()
      Deprecated.
      Specified by:
      getExtras in interface Cursor
    • respond

      public Bundle respond(Bundle extras)
      Deprecated.
      Specified by:
      respond in interface Cursor
    • getType

      public int getType(int columnIndex)
      Deprecated.
      Specified by:
      getType in interface Cursor
    • setQuery

      public void setQuery(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)
      Deprecated.