java.lang.Object | |
↳ | android.content.ContentValues |
This class is used to store a set of values that the
ContentResolver
can process.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | TAG |
[Expand]
Inherited Constants
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Creates an empty set of values using the default initial size
|
||||||||||
|
Creates an empty set of values using the given initial size
|
||||||||||
|
Creates a set of values copied from the given set
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Removes all values.
|
||||||||||
|
Returns true if this object has the named value.
|
||||||||||
|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
|
||||||||||
|
Compares this instance with the specified object and indicates if they
are equal.
|
||||||||||
|
Gets a value.
|
||||||||||
|
Gets a value and converts it to a Boolean.
|
||||||||||
|
Gets a value and converts it to a Byte.
|
||||||||||
|
Gets a value that is a byte array.
|
||||||||||
|
Gets a value and converts it to a Double.
|
||||||||||
|
Gets a value and converts it to a Float.
|
||||||||||
|
Gets a value and converts it to an Integer.
|
||||||||||
|
Gets a value and converts it to a Long.
|
||||||||||
|
Gets a value and converts it to a Short.
|
||||||||||
|
Gets a value and converts it to a String.
|
||||||||||
|
Returns an integer hash code for this object.
|
||||||||||
|
Returns a set of all of the keys
|
||||||||||
|
Adds a value to the set.
|
||||||||||
|
Adds a value to the set.
|
||||||||||
|
Adds a value to the set.
|
||||||||||
|
Adds a value to the set.
|
||||||||||
|
Adds a value to the set.
|
||||||||||
|
Adds a value to the set.
|
||||||||||
|
Adds a value to the set.
|
||||||||||
|
Adds a value to the set.
|
||||||||||
|
Adds a value to the set.
|
||||||||||
|
Adds all values from the passed in ContentValues.
|
||||||||||
|
Adds a null value to the set.
|
||||||||||
|
Remove a single value.
|
||||||||||
|
Returns the number of values.
|
||||||||||
|
Returns a string containing a concise, human-readable description of this object.
|
||||||||||
|
Returns a set of all of the keys and values
|
||||||||||
|
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
|||||||||||
From interface
android.os.Parcelable
|
Creates an empty set of values using the default initial size
Creates an empty set of values using the given initial size
size | the initial size of the set of values |
---|
Creates a set of values copied from the given set
from | the values to copy |
---|
Returns true if this object has the named value.
key | the value to check for |
---|
true
if the value is present,
false
otherwise
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Compares this instance with the specified object and indicates if they
are equal. In order to be equal,
o
must represent the same object
as this instance using a class-specific comparison. The general contract
is that this comparison should be reflexive, symmetric, and transitive.
Also, no object reference other than null is equal to null.
The default implementation returns
true
only if
this ==
o
. See
Writing a correct
equals
method
if you intend implementing your own
equals
method.
The general contract for the
equals
and
hashCode()
methods is that if
equals
returns
true
for
any two objects, then
hashCode()
must return the same value for
these objects. This means that subclasses of
Object
usually
override either both methods or neither of them.
object | the object to compare this instance with. |
---|
true
if the specified object is equal to this
Object
;
false
otherwise.
Gets a value and converts it to a Boolean.
key | the value to get |
---|
Gets a value and converts it to a Byte.
key | the value to get |
---|
Gets a value that is a byte array. Note that this method will not convert any other types to byte arrays.
key | the value to get |
---|
Gets a value and converts it to a Double.
key | the value to get |
---|
Gets a value and converts it to a Float.
key | the value to get |
---|
Gets a value and converts it to an Integer.
key | the value to get |
---|
Gets a value and converts it to a Long.
key | the value to get |
---|
Gets a value and converts it to a Short.
key | the value to get |
---|
Gets a value and converts it to a String.
key | the value to get |
---|
Returns an integer hash code for this object. By contract, any two
objects for which
equals(Object)
returns
true
must return
the same hash code value. This means that subclasses of
Object
usually override both methods or neither method.
Note that hash values must not change over time unless information used in equals comparisons also changes.
See
Writing a correct
hashCode
method
if you intend implementing your own
hashCode
method.
Returns a set of all of the keys
Adds a value to the set.
key | the name of the value to put |
---|---|
value | the data for the value to put |
Adds a value to the set.
key | the name of the value to put |
---|---|
value | the data for the value to put |
Adds a value to the set.
key | the name of the value to put |
---|---|
value | the data for the value to put |
Adds a value to the set.
key | the name of the value to put |
---|---|
value | the data for the value to put |
Adds a value to the set.
key | the name of the value to put |
---|---|
value | the data for the value to put |
Adds a value to the set.
key | the name of the value to put |
---|---|
value | the data for the value to put |
Adds a value to the set.
key | the name of the value to put |
---|---|
value | the data for the value to put |
Adds a value to the set.
key | the name of the value to put |
---|---|
value | the data for the value to put |
Adds a value to the set.
key | the name of the value to put |
---|---|
value | the data for the value to put |
Adds all values from the passed in ContentValues.
other | the ContentValues from which to copy |
---|
Adds a null value to the set.
key | the name of the value to make null |
---|
Remove a single value.
key | the name of the value to remove |
---|
Returns a string containing a concise, human-readable description of this object.
Returns a set of all of the keys and values
Flatten this object in to a Parcel.
parcel | The Parcel in which the object should be written. |
---|---|
flags |
Additional flags about how the object should be written.
May be 0 or
PARCELABLE_WRITE_RETURN_VALUE
.
|