diff options
author | Jeff Sharkey <jsharkey@android.com> | 2013-09-09 17:46:54 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2013-09-09 17:55:10 -0700 |
commit | b7757a6b32edea62a1a9a803ad83579220f26100 (patch) | |
tree | 776fdedeb15d49f65d0d74e0d642d8bb52f640a2 /core/java/android/database | |
parent | fb3445c9b31c7f8401d6eec0606dabee366c8aad (diff) | |
download | frameworks_base-b7757a6b32edea62a1a9a803ad83579220f26100.zip frameworks_base-b7757a6b32edea62a1a9a803ad83579220f26100.tar.gz frameworks_base-b7757a6b32edea62a1a9a803ad83579220f26100.tar.bz2 |
Rename offer() to add(), remove/hide some APIs.
Change MatrixCursor offer() to add() based on review feedback. Remove
some now-unused XML metadata. Hide document creation, since it's not
supported in initial version.
Bug: 10577809, 10461706, 10678563
Change-Id: I7b3f4c6899c28f633471ef816bee22bf032aa0d2
Diffstat (limited to 'core/java/android/database')
-rw-r--r-- | core/java/android/database/MatrixCursor.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/database/MatrixCursor.java b/core/java/android/database/MatrixCursor.java index 2a0d9b9..5e107f2 100644 --- a/core/java/android/database/MatrixCursor.java +++ b/core/java/android/database/MatrixCursor.java @@ -186,7 +186,7 @@ public class MatrixCursor extends AbstractCursor { * column value at a time. This follows the same ordering as the column * names specified at cursor construction time. * <li>Column and value pairs can be offered for possible inclusion using - * {@link #offer(String, Object)}. If the cursor includes the given column, + * {@link #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. * </ul> @@ -227,7 +227,7 @@ public class MatrixCursor extends AbstractCursor { * * @return this builder to support chaining */ - public RowBuilder offer(String columnName, Object value) { + public RowBuilder add(String columnName, Object value) { for (int i = 0; i < columnNames.length; i++) { if (columnName.equals(columnNames[i])) { data[(row * columnCount) + i] = value; |