java.lang.Object | |
↳ | android.content.ContentValues |
This class is used to store a set of values that the ContentResolver can process.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creator<ContentValues> | CREATOR | ||||||||||
String | TAG |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
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.
| |||||||||||
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 |
---|
Removes all values.
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 both transitive and reflexive.
The implementation in Object
returns true
only if o
is the exact same object as the receiver (using the == operator for
comparison). Subclasses often implement equals(Object)
so that
it takes into account the two object's types and states.
The general contract for the equals(Object)
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 none 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.
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 the number of values.
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation simply concatenates the class name, the '@' sign and a hexadecimal representation of the object's hashCode(), that is, it is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
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. |