Coverage Report - org.homeunix.thecave.buddi.model.impl.Time
 
Classes in this File Line Coverage Branch Coverage Complexity
Time
66%
4/6
50%
1/2
1.333
 
 1  
 /*
 2  
  * Created on Oct 10, 2007 by wyatt
 3  
  */
 4  
 package org.homeunix.thecave.buddi.model.impl;
 5  
 
 6  
 import java.util.Date;
 7  
 
 8  
 /**
 9  
  * A wrapper around Time.  We use a persistence delegate for Dates in the XML
 10  
  * file to avoid storing more information than we need (and to avoid time zone
 11  
  * bugs), but for certain things, such as Modified Date, we need more accuracy 
 12  
  * than just 'day'.
 13  
  * @author wyatt
 14  
  *
 15  
  */
 16  
 public class Time extends Date {
 17  
         public static final long serialVersionUID = 0;
 18  
         
 19  
         public Time() {
 20  261227
                 super();
 21  261227
         }
 22  
         
 23  
         public Time(long time){
 24  0
                 super(time);
 25  0
         }
 26  
         
 27  
         public Time(Date date){ 
 28  175972
                 super(date != null ? date.getTime() : new Date().getTime());
 29  175972
         }
 30  
 }