public class ContentProviderResult extends Object implements Parcelable
ContentProviderOperation
. It is guaranteed
to have exactly one of uri
or count
set.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
Integer |
count |
static Parcelable.Creator<ContentProviderResult> |
CREATOR |
Uri |
uri |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
ContentProviderResult(int count) |
ContentProviderResult(Parcel source) |
ContentProviderResult(Uri uri) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
|
String |
toString()
Returns a string containing a concise, human-readable description of this
object.
|
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object in to a Parcel.
|
public final Uri uri
public final Integer count
public static final Parcelable.Creator<ContentProviderResult> CREATOR
public ContentProviderResult(Uri uri)
public ContentProviderResult(int count)
public ContentProviderResult(Parcel source)
public void writeToParcel(Parcel dest, int flags)
Parcelable
writeToParcel
in interface Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.public int describeContents()
Parcelable
describeContents
in interface Parcelable
public String toString()
Object
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.