/// <summary> /// 复制(深拷贝) /// </summary> protected override void toCopy(BaseData data) { if (!(data is ClientOfflineWorkListData)) { return; } ClientOfflineWorkListData mData = (ClientOfflineWorkListData)data; this.index = mData.index; if (mData.list != null) { if (this.list != null) { this.list.clear(); this.list.ensureCapacity(mData.list.size()); } else { this.list = new SList <ClientOfflineWorkData>(); } SList <ClientOfflineWorkData> listT = this.list; if (!mData.list.isEmpty()) { ClientOfflineWorkData[] listVValues = mData.list.getValues(); for (int listVI = 0, listVLen = mData.list.length(); listVI < listVLen; ++listVI) { ClientOfflineWorkData listV = listVValues[listVI]; ClientOfflineWorkData listU; if (listV != null) { listU = (ClientOfflineWorkData)listV.clone(); } else { listU = null; nullObjError("listU"); } listT.add(listU); } } } else { this.list = null; nullObjError("list"); } this.clientRandomSeedIndex = mData.clientRandomSeedIndex; }
protected override void copyData() { base.copyData(); ClientOfflineWorkData dataTemp = data; if (dataTemp != null) { this.data = (ClientOfflineWorkData)dataTemp.clone(); } else { this.data = null; nullObjError("data"); } }
protected override void copyData() { base.copyData(); SList <ClientOfflineWorkData> recordsTemp = records; if (recordsTemp != null) { this.records = new SList <ClientOfflineWorkData>(); SList <ClientOfflineWorkData> recordsT = this.records; if (!recordsTemp.isEmpty()) { ClientOfflineWorkData[] recordsVValues = recordsTemp.getValues(); for (int recordsVI = 0, recordsVLen = recordsTemp.length(); recordsVI < recordsVLen; ++recordsVI) { ClientOfflineWorkData recordsV = recordsVValues[recordsVI]; ClientOfflineWorkData recordsU; if (recordsV != null) { recordsU = (ClientOfflineWorkData)recordsV.clone(); } else { recordsU = null; nullObjError("recordsU"); } recordsT.add(recordsU); } } } else { this.records = null; nullObjError("records"); } }