本文整理匯總了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();
}