/// <summary> /// 转文本输出 /// </summary> protected override void toWriteDataString(DataWriter writer) { base.toWriteDataString(writer); writer.writeTabs(); writer.sb.Append("page"); writer.sb.Append(':'); writer.sb.Append(this.page); writer.writeEnter(); writer.writeTabs(); writer.sb.Append("arg"); writer.sb.Append(':'); writer.sb.Append(this.arg); writer.writeEnter(); writer.writeTabs(); writer.sb.Append("list"); writer.sb.Append(':'); writer.sb.Append("List<KeyData>"); if (this.list != null) { SList <KeyData> listT = this.list; int listLen = listT.size(); writer.sb.Append('('); writer.sb.Append(listLen); writer.sb.Append(')'); writer.writeEnter(); writer.writeLeftBrace(); for (int listI = 0; listI < listLen; ++listI) { KeyData listV = listT.get(listI); writer.writeTabs(); writer.sb.Append(listI); writer.sb.Append(':'); if (listV != null) { listV.writeDataString(writer); } else { writer.sb.Append("KeyData=null"); } writer.writeEnter(); } writer.writeRightBrace(); } else { writer.sb.Append("=null"); } writer.writeEnter(); }
/// <summary> /// 转文本输出 /// </summary> protected override void toWriteDataString(DataWriter writer) { base.toWriteDataString(writer); writer.writeTabs(); writer.sb.Append("page"); writer.sb.Append(':'); writer.sb.Append(this.page); writer.writeEnter(); writer.writeTabs(); writer.sb.Append("arg"); writer.sb.Append(':'); writer.sb.Append(this.arg); writer.writeEnter(); writer.writeTabs(); writer.sb.Append("dic"); writer.sb.Append(':'); writer.sb.Append("Map<int,KeyData>"); if (this.dic != null) { writer.sb.Append('('); writer.sb.Append(this.dic.size()); writer.sb.Append(')'); writer.writeEnter(); writer.writeLeftBrace(); if (!this.dic.isEmpty()) { int dicKFreeValue = this.dic.getFreeValue(); int[] dicKKeys = this.dic.getKeys(); KeyData[] dicVValues = this.dic.getValues(); for (int dicKI = dicKKeys.Length - 1; dicKI >= 0; --dicKI) { int dicK = dicKKeys[dicKI]; if (dicK != dicKFreeValue) { KeyData dicV = dicVValues[dicKI]; writer.writeTabs(); writer.sb.Append(dicK); writer.sb.Append(':'); if (dicV != null) { dicV.writeDataString(writer); } else { writer.sb.Append("KeyData=null"); } writer.writeEnter(); } } } writer.writeRightBrace(); } else { writer.sb.Append("=null"); } writer.writeEnter(); writer.writeTabs(); writer.sb.Append("changePageSet"); writer.sb.Append(':'); writer.sb.Append("Set<int>"); if (this.changePageSet != null) { writer.sb.Append('('); writer.sb.Append(this.changePageSet.size()); writer.sb.Append(')'); writer.writeEnter(); writer.writeLeftBrace(); if (!this.changePageSet.isEmpty()) { int changePageSetVFreeValue = this.changePageSet.getFreeValue(); int[] changePageSetVKeys = this.changePageSet.getKeys(); for (int changePageSetVI = changePageSetVKeys.Length - 1; changePageSetVI >= 0; --changePageSetVI) { int changePageSetV = changePageSetVKeys[changePageSetVI]; if (changePageSetV != changePageSetVFreeValue) { writer.writeTabs(); writer.sb.Append(changePageSetV); writer.writeEnter(); } } } writer.writeRightBrace(); } else { writer.sb.Append("=null"); } writer.writeEnter(); }