当前位置: 首页>>代码示例>>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;未经允许,请勿转载。