1 |
|
|
2 |
|
package pl.magot.vetch.ancal; |
3 |
|
|
4 |
|
|
5 |
|
import java.util.Calendar; |
6 |
|
|
7 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (10) |
Complexity: 1 |
Complexity Density: 0,11 |
|
8 |
|
public class RepeatDataValue |
9 |
|
{ |
10 |
|
|
11 |
|
public long lMS = 0; |
12 |
|
public int iYear = 0; |
13 |
|
public int iMonth = 0; |
14 |
|
public int iDay = 0; |
15 |
|
public int iDayOfWeek = 0; |
16 |
|
public int lDST_OFFSET = 0; |
17 |
|
public int iMaxMonthDay = 0; |
18 |
|
|
19 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 1 |
Complexity Density: 0,11 |
|
20 |
1932
|
public void getFromCalendar(Calendar value)... |
21 |
|
{ |
22 |
1932
|
iYear = value.get(Calendar.YEAR); |
23 |
1932
|
iMonth = value.get(Calendar.MONTH); |
24 |
1932
|
iDay = value.get(Calendar.DAY_OF_MONTH); |
25 |
|
|
26 |
|
|
27 |
1932
|
value.set(iYear, iMonth, iDay, 12, 0, 0); |
28 |
1932
|
value.set(Calendar.MILLISECOND, 0); |
29 |
|
|
30 |
|
|
31 |
1932
|
iDayOfWeek = value.get(Calendar.DAY_OF_WEEK); |
32 |
1932
|
lMS = value.getTimeInMillis(); |
33 |
1932
|
lDST_OFFSET = value.get(Calendar.DST_OFFSET); |
34 |
1932
|
iMaxMonthDay = value.getActualMaximum(Calendar.DAY_OF_MONTH); |
35 |
|
} |
36 |
|
} |