Class RoboCursor

  • All Implemented Interfaces:
    android.database.Cursor, java.io.Closeable, java.lang.AutoCloseable

    @Deprecated
    public class RoboCursor
    extends BaseCursor
    Deprecated.
    Use MatrixCursor instead.
    Robolectric implementation of Cursor.
    • Field Detail

      • uri

        public android.net.Uri uri
        Deprecated.
      • projection

        public java.lang.String[] projection
        Deprecated.
      • selection

        public java.lang.String selection
        Deprecated.
      • selectionArgs

        public java.lang.String[] selectionArgs
        Deprecated.
      • sortOrder

        public java.lang.String sortOrder
        Deprecated.
      • results

        protected java.lang.Object[][] results
        Deprecated.
      • columnNames

        protected java.util.List<java.lang.String> columnNames
        Deprecated.
    • Constructor Detail

      • RoboCursor

        public RoboCursor()
        Deprecated.
    • Method Detail

      • setQuery

        public void setQuery​(android.net.Uri uri,
                             java.lang.String[] projection,
                             java.lang.String selection,
                             java.lang.String[] selectionArgs,
                             java.lang.String sortOrder)
        Deprecated.
        Overrides:
        setQuery in class BaseCursor
      • getColumnIndexOrThrow

        public int getColumnIndexOrThrow​(java.lang.String columnName)
                                  throws java.lang.IllegalArgumentException
        Deprecated.
        Specified by:
        getColumnIndexOrThrow in interface android.database.Cursor
        Overrides:
        getColumnIndexOrThrow in class BaseCursor
        Throws:
        java.lang.IllegalArgumentException
      • getColumnIndex

        public int getColumnIndex​(java.lang.String columnName)
        Deprecated.
        Specified by:
        getColumnIndex in interface android.database.Cursor
        Overrides:
        getColumnIndex in class BaseCursor
      • getString

        public java.lang.String getString​(int columnIndex)
        Deprecated.
        Specified by:
        getString in interface android.database.Cursor
        Overrides:
        getString in class BaseCursor
      • getShort

        public short getShort​(int columnIndex)
        Deprecated.
        Specified by:
        getShort in interface android.database.Cursor
        Overrides:
        getShort in class BaseCursor
      • getInt

        public int getInt​(int columnIndex)
        Deprecated.
        Specified by:
        getInt in interface android.database.Cursor
        Overrides:
        getInt in class BaseCursor
      • getLong

        public long getLong​(int columnIndex)
        Deprecated.
        Specified by:
        getLong in interface android.database.Cursor
        Overrides:
        getLong in class BaseCursor
      • getFloat

        public float getFloat​(int columnIndex)
        Deprecated.
        Specified by:
        getFloat in interface android.database.Cursor
        Overrides:
        getFloat in class BaseCursor
      • getDouble

        public double getDouble​(int columnIndex)
        Deprecated.
        Specified by:
        getDouble in interface android.database.Cursor
        Overrides:
        getDouble in class BaseCursor
      • getBlob

        public byte[] getBlob​(int columnIndex)
        Deprecated.
        Specified by:
        getBlob in interface android.database.Cursor
        Overrides:
        getBlob in class BaseCursor
      • getType

        public int getType​(int columnIndex)
        Deprecated.
        Specified by:
        getType in interface android.database.Cursor
        Overrides:
        getType in class BaseCursor
      • isNull

        public boolean isNull​(int columnIndex)
        Deprecated.
        Specified by:
        isNull in interface android.database.Cursor
        Overrides:
        isNull in class BaseCursor
      • getCount

        public int getCount()
        Deprecated.
        Specified by:
        getCount in interface android.database.Cursor
        Overrides:
        getCount in class BaseCursor
      • moveToNext

        public boolean moveToNext()
        Deprecated.
        Specified by:
        moveToNext in interface android.database.Cursor
        Overrides:
        moveToNext in class BaseCursor
      • moveToFirst

        public boolean moveToFirst()
        Deprecated.
        Specified by:
        moveToFirst in interface android.database.Cursor
        Overrides:
        moveToFirst in class BaseCursor
      • moveToPosition

        public boolean moveToPosition​(int position)
        Deprecated.
        Specified by:
        moveToPosition in interface android.database.Cursor
        Overrides:
        moveToPosition in class BaseCursor
      • close

        public void close()
        Deprecated.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface android.database.Cursor
        Overrides:
        close in class BaseCursor
      • getColumnCount

        public int getColumnCount()
        Deprecated.
        Specified by:
        getColumnCount in interface android.database.Cursor
        Overrides:
        getColumnCount in class BaseCursor
      • getColumnName

        public java.lang.String getColumnName​(int index)
        Deprecated.
        Specified by:
        getColumnName in interface android.database.Cursor
        Overrides:
        getColumnName in class BaseCursor
      • isBeforeFirst

        public boolean isBeforeFirst()
        Deprecated.
        Specified by:
        isBeforeFirst in interface android.database.Cursor
        Overrides:
        isBeforeFirst in class BaseCursor
      • isAfterLast

        public boolean isAfterLast()
        Deprecated.
        Specified by:
        isAfterLast in interface android.database.Cursor
        Overrides:
        isAfterLast in class BaseCursor
      • isFirst

        public boolean isFirst()
        Deprecated.
        Specified by:
        isFirst in interface android.database.Cursor
        Overrides:
        isFirst in class BaseCursor
      • isLast

        public boolean isLast()
        Deprecated.
        Specified by:
        isLast in interface android.database.Cursor
        Overrides:
        isLast in class BaseCursor
      • getPosition

        public int getPosition()
        Deprecated.
        Specified by:
        getPosition in interface android.database.Cursor
        Overrides:
        getPosition in class BaseCursor
      • move

        public boolean move​(int offset)
        Deprecated.
        Specified by:
        move in interface android.database.Cursor
        Overrides:
        move in class BaseCursor
      • moveToLast

        public boolean moveToLast()
        Deprecated.
        Specified by:
        moveToLast in interface android.database.Cursor
        Overrides:
        moveToLast in class BaseCursor
      • moveToPrevious

        public boolean moveToPrevious()
        Deprecated.
        Specified by:
        moveToPrevious in interface android.database.Cursor
        Overrides:
        moveToPrevious in class BaseCursor
      • getColumnNames

        public java.lang.String[] getColumnNames()
        Deprecated.
        Specified by:
        getColumnNames in interface android.database.Cursor
        Overrides:
        getColumnNames in class BaseCursor
      • isClosed

        public boolean isClosed()
        Deprecated.
        Specified by:
        isClosed in interface android.database.Cursor
        Overrides:
        isClosed in class BaseCursor
      • getExtras

        public android.os.Bundle getExtras()
        Deprecated.
        Specified by:
        getExtras in interface android.database.Cursor
        Overrides:
        getExtras in class BaseCursor
      • setExtras

        public void setExtras​(android.os.Bundle extras)
        Deprecated.
        Specified by:
        setExtras in interface android.database.Cursor
        Overrides:
        setExtras in class BaseCursor
      • setColumnNames

        public void setColumnNames​(java.util.List<java.lang.String> columnNames)
        Deprecated.
      • setResults

        public void setResults​(java.lang.Object[][] results)
        Deprecated.
      • getCloseWasCalled

        public boolean getCloseWasCalled()
        Deprecated.