public final class ParcelableHelper
extends java.lang.Object
Serializable into Parcelable.| Modifier and Type | Method and Description |
|---|---|
static <K extends android.os.Parcelable,V extends android.os.Parcelable> |
readParcelableMap(android.os.Parcel parcel,
java.util.Map<K,V> map,
java.lang.Class<K> kClass,
java.lang.Class<V> vClass)
Reads the map from the parcel.
|
static <K extends java.io.Serializable,V extends java.io.Serializable> |
readSerializableMap(android.os.Parcel parcel,
java.util.Map<K,V> map,
java.lang.Class<K> keyType,
java.lang.Class<V> valueType)
Reads the map from the parcel.
|
static <K extends android.os.Parcelable,V extends android.os.Parcelable> |
writeParcelableMap(android.os.Parcel parcel,
java.util.Map<K,V> map,
int flags)
Writes a map of
Parcelables into a Parcelable. |
static <K extends java.io.Serializable,V extends java.io.Serializable> |
writeSerializableMap(android.os.Parcel parcel,
java.util.Map<K,V> map)
Writes a map of
Serializable into a Parcelable. |
public static <K extends java.io.Serializable,V extends java.io.Serializable> void writeSerializableMap(android.os.Parcel parcel,
java.util.Map<K,V> map)
Serializable into a Parcelable.K - the key type.V - the value type of the map.parcel - the parceable which should be written into.map - the map which should be converted.public static <K extends java.io.Serializable,V extends java.io.Serializable> void readSerializableMap(android.os.Parcel parcel,
java.util.Map<K,V> map,
java.lang.Class<K> keyType,
java.lang.Class<V> valueType)
writeSerializableMap(Parcel,
Map).K - the key type.V - the value type.parcel - the parceable from which the data should be read from.map - the map into which the values should be written into.public static <K extends android.os.Parcelable,V extends android.os.Parcelable> void writeParcelableMap(android.os.Parcel parcel,
java.util.Map<K,V> map,
int flags)
Parcelables into a Parcelable.K - the key type.V - the value type of the map.parcel - the parceable which should be written into.map - the map which should be converted.flags - the flags which should be passed to the parceable.public static <K extends android.os.Parcelable,V extends android.os.Parcelable> void readParcelableMap(android.os.Parcel parcel,
java.util.Map<K,V> map,
java.lang.Class<K> kClass,
java.lang.Class<V> vClass)
writeParcelableMap(Parcel,
Map, int).K - the key type.V - the value type.parcel - the parceable from which the data should be read from.map - the map into which the values should be written into.