admin 管理员组文章数量: 887021
2024年1月16日发(作者:java语言区分大小写吗)
44 } 45
46 public void setS1(String s1) { 47 this.s1 = s1; 48 } 49
50 public String getS2() { 51 return s2; 52 } 53
54 public void setS2(String s2) { 55 this.s2 = s2; 56 } 57
58 public String getS3() { 59 return s3; 60 } 61
62 public void setS3(String s3) { 63 this.s3 = s3; 64 } 65
66 public String getS4() { 67 return s4; 68 } 69
70 public void setS4(String s4) { 71 this.s4 = s4; 72 } 73
74 public String getS5() { 75 return s5; 76 } 77
78 public void setS5(String s5) { 79 this.s5 = s5; 80 } 81
82 public String getS6() { 83 return s6; 84 } 85
86 public void setS6(String s6) { 87 this.s6 = s6; 88 } 89
90 public String getS7() { 91 return s7; 92 } 93
94 public void setS7(String s7) { 95 this.s7 = s7; 96 } 97
98 public String getS8() { 99 return s8;100 }101
102 public void setS8(String s8) {103 this.s8 = s8;104 }105
106 public String getS9() {107 return s9;108 }109
110 public void setS9(String s9) {111 this.s9 = s9;112 }113
114 public int getI1() {
115 return i1;116 }117
118 public void setI1(int i1) {119 this.i1 = i1;120 }121
122 public int getI2() {123 return i2;124 }125
126 public void setI2(int i2) {127 this.i2 = i2;128 }129
130 public int getI3() {131 return i3;132 }133
134 public void setI3(int i3) {135 this.i3 = i3;136 }137
138 public int getI4() {139 return i4;140 }141
142 public void setI4(int i4) {143 this.i4 = i4;144 }145
146 public int getI5() {147 return i5;148 }149
150 public void setI5(int i5) {151 this.i5 = i5;152 }153
154 public int getI6() {155 return i6;156 }157
158 public void setI6(int i6) {159 this.i6 = i6;160 }161
162 public int getI7() {163 return i7;164 }165
166 public void setI7(int i7) {167 this.i7 = i7;168 }169
170 public int getI8() {171 return i8;172 }173
174 public void setI8(int i8) {175 this.i8 = i8;176 }177
178 public int getI9() {179 return i9;180 }181
182 public void setI9(int i9) {183 this.i9 = i9;184 }185
186 public boolean isB1() {187 return b1;188 }189
190 public void setB1(boolean b1) {191 this.b1 = b1;192 }193
194 public boolean isB2() {195 return b2;196 }197
198 public void setB2(boolean b2) {199 this.b2 = b2;200 }201
202 public boolean isB3() {203 return b3;204 }205
206 public void setB3(boolean b3) {207 this.b3 = b3;208 }209
210 public boolean isB4() {211 return b4;212 }213
214 public void setB4(boolean b4) {215 this.b4 = b4;216 }217
218 public boolean isB5() {219 return b5;220 }221
222 public void setB5(boolean b5) {223 this.b5 = b5;224 }225
226 public boolean isB6() {227 return b6;228 }229
230 public void setB6(boolean b6) {231 this.b6 = b6;232 }233
234 public boolean isB7() {235 return b7;236 }237
238 public void setB7(boolean b7) {239 this.b7 = b7;240 }241
242 public boolean isB8() {243 return b8;244 }245
246 public void setB8(boolean b8) {247 this.b8 = b8;248 }249
250 public boolean isB9() {251 return b9;252 }253
254 public void setB9(boolean b9) {255 this.b9 = b9;256 }
257
258 public List
262 public void setList(List
266 public Products(){267
268 }269
270 public Products(String s1, String s2, String s3, String s4, String s5,271 String s6, String s7, String s8, String s9, int i1, int i2, int i3,272 int i4, int i5, int i6, int i7, int i8, int i9, boolean b1,273 boolean b2, boolean b3, boolean b4, boolean b5, boolean b6,274 boolean b7, boolean b8, boolean b9, List
306 @Override307 public String toString() {308 return "Products [s1=" + s1 + ", s2=" + s2 + ", s3=" + s3 + ", s4="309 + s4 + ", s5=" + s5 + ", s6=" + s6 + ", s7=" + s7 + ", s8="310 + s8 + ", s9=" + s9 + ", i1=" + i1 + ", i2=" + i2 + ", i3="311 + i3 + ", i4=" + i4 + ", i5=" + i5 + ", i6=" + i6 + ", i7="312 + i7 + ", i8=" + i8 + ", i9=" + i9 + ", b1=" + b1 + ", b2="313 + b2 + ", b3=" + b3 + ", b4=" + b4 + ", b5=" + b5 + ", b6="314 + b6 + ", b7=" + b7 + ", b8=" + b8 + ", b9=" + b9 + ", list="315 + list + "]";316 }317 }View Code2、序列化:public List
版权声明:本文标题:java序列化反序列化之xstream、protobuf、protostuff的比较与使用例子 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1705370785h482977.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论