Java android.os PersistableBundle fields, constructors, methods, implement or subclass

Example usage for Java android.os PersistableBundle fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.os PersistableBundle.

The text is from its open source code.

Constructor

PersistableBundle()
Constructs a new, empty PersistableBundle.
PersistableBundle(int capacity)
Constructs a new, empty PersistableBundle sized to hold the given number of elements.
PersistableBundle(PersistableBundle b)
Constructs a PersistableBundle containing a copy of the mappings from the given PersistableBundle.
PersistableBundle(Bundle b)
Constructs a PersistableBundle from a Bundle.
PersistableBundle(ArrayMap map)
Constructs a PersistableBundle containing the mappings passed in.
PersistableBundle(boolean doInit)
Constructs a PersistableBundle without initializing it.

Method

Objectget(String key)
Returns the entry with the given key as an object.
booleangetBoolean(String key)
Returns the value associated with the given key, or false if no mapping of the desired type exists for the given key.
intgetInt(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.
intgetInt(String key)
Returns the value associated with the given key, or 0 if no mapping of the desired type exists for the given key.
longgetLong(String key)
Returns the value associated with the given key, or 0L if no mapping of the desired type exists for the given key.
StringgetString(@Nullable 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.
SetkeySet()
Returns a Set containing the Strings used as keys in this Bundle.
voidputBoolean(@Nullable String key, boolean value)
Inserts a Boolean value into the mapping of this Bundle, replacing any existing value for the given key.
voidputBooleanArray(@Nullable String key, @Nullable boolean[] value)
Inserts a boolean array value into the mapping of this Bundle, replacing any existing value for the given key.
voidputDouble(@Nullable String key, double value)
Inserts a double value into the mapping of this Bundle, replacing any existing value for the given key.
voidputDoubleArray(@Nullable String key, @Nullable double[] value)
Inserts a double array value into the mapping of this Bundle, replacing any existing value for the given key.
voidputInt(@Nullable String key, int value)
Inserts an int value into the mapping of this Bundle, replacing any existing value for the given key.
voidputIntArray(@Nullable String key, @Nullable int[] value)
Inserts an int array value into the mapping of this Bundle, replacing any existing value for the given key.
voidputLong(@Nullable String key, long value)
Inserts a long value into the mapping of this Bundle, replacing any existing value for the given key.
voidputLongArray(@Nullable String key, @Nullable long[] value)
Inserts a long array value into the mapping of this Bundle, replacing any existing value for the given key.
voidputPersistableBundle(@Nullable String key, @Nullable PersistableBundle value)
Inserts a PersistableBundle value into the mapping of this Bundle, replacing any existing value for the given key.
voidputString(@Nullable String key, @Nullable String value)
Inserts a String value into the mapping of this Bundle, replacing any existing value for the given key.
voidputStringArray(@Nullable String key, @Nullable String[] value)
Inserts a String array value into the mapping of this Bundle, replacing any existing value for the given key.
intsize()
Returns the number of mappings contained in this Bundle.