-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLog.java
More file actions
37 lines (29 loc) · 865 Bytes
/
Log.java
File metadata and controls
37 lines (29 loc) · 865 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
public class Log {
private char id;
private int level;
private int startTime;
private int endTime;
public Log(char id, int level, int startTime) {
this.id = id;
this.level = level;
this.startTime = startTime;
}
public char getId() {
return this.id;
}
public int getLevel() {
return this.level;
}
public int getStartTime() {
return this.startTime;
}
public int getEndTime() {
return this.endTime;
}
public void setEndTime(int time) {
this.endTime = time;
}
public String toString() {
return this.id + "\t" + this.level + "\t" + this.startTime + "\t" + this.endTime;
}
}