public class MatrixCursor.RowBuilder
extends Object
java.lang.Object | |
↳ | android.database.MatrixCursor.RowBuilder |
使用以下任一方法构建一行值:
add(Object)
, which starts from the left-most column and adds one column value at a time. This follows the same ordering as the column names specified at cursor construction time. add(String, Object)
. If the cursor includes the given column, the value will be set for that column, otherwise the value is ignored. This approach is useful when matching data to a custom projection. null
.
Public methods |
|
---|---|
MatrixCursor.RowBuilder |
add(Object columnValue) 设置此行中的下一列值。 |
MatrixCursor.RowBuilder |
add(String columnName, Object value) 如果此游标定义给定列,则提供可能包含的值。 |
Inherited methods |
|
---|---|
From class java.lang.Object
|
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 |
MatrixCursor.RowBuilder add (String columnName, Object value)
如果此游标定义给定列,则提供可能包含的值。 没有被游标定义的列被静默地忽略。
Parameters | |
---|---|
columnName |
String
|
value |
Object
|
Returns | |
---|---|
MatrixCursor.RowBuilder |
this builder to support chaining |