コード例 #1
0
  protected ACtxBond(Parcel in) {
    try {
      modelType = CtxModelType.valueOf(in.readString());
    } catch (IllegalArgumentException x) {
      modelType = null;
    }

    type = in.readString();

    try {
      originType = CtxBondOriginType.valueOf(in.readString());
    } catch (IllegalArgumentException x) {
      originType = null;
    }
  }
コード例 #2
0
 public void writeToParcel(Parcel out, int flags) {
   out.writeString((modelType == null) ? "" : modelType.name());
   out.writeString(type);
   out.writeString((originType == null) ? "" : originType.name());
 }