ClockUpdate.java
1 |
|
2 |
* Represent a clock update including all necessary information. |
3 |
* @author jvermeulen |
4 |
*/ |
5 |
public class ClockUpdate { |
6 |
private int mHour; |
7 |
private int mMinute; |
8 |
private int mSecond; |
9 |
private boolean mIsRunning; |
10 |
|
11 |
|
12 |
ClockUpdate(int hour, int minute, int second, boolean isRunning) { |
13 |
mHour = hour; |
14 |
mMinute = minute; |
15 |
mSecond = second; |
16 |
mIsRunning = isRunning; |
17 |
} |
18 |
|
19 |
/** |
20 |
* @return the mHour |
21 |
*/ |
22 |
public int getHour() { |
23 |
return mHour; |
24 |
} |
25 |
|
26 |
/** |
27 |
* @param hour the hour to set |
28 |
*/ |
29 |
public void setHour(int hour) { |
30 |
this.mHour = hour; |
31 |
} |
32 |
|
33 |
/** |
34 |
* @return the mMinute |
35 |
*/ |
36 |
public int getMinute() { |
37 |
return mMinute; |
38 |
} |
39 |
|
40 |
/** |
41 |
* @param minute the minute to set |
42 |
*/ |
43 |
public void setMinute(int minute) { |
44 |
this.mMinute = minute; |
45 |
} |
46 |
|
47 |
/** |
48 |
* @return the mSecond |
49 |
*/ |
50 |
public int getSecond() { |
51 |
return mSecond; |
52 |
} |
53 |
|
54 |
/** |
55 |
* @param second the second to set |
56 |
*/ |
57 |
public void setSecond(int second) { |
58 |
this.mSecond = second; |
59 |
} |
60 |
|
61 |
/** |
62 |
* @return the mIsRunning |
63 |
*/ |
64 |
public boolean isRunning() { |
65 |
return mIsRunning; |
66 |
} |
67 |
|
68 |
/** |
69 |
* @param isRunning the isRunning to set |
70 |
*/ |
71 |
public void setRunning(boolean isRunning) { |
72 |
this.mIsRunning = isRunning; |
73 |
} |
74 |
|
75 |
} |
76 |