blob: 975dd6535587962f0ade0e415124e3e2a80e1f1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
package test1;
import java.io.*;
/**
*
* @author Bob Lee
*/
public class MySerializableClass implements Serializable, Cloneable {
/** default serialVersionUID */
private static final long serialVersionUID = 1L;
String fieldA;
String fieldB;
public MySerializableClass() { fieldA = null; }
public MySerializableClass(String k) { fieldA = k; }
public MySerializableClass(int k) { fieldA = null; }
public String getFieldA() {
return fieldB;
}
public String getFieldA(int i) { return fieldB; }
public String getFieldA(int i, int j) { return fieldB; }
public String getFieldB() {
return fieldB;
}
public void doSomething(Object o) {
}
}
|