本文整理汇总了Java中android.os.Parcel.readArray方法的典型用法代码示例。如果您正苦于以下问题:Java Parcel.readArray方法的具体用法?Java Parcel.readArray怎么用?Java Parcel.readArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.readArray方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: HistoryData
import android.os.Parcel; //导入方法依赖的package包/类
protected HistoryData(Parcel in) {
this.age = in.readInt();
this.id = in.readLong();
this.testShort = (short) in.readInt();
this.testByte = in.readByte();
this.testBoolean = in.readByte() != 0;
this.testFloat = in.readFloat();
this.testDouble = in.readDouble();
this.testChar = (char) in.readInt();
this.testLONG = (Long) in.readValue(Long.class.getClassLoader());
this.testDOUBLE = (Double) in.readValue(Double.class.getClassLoader());
this.testCharacter = (Character) in.readSerializable();
this.testBOOLEAN = (Boolean) in.readValue(Boolean.class.getClassLoader());
this.testSHORT = (Short) in.readValue(Short.class.getClassLoader());
this.name = in.readString();
this.data = in.readParcelable(ResultData.class.getClassLoader());
this.datas = in.createTypedArrayList(ResultData.CREATOR);
this.testArrayResultData = in.createTypedArray(ResultData.CREATOR);
this.testArrayInt = in.createIntArray();
this.testArrayInteger = (Integer[]) in.readArray(Integer[].class.getClassLoader());
}
示例2: LogItem
import android.os.Parcel; //导入方法依赖的package包/类
public LogItem(Parcel in) {
mArgs = in.readArray(Object.class.getClassLoader());
mMessage = in.readString();
mRessourceId = in.readInt();
mLevel = VpnStatus.LogLevel.getEnumByValue(in.readInt());
mVerbosityLevel = in.readInt();
logtime = in.readLong();
}