import java.util.ArrayList;public class Base { private String property1;
private String property2;
public String getProperty1() {
return property1;
}
public void setProperty1(String property1) {
this.property1 = property1;
}
public String getProperty2() {
return property2;
}
public void setProperty2(String property2) {
this.property2 = property2;
}
public static ArrayList getBaseList() {
ArrayList list = new ArrayList();
Base base = new Base();
list.add(base);
return list;
}}
private String property2;
public String getProperty1() {
return property1;
}
public void setProperty1(String property1) {
this.property1 = property1;
}
public String getProperty2() {
return property2;
}
public void setProperty2(String property2) {
this.property2 = property2;
}
public static ArrayList getBaseList() {
ArrayList list = new ArrayList();
Base base = new Base();
list.add(base);
return list;
}}
可以提高安全性