java.lang.Object | |
↳ | android.os.BaseBundle |
Known Direct Subclasses |
A mapping from String values to various types.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Removes all elements from the mapping of this Bundle.
| |||||||||||
Returns true if the given key is contained in the mapping
of this Bundle.
| |||||||||||
Returns the entry with the given key as an object.
| |||||||||||
Returns the value associated with the given key, or defaultValue if
no mapping of the desired type exists for the given key.
| |||||||||||
Returns the value associated with the given key, or 0.0 if
no mapping of the desired type exists for the given key.
| |||||||||||
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.
| |||||||||||
Returns the value associated with the given key, or 0 if
no mapping of the desired type exists for the given key.
| |||||||||||
Returns the value associated with the given key, or defaultValue if
no mapping of the desired type exists for the given key.
| |||||||||||
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.
| |||||||||||
Returns the value associated with the given key, or defaultValue if
no mapping of the desired type exists for the given key.
| |||||||||||
Returns the value associated with the given key, or 0L if
no mapping of the desired type exists for the given key.
| |||||||||||
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.
| |||||||||||
Returns the value associated with the given key, or defaultValue if
no mapping of the desired type exists for the given key.
| |||||||||||
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.
| |||||||||||
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.
| |||||||||||
Returns true if the mapping of this Bundle is empty, false otherwise.
| |||||||||||
Returns a Set containing the Strings used as keys in this Bundle.
| |||||||||||
Inserts all mappings from the given PersistableBundle into this BaseBundle.
| |||||||||||
Inserts a double value into the mapping of this Bundle, replacing
any existing value for the given key.
| |||||||||||
Inserts a double array value into the mapping of this Bundle, replacing
any existing value for the given key.
| |||||||||||
Inserts an int value into the mapping of this Bundle, replacing
any existing value for the given key.
| |||||||||||
Inserts an int array value into the mapping of this Bundle, replacing
any existing value for the given key.
| |||||||||||
Inserts a long value into the mapping of this Bundle, replacing
any existing value for the given key.
| |||||||||||
Inserts a long array value into the mapping of this Bundle, replacing
any existing value for the given key.
| |||||||||||
Inserts a String value into the mapping of this Bundle, replacing
any existing value for the given key.
| |||||||||||
Inserts a String array value into the mapping of this Bundle, replacing
any existing value for the given key.
| |||||||||||
Removes any entry with the given key from the mapping of this Bundle.
| |||||||||||
Returns the number of mappings contained in this Bundle.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Removes all elements from the mapping of this Bundle.
Returns true if the given key is contained in the mapping of this Bundle.
key | a String key |
---|
Returns the entry with the given key as an object.
key | a String key |
---|
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
key | a String |
---|---|
defaultValue | Value to return if key does not exist |
Returns the value associated with the given key, or 0.0 if no mapping of the desired type exists for the given key.
key | a String |
---|
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 |
---|
Returns the value associated with the given key, or 0 if no mapping of the desired type exists for the given key.
key | a String |
---|
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
key | a String |
---|---|
defaultValue | Value to return if key does not exist |
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 |
---|
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
key | a String |
---|---|
defaultValue | Value to return if key does not exist |
Returns the value associated with the given key, or 0L if no mapping of the desired type exists for the given key.
key | a String |
---|
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 |
---|
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
key | a String, or null |
---|---|
defaultValue | Value to return if key does not exist |
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 |
---|
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 |
---|
Returns true if the mapping of this Bundle is empty, false otherwise.
Returns a Set containing the Strings used as keys in this Bundle.
Inserts all mappings from the given PersistableBundle into this BaseBundle.
bundle | a PersistableBundle |
---|
Inserts a double value into the mapping of this Bundle, replacing any existing value for the given key.
key | a String, or null |
---|---|
value | a double |
Inserts a double array 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 double array object, or null |
Inserts an int value into the mapping of this Bundle, replacing any existing value for the given key.
key | a String, or null |
---|---|
value | an int, or null |
Inserts an int array 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 | an int array object, or null |
Inserts a long value into the mapping of this Bundle, replacing any existing value for the given key.
key | a String, or null |
---|---|
value | a long |
Inserts a long array 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 long array object, or null |
Inserts a String 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 String, or null |
Inserts a String array 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 String array object, or null |
Removes any entry with the given key from the mapping of this Bundle.
key | a String key |
---|
Returns the number of mappings contained in this Bundle.