@Test public void test_create_from_Calendar() throws Exception { assertEquals(20140912, create(create20140912Calendar())); }
public static int create(int year, int month, int day) { return year * 10000 + month * 100 + day; }
Dint { public static int create(int year, int month, int day) { return year * 10000 + month * 100 + day; } }
Dint { public static int create(int year, int month, int day) { return year * 10000 + month * 100 + day; }  }
Dint { public static int create(int year, int month, int day) { return year * 10000 + month * 100 + day; }  static int create(int year, int month, int day); static int create(Calendar calendar); static int create(Date date); static int compose(int year, int month, int day); static int year(int dint); static int month(int dint); static int day(int dint); static Calendar toCalendar(int dint); static Date toDate(int dint); static int today(); static int firstDayOfMonth(int dint); static int lastDayOfMonth(int dint); static int daysInAMonth(int year, int month); static boolean isLeapYear(int year); static int diff(int dint1, int dint2); static int addYears(int dint, int years); static int addYearsExtend(int dint, int years); static int addMonths(int dint, int add); static int addMonthsExtend(int dint, int add); static int addDays(int dint, int days); }
Dint { public static int create(int year, int month, int day) { return year * 10000 + month * 100 + day; }  static int create(int year, int month, int day); static int create(Calendar calendar); static int create(Date date); static int compose(int year, int month, int day); static int year(int dint); static int month(int dint); static int day(int dint); static Calendar toCalendar(int dint); static Date toDate(int dint); static int today(); static int firstDayOfMonth(int dint); static int lastDayOfMonth(int dint); static int daysInAMonth(int year, int month); static boolean isLeapYear(int year); static int diff(int dint1, int dint2); static int addYears(int dint, int years); static int addYearsExtend(int dint, int years); static int addMonths(int dint, int add); static int addMonthsExtend(int dint, int add); static int addDays(int dint, int days);  }