1 package jodd.datetime; 2 3 /** 4 * Interface for various converters from/to JDateTime. 5 */ 6 public interface JdtConverter { 7 8 /** 9 * Loads time information from object to JDateTime 10 * 11 * @param jdt 12 * @param o 13 */ 14 public void load(JDateTime jdt, Object o); 15 16 /** 17 * Creates a new instance of specified class and loads it with the time 18 * information from JDateTime. 19 * 20 * @param jdt 21 * 22 * @return new instance of specified class populated with time information 23 * @see #store 24 */ 25 public Object get(JDateTime jdt); 26 27 28 /** 29 * Stores time information to object. 30 * 31 * @param jdt 32 * @param o 33 */ 34 public void store(JDateTime jdt, Object o); 35 36 } 37