java.lang.Object | ||
↳ | android.os.BaseBundle | |
↳ | android.os.PersistableBundle |
A mapping from String values to various types that can be saved to persistent and later restored.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR | |||||||||||
EMPTY |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new, empty PersistableBundle.
| |||||||||||
Constructs a new, empty PersistableBundle sized to hold the given number of
elements.
| |||||||||||
Constructs a PersistableBundle containing a copy of the mappings from the given
PersistableBundle.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clones the current PersistableBundle.
| |||||||||||
Report the nature of this Parcelable's contents
| |||||||||||
Returns the value associated with the given key, or null if
no mapping of the desired type exists for the given key or a null
value is explicitly associated with the key.
| |||||||||||
Inserts a PersistableBundle value into the mapping of this Bundle, replacing
any existing value for the given key.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
| |||||||||||
Writes the PersistableBundle contents to a Parcel, typically in order for
it to be passed through an IBinder connection.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.os.BaseBundle
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Constructs a new, empty PersistableBundle.
Constructs a new, empty PersistableBundle sized to hold the given number of elements. The PersistableBundle will grow as needed.
capacity | the initial capacity of the PersistableBundle |
---|
Constructs a PersistableBundle containing a copy of the mappings from the given PersistableBundle.
b | a PersistableBundle to be copied. |
---|
Clones the current PersistableBundle. The internal map is cloned, but the keys and values to which it refers are copied by reference.
Report the nature of this Parcelable's contents
Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.
key | a String, or null |
---|
Inserts a PersistableBundle value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.
key | a String, or null |
---|---|
value | a Bundle object, or null |
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 is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.
Writes the PersistableBundle contents to a Parcel, typically in order for it to be passed through an IBinder connection.
parcel | The parcel to copy this bundle to. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|