-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathBasicClass.java
More file actions
43 lines (34 loc) · 772 Bytes
/
BasicClass.java
File metadata and controls
43 lines (34 loc) · 772 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
import java.io.Serializable;
/**
* Used in Class File API examples.
*/
public class BasicClass implements Serializable {
private String attribute;
private int timestamp;
private boolean active;
public BasicClass() {
}
public BasicClass(String attribute, int timestamp, boolean active) {
this.attribute = attribute;
this.timestamp = timestamp;
this.active = active;
}
public String getAttribute() {
return attribute;
}
public void setAttribute(String attribute) {
this.attribute = attribute;
}
public int getTimestamp() {
return timestamp;
}
public void setTimestamp(int timestamp) {
this.timestamp = timestamp;
}
public boolean isActive() {
return active;
}
public void setActive(boolean active) {
this.active = active;
}
}