Most visited

Recently visited

Added in API level 1

MatrixCursor.RowBuilder

public class MatrixCursor.RowBuilder
extends Object

java.lang.Object
   ↳ android.database.MatrixCursor.RowBuilder


使用以下任一方法构建一行值:

Undefined values are left as null.

Summary

Public methods

MatrixCursor.RowBuilder add(Object columnValue)

设置此行中的下一列值。

MatrixCursor.RowBuilder add(String columnName, Object value)

如果此游标定义给定列,则提供可能包含的值。

Inherited methods

From class java.lang.Object

Public methods

add

Added in API level 1
MatrixCursor.RowBuilder add (Object columnValue)

设置此行中的下一列值。

Parameters
columnValue Object
Returns
MatrixCursor.RowBuilder this builder to support chaining
Throws
CursorIndexOutOfBoundsException if you try to add too many values

add

Added in API level 19
MatrixCursor.RowBuilder add (String columnName, 
                Object value)

如果此游标定义给定列,则提供可能包含的值。 没有被游标定义的列被静默地忽略。

Parameters
columnName String
value Object
Returns
MatrixCursor.RowBuilder this builder to support chaining

Hooray!