Package android.os
Class PersistableBundle
- java.lang.Object
-
- android.os.BaseBundle
-
- android.os.PersistableBundle
-
- All Implemented Interfaces:
Parcelable
,java.lang.Cloneable
public final class PersistableBundle extends BaseBundle implements Parcelable, java.lang.Cloneable
A simpler variant ofBundle
that only contains a few basic types and itself.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class android.os.BaseBundle
BaseBundle.Type
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<P>, Parcelable.Creator<P>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<PersistableBundle>
CREATOR
static PersistableBundle
EMPTY
-
Fields inherited from class android.os.BaseBundle
map
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Constructor Description PersistableBundle()
PersistableBundle(int capacity)
PersistableBundle(PersistableBundle bundle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
int
describeContents()
Describe the kinds of special objects contained in this Parcelable's marshaled representation.PersistableBundle
getPersistableBundle(java.lang.String key)
void
putPersistableBundle(java.lang.String key, PersistableBundle bundle)
void
writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel.-
Methods inherited from class android.os.BaseBundle
clear, containsKey, equals, get, get, getBoolean, getBooleanArray, getDouble, getDouble, getDoubleArray, getInt, getInt, getIntArray, getLong, getLong, getLongArray, getString, getString, getStringArray, hashCode, isEmpty, keySet, put, putAll, putBoolean, putBooleanArray, putDouble, putDoubleArray, putInt, putIntArray, putLong, putLongArray, putString, putStringArray, readFromParcel, remove, size, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<PersistableBundle> CREATOR
-
EMPTY
public static final PersistableBundle EMPTY
-
-
Constructor Detail
-
PersistableBundle
public PersistableBundle(int capacity)
-
PersistableBundle
public PersistableBundle()
-
PersistableBundle
public PersistableBundle(PersistableBundle bundle)
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.lang.Object
-
getPersistableBundle
public PersistableBundle getPersistableBundle(java.lang.String key)
-
putPersistableBundle
public void putPersistableBundle(java.lang.String key, PersistableBundle bundle)
-
describeContents
public int describeContents()
Description copied from interface:Parcelable
Describe the kinds of special objects contained in this Parcelable's marshaled representation.- Specified by:
describeContents
in interfaceParcelable
- Returns:
- Bitmask of CONTENTS_* flags.
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
Description copied from interface:Parcelable
Flatten this object in to a Parcel.- Specified by:
writeToParcel
in interfaceParcelable
- Parameters:
dest
- The parcelable to write to.flags
- Bitmask of PARCELABLE_WRITE_* flags.
-
-