forked from qiujiayu/AutoLoadCache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimple.java
More file actions
48 lines (35 loc) · 930 Bytes
/
Simple.java
File metadata and controls
48 lines (35 loc) · 930 Bytes
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
37
38
39
40
41
42
43
44
45
46
47
48
package com.test;
public class Simple implements java.io.Serializable {
private static final long serialVersionUID=-4333266259384775868L;
private Integer sex;
private Integer age;
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name=name;
}
public int getAge() {
return age;
}
public void setAge(Integer age) {
this.age=age;
}
public Integer getSex() {
return sex;
}
public void setSex(Integer sex) {
this.sex=sex;
}
static Simple getSimple() {
Simple simple=new Simple();
simple.setAge(10);
simple.setName("XiaoMing");
simple.setSex(2);
return simple;
}
public String toString() {
return "name=" + name + ";age=" + age + ";sex=" + sex;
}
}