當前位置: 首頁>>代碼示例>>Java>>正文


Java Parcel.writeSerializable方法代碼示例

本文整理匯總了Java中android.os.Parcel.writeSerializable方法的典型用法代碼示例。如果您正苦於以下問題:Java Parcel.writeSerializable方法的具體用法?Java Parcel.writeSerializable怎麽用?Java Parcel.writeSerializable使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.os.Parcel的用法示例。


在下文中一共展示了Parcel.writeSerializable方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.age);
    dest.writeLong(this.id);
    dest.writeInt(this.testShort);
    dest.writeByte(this.testByte);
    dest.writeByte(this.testBoolean ? (byte) 1 : (byte) 0);
    dest.writeFloat(this.testFloat);
    dest.writeDouble(this.testDouble);
    dest.writeInt(this.testChar);
    dest.writeValue(this.testLONG);
    dest.writeValue(this.testDOUBLE);
    dest.writeSerializable(this.testCharacter);
    dest.writeValue(this.testBOOLEAN);
    dest.writeValue(this.testSHORT);
    dest.writeString(this.name);
    dest.writeParcelable(this.data, flags);
    dest.writeTypedList(this.datas);
    dest.writeTypedArray(this.testArrayResultData, flags);
    dest.writeIntArray(this.testArrayInt);
    dest.writeArray(this.testArrayInteger);
}
 
開發者ID:LightSun,項目名稱:data-mediator,代碼行數:23,代碼來源:HistoryData.java

示例2: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeString(this.pname);
    dest.writeString(this.pfrom);
    dest.writeString(this.pfromId);
    dest.writeString(this.fromUrl);
    dest.writeString(this.detailUrl);
    dest.writeString(this.detailAppUrl);
    dest.writeString(this.image);
    dest.writeString(this.htmlUrl);
    dest.writeString(this.pfromImage);
    dest.writeInt(this.type);
    dest.writeString(this.typeVal);
    dest.writeSerializable(this.price);
    dest.writeString(this.symbol);
    dest.writeString(this.description);
    dest.writeString(this.remarkCount);
    dest.writeInt(this.goodCount);
    dest.writeInt(this.brandId);
    dest.writeInt(this.familyId);
    dest.writeInt(this.categoryId);
    dest.writeInt(this.amountType);
    dest.writeDouble(this.amountMoney);
}
 
開發者ID:lwd1815,項目名稱:Selector,代碼行數:25,代碼來源:ProductItemBean.java

示例3: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(uri, flags);
    dest.writeSerializable(state);
    dest.writeInt(loaderId);
    dest.writeString(contentType);
    dest.writeString(name);
    if (size != null) {
        dest.writeInt(1);
        dest.writeLong(size);
    } else {
        dest.writeInt(0);
    }
    dest.writeString(filename);
}
 
開發者ID:philipwhiuk,項目名稱:q-mail,代碼行數:16,代碼來源:Attachment.java

示例4: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.by);
    dest.writeValue(this.id);
    dest.writeValue(this.time);
    dest.writeSerializable(this.kids);
    dest.writeString(this.url);
    dest.writeValue(this.score);
    dest.writeString(this.title);
    dest.writeString(this.text);
    dest.writeInt(this.postType == null ? -1 : this.postType.ordinal());
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:13,代碼來源:Post.java

示例5: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeValue(this.id);
    dest.writeParcelable(this.vehicle, flags);
    dest.writeSerializable(this.price);
    dest.writeLong(this.date != null ? this.date.getTime() : -1);
    dest.writeString(this.info);
}
 
開發者ID:piskula,項目名稱:FuelUp,代碼行數:9,代碼來源:Expense.java

示例6: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeString(title);
  if (items == null) {
    dest.writeByte((byte) (0x00));
    dest.writeInt(0);
  } else {
    dest.writeByte((byte) (0x01));
    dest.writeInt(items.size());
    final Class<?> objectsType = items.get(0).getClass();
    dest.writeSerializable(objectsType);
    dest.writeList(items);
  }
}
 
開發者ID:joedayz,項目名稱:pedidos-app,代碼行數:15,代碼來源:ExpandableGroup.java

