add public method in ContentValues to return set of all keys

why not this method? it is useful and cheap.

Change-Id: I5db96d149b13d26b5359b52515a8eabf033eb000
This commit is contained in:
Vasu Nori
2010-08-02 16:45:47 -07:00
parent 1da47a9401
commit 532abb6530
2 changed files with 20 additions and 0 deletions

View File

@@ -41061,6 +41061,17 @@
<parameter name="key" type="java.lang.String">
</parameter>
</method>
<method name="keySet"
return="java.util.Set&lt;java.lang.String&gt;"
abstract="false"
native="false"
synchronized="false"
static="false"
final="false"
deprecated="not deprecated"
visibility="public"
>
</method>
<method name="put"
return="void"
abstract="false"

View File

@@ -446,6 +446,15 @@ public final class ContentValues implements Parcelable {
return mValues.entrySet();
}
/**
* Returns a set of all of the keys
*
* @return a set of all of the keys
*/
public Set<String> keySet() {
return mValues.keySet();
}
public static final Parcelable.Creator<ContentValues> CREATOR =
new Parcelable.Creator<ContentValues>() {
@SuppressWarnings({"deprecation", "unchecked"})