public class ParcelUtils
extends java.lang.Object
构造器和说明 |
---|
ParcelUtils() |
限定符和类型 | 方法和说明 |
---|---|
static boolean |
readBoolean(android.os.Parcel in)
read boolean
|
static <K extends android.os.Parcelable,V extends android.os.Parcelable> |
readHashMap(android.os.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(android.os.Parcel in)
Read a HashMap from a Parcel, class of key and value are both String
|
static <V extends android.os.Parcelable> |
readHashMapStringKey(android.os.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,
android.os.Parcel out)
write boolean
|
static <K extends android.os.Parcelable,V extends android.os.Parcelable> |
writeHashMap(java.util.Map<K,V> map,
android.os.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,
android.os.Parcel out,
int flags)
Write a HashMap to a Parcel, class of key and value are both String
|
static <V extends android.os.Parcelable> |
writeHashMapStringKey(java.util.Map<java.lang.String,V> map,
android.os.Parcel out,
int flags)
Write a HashMap to a Parcel, class of key is String, class of Value can parcelable
|
public static boolean readBoolean(android.os.Parcel in)
in
- public static void writeBoolean(boolean b, android.os.Parcel out)
b
- out
- public static java.util.Map<java.lang.String,java.lang.String> readHashMapStringAndString(android.os.Parcel in)
in
- public static void writeHashMapStringAndString(java.util.Map<java.lang.String,java.lang.String> map, android.os.Parcel out, int flags)
map
- out
- flags
- public static <V extends android.os.Parcelable> java.util.Map<java.lang.String,V> readHashMapStringKey(android.os.Parcel in, java.lang.ClassLoader loader)
V
- in
- loader
- public static <V extends android.os.Parcelable> void writeHashMapStringKey(java.util.Map<java.lang.String,V> map, android.os.Parcel out, int flags)
map
- out
- flags
- public static <K extends android.os.Parcelable,V extends android.os.Parcelable> java.util.Map<K,V> readHashMap(android.os.Parcel in, java.lang.ClassLoader loader)
V
- in
- loader
- public static <K extends android.os.Parcelable,V extends android.os.Parcelable> void writeHashMap(java.util.Map<K,V> map, android.os.Parcel out, int flags)
map
- out
- flags
-