示例7: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(final Parcel dest, final int flags) {
    dest.writeString(getName());
    dest.writeSerializable(getLocale());
    dest.writeInt(getQuality());
    dest.writeInt(getLatency());
    dest.writeByte((byte) (isNetworkConnectionRequired() ? 1 : 0));
    dest.writeStringList(new ArrayList<>(getFeatures()));
    dest.writeString(engine);
    dest.writeSerializable(gender);
}
 
開發者ID:brandall76,項目名稱:Saiy-PS,代碼行數:12,代碼來源:SaiyVoice.java

示例8: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeByte(showHiddenFiles ? (byte) 1 : (byte) 0);
    dest.writeByte(showNonDirectoryFiles ? (byte) 1 : (byte) 0);
    dest.writeSerializable(this.defaultDirectory.getWrappedFile());
    dest.writeByte(showCancelButton ? (byte) 1 : (byte) 0);
}
 
開發者ID:GlennioTech,項目名稱:MetadataEditor,代碼行數:8,代碼來源:FolderPickerConfig.java

示例9: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.code);
    dest.writeString(this.name);
    dest.writeValue(this.flagId);
    dest.writeParcelable(this.currency, flags);
    dest.writeSerializable(this.locale);
}
 
開發者ID:Scrounger,項目名稱:CountryCurrencyPicker,代碼行數:9,代碼來源:Country.java

示例10: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeValue(this.id);
    dest.writeParcelable(this.vehicle, flags);
    dest.writeValue(this.distanceFromLastFillUp);
    dest.writeSerializable(this.fuelVolume);
    dest.writeSerializable(this.fuelPricePerLitre);
    dest.writeSerializable(this.fuelPriceTotal);
    dest.writeByte(this.isFullFillUp ? (byte) 1 : (byte) 0);
    dest.writeSerializable(this.fuelConsumption);
    dest.writeLong(this.date != null ? this.date.getTime() : -1);
    dest.writeString(this.info);
}
 
開發者ID:piskula,項目名稱:FuelUp,代碼行數:14,代碼來源:FillUp.java

示例11: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeSerializable(targetCls);
    dest.writeInt(getFlags());
    dest.writeInt(inAnim);
    dest.writeInt(outAnim);
    dest.writeInt(showAnim);
    dest.writeInt(hideAnim);
    dest.writeInt(tempShowAnim);
    dest.writeInt(tempHideAnim);

    dest.writeString(getInvokerId());
    dest.writeString(getTag());
}
 
開發者ID:myl2ning,項目名稱:fragmentnav,代碼行數:15,代碼來源:FragmentIntent.java

示例12: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeValue(this.id);
    dest.writeString(this.email);
    dest.writeString(this.password);
    dest.writeString(this.firstname);
    dest.writeString(this.lastname);
    dest.writeString(this.phone);
    dest.writeValue(this.firstaccess);
    dest.writeValue(this.lastaccess);
    dest.writeValue(this.lastlogin);
    dest.writeValue(this.avatar);
    dest.writeSerializable(this.sex);
    dest.writeString(this.cdate);
    dest.writeString(this.bdate);
    dest.writeString(this.description);
    dest.writeValue(this.isactive);
    dest.writeValue(this.bin);
    dest.writeString(this.country);
    dest.writeString(this.city);
    dest.writeString(this.zip);
    dest.writeString(this.street);
    dest.writeString(this.house);
    dest.writeString(this.flat);
    dest.writeValue(this.accessLevel);
    dest.writeString(this.role);
}
 
開發者ID:ChristopherAbram,項目名稱:Book-Shelf,代碼行數:28,代碼來源:FullUser.java

示例13: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeInt(this.sofarBytes);
    dest.writeSerializable(this.throwable);
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:7,代碼來源:SmallMessageSnapshot.java

示例14: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeSerializable(this.mOutputFile);
    dest.writeString(this.mSourceFilePath);
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:6,代碼來源:CameraPickerHelper.java

示例15: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mProcessName);
    dest.writeInt(mPid);
    dest.writeSerializable(mList);
}
 
開發者ID:wangyupeng1-iri,項目名稱:springreplugin,代碼行數:7,代碼來源:PluginRunningList.java


注:本文中的android.os.Parcel.writeSerializable方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。