public class Bundler
extends java.lang.Object
| コンストラクタと説明 |
|---|
Bundler()
Constructs a new, empty Bundle.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
android.os.Bundle |
get()
Get the bundle.
|
<T extends Fragment> |
into(T fragment)
Set the argument of Fragment.
|
static Bundler |
of(android.os.Bundle b)
Constructs a Bundle containing a copy of the mappings from the given
Bundle.
|
Bundler |
putAll(android.os.Bundle bundle)
Inserts all mappings from the given Bundle into this Bundle.
|
Bundler |
putBinder(java.lang.String key,
android.os.IBinder value)
Inserts an
IBinder value into the mapping of this Bundle, replacing
any existing value for the given key. |
Bundler |
putBoolean(java.lang.String key,
boolean value)
Inserts a Boolean value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putBooleanArray(java.lang.String key,
boolean[] value)
Inserts a boolean array value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putBundle(java.lang.String key,
android.os.Bundle value)
Inserts a Bundle value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putByte(java.lang.String key,
byte value)
Inserts a byte value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putByteArray(java.lang.String key,
byte[] value)
Inserts a byte array value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putChar(java.lang.String key,
char value)
Inserts a char value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putCharArray(java.lang.String key,
char[] value)
Inserts a char array value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putCharSequence(java.lang.String key,
java.lang.CharSequence value)
Inserts a CharSequence value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putCharSequenceArray(java.lang.String key,
java.lang.CharSequence[] value)
Inserts a CharSequence array value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putCharSequenceArrayList(java.lang.String key,
java.util.ArrayList<java.lang.CharSequence> value)
Inserts an ArrayList
|
Bundler |
putDouble(java.lang.String key,
double value)
Inserts a double value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putDoubleArray(java.lang.String key,
double[] value)
Inserts a double array value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putFloat(java.lang.String key,
float value)
Inserts a float value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putFloatArray(java.lang.String key,
float[] value)
Inserts a float array value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putInt(java.lang.String key,
int value)
Inserts an int value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putIntArray(java.lang.String key,
int[] value)
Inserts an int array value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putIntegerArrayList(java.lang.String key,
java.util.ArrayList<java.lang.Integer> value)
Inserts an ArrayList
|
Bundler |
putLong(java.lang.String key,
long value)
Inserts a long value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putLongArray(java.lang.String key,
long[] value)
Inserts a long array value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putParcelable(java.lang.String key,
android.os.Parcelable value)
Inserts a Parcelable value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putParcelableArray(java.lang.String key,
android.os.Parcelable[] value)
Inserts an array of Parcelable values into the mapping of this Bundle,
replacing any existing value for the given key.
|
Bundler |
putParcelableArrayList(java.lang.String key,
java.util.ArrayList<? extends android.os.Parcelable> value)
Inserts a List of Parcelable values into the mapping of this Bundle,
replacing any existing value for the given key.
|
Bundler |
putSerializable(java.lang.String key,
java.io.Serializable value)
Inserts a Serializable value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putShort(java.lang.String key,
short value)
Inserts a short value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putShortArray(java.lang.String key,
short[] value)
Inserts a short array value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putSize(java.lang.String key,
android.util.Size value)
Inserts a Size value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putSizeF(java.lang.String key,
android.util.SizeF value)
Inserts a SizeF value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putSparseParcelableArray(java.lang.String key,
android.util.SparseArray<? extends android.os.Parcelable> value)
Inserts a SparceArray of Parcelable values into the mapping of this
Bundle, replacing any existing value for the given key.
|
Bundler |
putString(java.lang.String key,
java.lang.String value)
Inserts a String value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putStringArray(java.lang.String key,
java.lang.String[] value)
Inserts a String array value into the mapping of this Bundle, replacing
any existing value for the given key.
|
Bundler |
putStringArrayList(java.lang.String key,
java.util.ArrayList<java.lang.String> value)
Inserts an ArrayList
|
public static Bundler of(android.os.Bundle b)
b - a Bundle to be copied.public Bundler putAll(android.os.Bundle bundle)
bundle - a Bundlepublic Bundler putByte(java.lang.String key, byte value)
key - a String, or nullvalue - a bytepublic Bundler putChar(java.lang.String key, char value)
key - a String, or nullvalue - a char, or nullpublic Bundler putShort(java.lang.String key, short value)
key - a String, or nullvalue - a shortpublic Bundler putFloat(java.lang.String key, float value)
key - a String, or nullvalue - a floatpublic Bundler putCharSequence(java.lang.String key, java.lang.CharSequence value)
key - a String, or nullvalue - a CharSequence, or nullpublic Bundler putParcelable(java.lang.String key, android.os.Parcelable value)
key - a String, or nullvalue - a Parcelable object, or nullpublic Bundler putSize(java.lang.String key, android.util.Size value)
key - a String, or nullvalue - a Size object, or nullpublic Bundler putSizeF(java.lang.String key, android.util.SizeF value)
key - a String, or nullvalue - a SizeF object, or nullpublic Bundler putParcelableArray(java.lang.String key, android.os.Parcelable[] value)
key - a String, or nullvalue - an array of Parcelable objects, or nullpublic Bundler putParcelableArrayList(java.lang.String key, java.util.ArrayList<? extends android.os.Parcelable> value)
key - a String, or nullvalue - an ArrayList of Parcelable objects, or nullpublic Bundler putSparseParcelableArray(java.lang.String key, android.util.SparseArray<? extends android.os.Parcelable> value)
key - a String, or nullvalue - a SparseArray of Parcelable objects, or nullpublic Bundler putIntegerArrayList(java.lang.String key, java.util.ArrayList<java.lang.Integer> value)
key - a String, or nullvalue - an ArrayListpublic Bundler putStringArrayList(java.lang.String key, java.util.ArrayList<java.lang.String> value)
key - a String, or nullvalue - an ArrayListpublic Bundler putCharSequenceArrayList(java.lang.String key, java.util.ArrayList<java.lang.CharSequence> value)
key - a String, or nullvalue - an ArrayListpublic Bundler putSerializable(java.lang.String key, java.io.Serializable value)
key - a String, or nullvalue - a Serializable object, or nullpublic Bundler putByteArray(java.lang.String key, byte[] value)
key - a String, or nullvalue - a byte array object, or nullpublic Bundler putShortArray(java.lang.String key, short[] value)
key - a String, or nullvalue - a short array object, or nullpublic Bundler putCharArray(java.lang.String key, char[] value)
key - a String, or nullvalue - a char array object, or nullpublic Bundler putFloatArray(java.lang.String key, float[] value)
key - a String, or nullvalue - a float array object, or nullpublic Bundler putCharSequenceArray(java.lang.String key, java.lang.CharSequence[] value)
key - a String, or nullvalue - a CharSequence array object, or nullpublic Bundler putBundle(java.lang.String key, android.os.Bundle value)
key - a String, or nullvalue - a Bundle object, or nullpublic Bundler putBinder(java.lang.String key, android.os.IBinder value)
IBinder value into the mapping of this Bundle, replacing
any existing value for the given key. Either key or value may be null.
You should be very careful when using this function. In many places where Bundles are used (such as inside of Intent objects), the Bundle can live longer inside of another process than the process that had originally created it. In that case, the IBinder you supply here will become invalid when your process goes away, and no longer usable, even if a new process is created for you later on.
key - a String, or nullvalue - an IBinder object, or nullpublic Bundler putBoolean(java.lang.String key, boolean value)
key - a String, or nullvalue - a Boolean, or nullpublic Bundler putInt(java.lang.String key, int value)
key - a String, or nullvalue - an int, or nullpublic Bundler putLong(java.lang.String key, long value)
key - a String, or nullvalue - a longpublic Bundler putDouble(java.lang.String key, double value)
key - a String, or nullvalue - a doublepublic Bundler putString(java.lang.String key, java.lang.String value)
key - a String, or nullvalue - a String, or nullpublic Bundler putBooleanArray(java.lang.String key, boolean[] value)
key - a String, or nullvalue - a boolean array object, or nullpublic Bundler putIntArray(java.lang.String key, int[] value)
key - a String, or nullvalue - an int array object, or nullpublic Bundler putLongArray(java.lang.String key, long[] value)
key - a String, or nullvalue - a long array object, or nullpublic Bundler putDoubleArray(java.lang.String key, double[] value)
key - a String, or nullvalue - a double array object, or nullpublic Bundler putStringArray(java.lang.String key, java.lang.String[] value)
key - a String, or nullvalue - a String array object, or nullpublic android.os.Bundle get()
public <T extends Fragment> T into(T fragment)
fragment - a fragment