-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInstruction.java
49 lines (39 loc) · 1.04 KB
/
Instruction.java
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
49
/**
* Pojo class which stores Instruction metadata
*/
public class Instruction {
private int time; // instruction time
private int type; // instruction type
private int firstParam; // params for insert, print or print range
private int secondParam;// params for insert or print range
public Instruction() {
}
@Override
public String toString() {
return String.format("%d, %d, %d, %d", time, type, firstParam, secondParam);
}
public int getTime() {
return time;
}
public void setTime(int time) {
this.time = time;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public int getFirstParam() {
return firstParam;
}
public void setFirstParam(int firstParam) {
this.firstParam = firstParam;
}
public int getSecondParam() {
return secondParam;
}
public void setSecondParam(int secondParam) {
this.secondParam = secondParam;
}
}