public class ParcelUtils
extends java.lang.Object
Constructor and Description |
---|
ParcelUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
readBoolean(Parcel in)
read boolean
|
static <K extends Parcelable,V extends Parcelable> |
readHashMap(Parcel in,
java.lang.ClassLoader loader)
Read a HashMap from a Parcel, class of key and value can parcelable both
|
static java.util.Map<java.lang.String,java.lang.String> |
readHashMapStringAndString(Parcel in)
Read a HashMap from a Parcel, class of key and value are both String
|
static <V extends Parcelable> |
readHashMapStringKey(Parcel in,
java.lang.ClassLoader loader)
Read a HashMap from a Parcel, class of key is String, class of Value can parcelable
|
static void |
writeBoolean(boolean b,
Parcel out)
write boolean
|
static <K extends Parcelable,V extends Parcelable> |
writeHashMap(java.util.Map<K,V> map,
Parcel out,
int flags)
Write a HashMap to a Parcel, class of key and value can parcelable both
|
static void |
writeHashMapStringAndString(java.util.Map<java.lang.String,java.lang.String> map,
Parcel out,
int flags)
Write a HashMap to a Parcel, class of key and value are both String
|
static <V extends Parcelable> |
writeHashMapStringKey(java.util.Map<java.lang.String,V> map,
Parcel out,
int flags)
Write a HashMap to a Parcel, class of key is String, class of Value can parcelable
|
public static boolean readBoolean(Parcel in)
in
- public static void writeBoolean(boolean b, Parcel out)
b
- out
- public static java.util.Map<java.lang.String,java.lang.String> readHashMapStringAndString(Parcel in)
in
- public static void writeHashMapStringAndString(java.util.Map<java.lang.String,java.lang.String> map, Parcel out, int flags)
map
- out
- flags
- public static <V extends Parcelable> java.util.Map<java.lang.String,V> readHashMapStringKey(Parcel in, java.lang.ClassLoader loader)
V
- in
- loader
- public static <V extends Parcelable> void writeHashMapStringKey(java.util.Map<java.lang.String,V> map, Parcel out, int flags)
map
- out
- flags
- public static <K extends Parcelable,V extends Parcelable> java.util.Map<K,V> readHashMap(Parcel in, java.lang.ClassLoader loader)
V
- in
- loader
- public static <K extends Parcelable,V extends Parcelable> void writeHashMap(java.util.Map<K,V> map, Parcel out, int flags)
map
- out
- flags
-