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) |
|
|---|---|
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 |