Clover Coverage Report - AnCal Coverage Report
Coverage timestamp: gio dic 18 2014 12:18:42 EST
../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
9   36   1   9
0   24   0,11   1
1     1  
1    
This report was generated with an evaluation server license. Purchase Clover or configure your license.
 
  RepeatDataValue       Line # 8 9 1 100% 1.0
 
No Tests
 
1   
2    package pl.magot.vetch.ancal;
3   
4   
5    import java.util.Calendar;
6   
7    //date value for faster, cached access
 
8    public class RepeatDataValue
9    {
10    //fields
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    //methods
 
20  1932 toggle 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    //set Calendar
27  1932 value.set(iYear, iMonth, iDay, 12, 0, 0);
28  1932 value.set(Calendar.MILLISECOND, 0);
29   
30    //cache values
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    }