Build 1.0_r1(from source)

android.os
Class Bundle

java.lang.Object
  extended by android.os.Bundle
All Implemented Interfaces:
Parcelable, Cloneable

public final class Bundle
extends Object
implements Parcelable, Cloneable

A mapping from String values to various Parcelable types.


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<Bundle> CREATOR
           
static Bundle EMPTY
           
(package private)  Map<String,Object> mMap
           
(package private)  Parcel mParcelledData
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
Bundle()
          Constructs a new, empty Bundle.
Bundle(Bundle b)
          Constructs a Bundle containing a copy of the mappings from the given Bundle.
Bundle(ClassLoader loader)
          Constructs a new, empty Bundle that uses a specific ClassLoader for instantiating Parcelable and Serializable objects.
Bundle(int capacity)
          Constructs a new, empty Bundle sized to hold the given number of elements.
Bundle(Parcel parcelledData)
          Constructs a Bundle whose data is stored as a Parcel.
 
Method Summary
 void clear()
          Removes all elements from the mapping of this Bundle.
 Object clone()
          Clones the current Bundle.
 boolean containsKey(String key)
          Returns true if the given key is contained in the mapping of this Bundle.
 int describeContents()
          Report the nature of this Parcelable's contents
 Object get(String key)
          Returns the entry with the given key as an object.
 boolean getBoolean(String key)
          Returns the value associated with the given key, or false if no mapping of the desired type exists for the given key.
 boolean getBoolean(String key, boolean defaultValue)
          Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
 boolean[] getBooleanArray(String 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.
 Bundle getBundle(String 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.
 byte getByte(String key)
          Returns the value associated with the given key, or (byte) 0 if no mapping of the desired type exists for the given key.
 Byte getByte(String key, byte defaultValue)
          Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
 byte[] getByteArray(String 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.
 char getChar(String key)
          Returns the value associated with the given key, or false if no mapping of the desired type exists for the given key.
 char getChar(String key, char defaultValue)
          Returns the value associated with the given key, or (char) 0 if no mapping of the desired type exists for the given key.
 char[] getCharArray(String 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.
 CharSequence getCharSequence(String 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.
 double getDouble(String key)
          Returns the value associated with the given key, or 0.0 if no mapping of the desired type exists for the given key.
 double getDouble(String key, double defaultValue)
          Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
 double[] getDoubleArray(String 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.
 float getFloat(String key)
          Returns the value associated with the given key, or 0.0f if no mapping of the desired type exists for the given key.
 float getFloat(String key, float defaultValue)
          Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
 float[] getFloatArray(String 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.
 IBinder getIBinder(String key)
          Deprecated.  
 int getInt(String key)
          Returns the value associated with the given key, or 0 if no mapping of the desired type exists for the given key.
 int getInt(String key, int defaultValue)
          Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
 int[] getIntArray(String 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.
 ArrayList<Integer> getIntegerArrayList(String 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.
 long getLong(String key)
          Returns the value associated with the given key, or 0L if no mapping of the desired type exists for the given key.
 long getLong(String key, long defaultValue)
          Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
 long[] getLongArray(String 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.
<T extends Parcelable>
T
getParcelable(String 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.
 Parcelable[] getParcelableArray(String 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.
<T extends Parcelable>
ArrayList<T>
getParcelableArrayList(String 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.
 Serializable getSerializable(String 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.
 short getShort(String key)
          Returns the value associated with the given key, or (short) 0 if no mapping of the desired type exists for the given key.
 short getShort(String key, short defaultValue)
          Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
 short[] getShortArray(String 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.
<T extends Parcelable>
SparseArray<T>
getSparseParcelableArray(String 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.
 String getString(String 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.
 String[] getStringArray(String 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.
 ArrayList<String> getStringArrayList(String 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.
 boolean hasFileDescriptors()
          Reports whether the bundle contains any parcelled file descriptors.
 boolean isEmpty()
          Returns true if the mapping of this Bundle is empty, false otherwise.
 Set<String> keySet()
          Returns a Set containing the Strings used as keys in this Bundle.
 void putAll(Bundle map)
          Inserts all mappings from the given Bundle into this Bundle.
 void putBoolean(String key, boolean value)
          Inserts a Boolean value into the mapping of this Bundle, replacing any existing value for the given key.
 void putBooleanArray(String key, boolean[] value)
          Inserts a boolean array value into the mapping of this Bundle, replacing any existing value for the given key.
 void putBundle(String key, Bundle value)
          Inserts a Bundle value into the mapping of this Bundle, replacing any existing value for the given key.
 void putByte(String key, byte value)
          Inserts a byte value into the mapping of this Bundle, replacing any existing value for the given key.
 void putByteArray(String key, byte[] value)
          Inserts a byte array value into the mapping of this Bundle, replacing any existing value for the given key.
 void putChar(String key, char value)
          Inserts a char value into the mapping of this Bundle, replacing any existing value for the given key.
 void putCharArray(String key, char[] value)
          Inserts a char array value into the mapping of this Bundle, replacing any existing value for the given key.
 void putCharSequence(String key, CharSequence value)
          Inserts a CharSequence value into the mapping of this Bundle, replacing any existing value for the given key.
 void putDouble(String key, double value)
          Inserts a double value into the mapping of this Bundle, replacing any existing value for the given key.
 void putDoubleArray(String key, double[] value)
          Inserts a double array value into the mapping of this Bundle, replacing any existing value for the given key.
 void putFloat(String key, float value)
          Inserts a float value into the mapping of this Bundle, replacing any existing value for the given key.
 void putFloatArray(String key, float[] value)
          Inserts a float array value into the mapping of this Bundle, replacing any existing value for the given key.
 void putIBinder(String key, IBinder value)
          Deprecated.  
 void putInt(String key, int value)
          Inserts an int value into the mapping of this Bundle, replacing any existing value for the given key.
 void putIntArray(String key, int[] value)
          Inserts an int array value into the mapping of this Bundle, replacing any existing value for the given key.
 void putIntegerArrayList(String key, ArrayList<Integer> value)
          Inserts an ArrayList value into the mapping of this Bundle, replacing any existing value for the given key.
 void putLong(String key, long value)
          Inserts a long value into the mapping of this Bundle, replacing any existing value for the given key.
 void putLongArray(String key, long[] value)
          Inserts a long array value into the mapping of this Bundle, replacing any existing value for the given key.
 void putParcelable(String key, Parcelable value)
          Inserts a Parcelable value into the mapping of this Bundle, replacing any existing value for the given key.
 void putParcelableArray(String key, Parcelable[] value)
          Inserts an array of Parcelable values into the mapping of this Bundle, replacing any existing value for the given key.
 void putParcelableArrayList(String key, ArrayList<? extends Parcelable> value)
          Inserts a List of Parcelable values into the mapping of this Bundle, replacing any existing value for the given key.
 void putSerializable(String key, Serializable value)
          Inserts a Serializable value into the mapping of this Bundle, replacing any existing value for the given key.
 void putShort(String key, short value)
          Inserts a short value into the mapping of this Bundle, replacing any existing value for the given key.
 void putShortArray(String key, short[] value)
          Inserts a short array value into the mapping of this Bundle, replacing any existing value for the given key.
 void putSparseParcelableArray(String key, SparseArray<? extends Parcelable> value)
          Inserts a SparceArray of Parcelable values into the mapping of this Bundle, replacing any existing value for the given key.
 void putString(String key, String value)
          Inserts a String value into the mapping of this Bundle, replacing any existing value for the given key.
 void putStringArray(String key, String[] value)
          Inserts a String array value into the mapping of this Bundle, replacing any existing value for the given key.
 void putStringArrayList(String key, ArrayList<String> value)
          Inserts an ArrayList value into the mapping of this Bundle, replacing any existing value for the given key.
 void readFromParcel(Parcel parcel)
          Reads the Parcel contents into this Bundle, typically in order for it to be passed through an IBinder connection.
 void remove(String key)
          Removes any entry with the given key from the mapping of this Bundle.
 void setClassLoader(ClassLoader loader)
          Changes the ClassLoader this Bundle uses when instantiating objects.
 int size()
          Returns the number of mappings contained in this Bundle.
 String toString()
          Returns a string containing a concise, human-readable description of the receiver.
(package private)  void unparcel()
          If the underlying data are stored as a Parcel, unparcel them using the currently assigned class loader.
 void writeToParcel(Parcel parcel, int flags)
          Writes the Bundle contents to a Parcel, typically in order for it to be passed through an IBinder connection.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY

public static final Bundle EMPTY

mMap

Map<String,Object> mMap

mParcelledData

Parcel mParcelledData

CREATOR

public static final Parcelable.Creator<Bundle> CREATOR
Constructor Detail

Bundle

public Bundle()
Constructs a new, empty Bundle.


Bundle

Bundle(Parcel parcelledData)
Constructs a Bundle whose data is stored as a Parcel. The data will be unparcelled on first contact, using the assigned ClassLoader.

Parameters:
parcelledData - a Parcel containing a Bundle

Bundle

public Bundle(ClassLoader loader)
Constructs a new, empty Bundle that uses a specific ClassLoader for instantiating Parcelable and Serializable objects.

Parameters:
loader - An explicit ClassLoader to use when instantiating objects inside of the Bundle.

Bundle

public Bundle(int capacity)
Constructs a new, empty Bundle sized to hold the given number of elements. The Bundle will grow as needed.

Parameters:
capacity - the initial capacity of the Bundle

Bundle

public Bundle(Bundle b)
Constructs a Bundle containing a copy of the mappings from the given Bundle.

Parameters:
b - a Bundle to be copied.
Method Detail

setClassLoader

public void setClassLoader(ClassLoader loader)
Changes the ClassLoader this Bundle uses when instantiating objects.

Parameters:
loader - An explicit ClassLoader to use when instantiating objects inside of the Bundle.

clone

public Object clone()
Clones the current Bundle. The internal map is cloned, but the keys and values to which it refers are copied by reference.

Overrides:
clone in class Object
Returns:
Object a shallow copy of this object.

unparcel

void unparcel()
If the underlying data are stored as a Parcel, unparcel them using the currently assigned class loader.


size

public int size()
Returns the number of mappings contained in this Bundle.

Returns:
the number of mappings as an int.

isEmpty

public boolean isEmpty()
Returns true if the mapping of this Bundle is empty, false otherwise.


clear

public void clear()
Removes all elements from the mapping of this Bundle.


containsKey

public boolean containsKey(String key)
Returns true if the given key is contained in the mapping of this Bundle.

Parameters:
key - a String key
Returns:
true if the key is part of the mapping, false otherwise

get

public Object get(String key)
Returns the entry with the given key as an object.

Parameters:
key - a String key
Returns:
an Object, or null

remove

public void remove(String key)
Removes any entry with the given key from the mapping of this Bundle.

Parameters:
key - a String key

putAll

public void putAll(Bundle map)
Inserts all mappings from the given Bundle into this Bundle.

Parameters:
map - a Bundle

keySet

public Set<String> keySet()
Returns a Set containing the Strings used as keys in this Bundle.

Returns:
a Set of String keys

hasFileDescriptors

public boolean hasFileDescriptors()
Reports whether the bundle contains any parcelled file descriptors.


putBoolean

public void putBoolean(String key,
                       boolean value)
Inserts a Boolean value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.

Parameters:
key - a String, or null
value - a Boolean, or null

putByte

public void putByte(String key,
                    byte value)
Inserts a byte value into the mapping of this Bundle, replacing any existing value for the given key.

Parameters:
key - a String, or null
value - a byte

putChar

public void putChar(String key,
                    char value)
Inserts a char value into the mapping of this Bundle, replacing any existing value for the given key.

Parameters:
key - a String, or null
value - a char, or null

putShort

public void putShort(String key,
                     short value)
Inserts a short value into the mapping of this Bundle, replacing any existing value for the given key.

Parameters:
key - a String, or null
value - a short

putInt

public void putInt(String key,
                   int value)
Inserts an int value into the mapping of this Bundle, replacing any existing value for the given key.

Parameters:
key - a String, or null
value - an int, or null

putLong

public void putLong(String key,
                    long value)
Inserts a long value into the mapping of this Bundle, replacing any existing value for the given key.

Parameters:
key - a String, or null
value - a long

putFloat

public void putFloat(String key,
                     float value)
Inserts a float value into the mapping of this Bundle, replacing any existing value for the given key.

Parameters:
key - a String, or null
value - a float

putDouble

public void putDouble(String key,
                      double value)
Inserts a double value into the mapping of this Bundle, replacing any existing value for the given key.

Parameters:
key - a String, or null
value - a double

putString

public void putString(String key,
                      String value)
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.

Parameters:
key - a String, or null
value - a String, or null

putCharSequence

public void putCharSequence(String key,
                            CharSequence value)
Inserts a CharSequence value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.

Parameters:
key - a String, or null
value - a CharSequence, or null

putParcelable

public void putParcelable(String key,
                          Parcelable value)
Inserts a Parcelable value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.

Parameters:
key - a String, or null
value - a Parcelable object, or null

putParcelableArray

public void putParcelableArray(String key,
                               Parcelable[] value)
Inserts an array of Parcelable values into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.

Parameters:
key - a String, or null
value - an array of Parcelable objects, or null

putParcelableArrayList

public void putParcelableArrayList(String key,
                                   ArrayList<? extends Parcelable> value)
Inserts a List of Parcelable values into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.

Parameters:
key - a String, or null
value - an ArrayList of Parcelable objects, or null

putSparseParcelableArray

public void putSparseParcelableArray(String key,
                                     SparseArray<? extends Parcelable> value)
Inserts a SparceArray of Parcelable values into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.

Parameters:
key - a String, or null
value - a SparseArray of Parcelable objects, or null

putIntegerArrayList

public void putIntegerArrayList(String key,
                                ArrayList<Integer> value)
Inserts an ArrayList value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.

Parameters:
key - a String, or null
value - an ArrayList object, or null

putStringArrayList

public void putStringArrayList(String key,
                               ArrayList<String> value)
Inserts an ArrayList value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.

Parameters:
key - a String, or null
value - an ArrayList object, or null

putSerializable

public void putSerializable(String key,
                            Serializable value)
Inserts a Serializable value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.

Parameters:
key - a String, or null
value - a Serializable object, or null

putBooleanArray

public void putBooleanArray(String key,
                            boolean[] value)
Inserts a boolean array value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.

Parameters:
key - a String, or null
value - a boolean array object, or null

putByteArray

public void putByteArray(String key,
                         byte[] value)
Inserts a byte array value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.

Parameters:
key - a String, or null
value - a byte array object, or null

putShortArray

public void putShortArray(String key,
                          short[] value)
Inserts a short array value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.

Parameters:
key - a String, or null
value - a short array object, or null

putCharArray

public void putCharArray(String key,
                         char[] value)
Inserts a char array value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.

Parameters:
key - a String, or null
value - a char array object, or null

putIntArray

public void putIntArray(String key,
                        int[] value)
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.

Parameters:
key - a String, or null
value - an int array object, or null

putLongArray

public void putLongArray(String key,
                         long[] value)
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.

Parameters:
key - a String, or null
value - a long array object, or null

putFloatArray

public void putFloatArray(String key,
                          float[] value)
Inserts a float array value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.

Parameters:
key - a String, or null
value - a float array object, or null

putDoubleArray

public void putDoubleArray(String key,
                           double[] value)
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.

Parameters:
key - a String, or null
value - a double array object, or null

putStringArray

public void putStringArray(String key,
                           String[] value)
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.

Parameters:
key - a String, or null
value - a String array object, or null

putBundle

public void putBundle(String key,
                      Bundle value)
Inserts a Bundle value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.

Parameters:
key - a String, or null
value - a Bundle object, or null

putIBinder

@Deprecated
public void putIBinder(String key,
                                  IBinder value)
Deprecated. 

Inserts an IBinder value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.

Parameters:
key - a String, or null
value - an IBinder object, or null

getBoolean

public boolean getBoolean(String key)
Returns the value associated with the given key, or false if no mapping of the desired type exists for the given key.

Parameters:
key - a String
Returns:
a boolean value

getBoolean

public boolean getBoolean(String key,
                          boolean defaultValue)
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

Parameters:
key - a String
Returns:
a boolean value

getByte

public byte getByte(String key)
Returns the value associated with the given key, or (byte) 0 if no mapping of the desired type exists for the given key.

Parameters:
key - a String
Returns:
a byte value

getByte

public Byte getByte(String key,
                    byte defaultValue)
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

Parameters:
key - a String
Returns:
a byte value

getChar

public char getChar(String key)
Returns the value associated with the given key, or false if no mapping of the desired type exists for the given key.

Parameters:
key - a String
Returns:
a char value

getChar

public char getChar(String key,
                    char defaultValue)
Returns the value associated with the given key, or (char) 0 if no mapping of the desired type exists for the given key.

Parameters:
key - a String
Returns:
a char value

getShort

public short getShort(String key)
Returns the value associated with the given key, or (short) 0 if no mapping of the desired type exists for the given key.

Parameters:
key - a String
Returns:
a short value

getShort

public short getShort(String key,
                      short defaultValue)
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

Parameters:
key - a String
Returns:
a short value

getInt

public int getInt(String key)
Returns the value associated with the given key, or 0 if no mapping of the desired type exists for the given key.

Parameters:
key - a String
Returns:
an int value

getInt

public int getInt(String key,
                  int defaultValue)
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

Parameters:
key - a String
Returns:
an int value

getLong

public long getLong(String key)
Returns the value associated with the given key, or 0L if no mapping of the desired type exists for the given key.

Parameters:
key - a String
Returns:
a long value

getLong

public long getLong(String key,
                    long defaultValue)
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

Parameters:
key - a String
Returns:
a long value

getFloat

public float getFloat(String key)
Returns the value associated with the given key, or 0.0f if no mapping of the desired type exists for the given key.

Parameters:
key - a String
Returns:
a float value

getFloat

public float getFloat(String key,
                      float defaultValue)
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

Parameters:
key - a String
Returns:
a float value

getDouble

public double getDouble(String key)
Returns the value associated with the given key, or 0.0 if no mapping of the desired type exists for the given key.

Parameters:
key - a String
Returns:
a double value

getDouble

public double getDouble(String key,
                        double defaultValue)
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

Parameters:
key - a String
Returns:
a double value

getString

public String getString(String 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.

Parameters:
key - a String, or null
Returns:
a String value, or null

getCharSequence

public CharSequence getCharSequence(String 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.

Parameters:
key - a String, or null
Returns:
a CharSequence value, or null

getBundle

public Bundle getBundle(String 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.

Parameters:
key - a String, or null
Returns:
a Bundle value, or null

getParcelable

public <T extends Parcelable> T getParcelable(String 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.

Parameters:
key - a String, or null
Returns:
a Parcelable value, or null

getParcelableArray

public Parcelable[] getParcelableArray(String 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.

Parameters:
key - a String, or null
Returns:
a Parcelable[] value, or null

getParcelableArrayList

public <T extends Parcelable> ArrayList<T> getParcelableArrayList(String 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.

Parameters:
key - a String, or null
Returns:
an ArrayList value, or null

getSparseParcelableArray

public <T extends Parcelable> SparseArray<T> getSparseParcelableArray(String 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.

Parameters:
key - a String, or null
Returns:
a SparseArray of T values, or null

getSerializable

public Serializable getSerializable(String 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.

Parameters:
key - a String, or null
Returns:
a Serializable value, or null

getIntegerArrayList

public ArrayList<Integer> getIntegerArrayList(String 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.

Parameters:
key - a String, or null
Returns:
an ArrayList value, or null

getStringArrayList

public ArrayList<String> getStringArrayList(String 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.

Parameters:
key - a String, or null
Returns:
an ArrayList value, or null

getBooleanArray

public boolean[] getBooleanArray(String 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.

Parameters:
key - a String, or null
Returns:
a boolean[] value, or null

getByteArray

public byte[] getByteArray(String 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.

Parameters:
key - a String, or null
Returns:
a byte[] value, or null

getShortArray

public short[] getShortArray(String 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.

Parameters:
key - a String, or null
Returns:
a short[] value, or null

getCharArray

public char[] getCharArray(String 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.

Parameters:
key - a String, or null
Returns:
a char[] value, or null

getIntArray

public int[] getIntArray(String 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.

Parameters:
key - a String, or null
Returns:
an int[] value, or null

getLongArray

public long[] getLongArray(String 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.

Parameters:
key - a String, or null
Returns:
a long[] value, or null

getFloatArray

public float[] getFloatArray(String 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.

Parameters:
key - a String, or null
Returns:
a float[] value, or null

getDoubleArray

public double[] getDoubleArray(String 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.

Parameters:
key - a String, or null
Returns:
a double[] value, or null

getStringArray

public String[] getStringArray(String 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.

Parameters:
key - a String, or null
Returns:
a String[] value, or null

getIBinder

@Deprecated
public IBinder getIBinder(String key)
Deprecated. 

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.

Parameters:
key - a String, or null
Returns:
an IBinder value, or null

describeContents

public int describeContents()
Report the nature of this Parcelable's contents

Specified by:
describeContents in interface Parcelable
Returns:
a bitmask indicating the set of special object types marshalled by the Parcelable.

writeToParcel

public void writeToParcel(Parcel parcel,
                          int flags)
Writes the Bundle contents to a Parcel, typically in order for it to be passed through an IBinder connection.

Specified by:
writeToParcel in interface Parcelable
Parameters:
parcel - The parcel to copy this bundle to.
flags - Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.

readFromParcel

public void readFromParcel(Parcel parcel)
Reads the Parcel contents into this Bundle, typically in order for it to be passed through an IBinder connection.

Parameters:
parcel - The parcel to overwrite this bundle from.

toString

public String toString()
Description copied from class: Object
Returns a string containing a concise, human-readable description of the receiver.

Overrides:
toString in class Object
Returns:
String a printable representation for the receiver.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature