@Test public void convertModelToCalendar() { Model testModel = dc.getTodayNepaliDate(); Calendar testCalendar = dc.convertModelToCalendar(testModel); assertThat(testModel.getYear(), is(testCalendar.get(Calendar.YEAR))); assertThat(testModel.getMonth(), is(testCalendar.get(Calendar.MONTH))); assertThat(testModel.getDay(), is(testCalendar.get(Calendar.DAY_OF_MONTH))); }
@SuppressWarnings("unused") public static Calendar convertModelToCalendar(Model tempModel) { return new GregorianCalendar(tempModel.getYear(), tempModel.getMonth(), tempModel.getDay(), 0, 0, 0); }
DateConverter { @SuppressWarnings("unused") public static Calendar convertModelToCalendar(Model tempModel) { return new GregorianCalendar(tempModel.getYear(), tempModel.getMonth(), tempModel.getDay(), 0, 0, 0); } }
DateConverter { @SuppressWarnings("unused") public static Calendar convertModelToCalendar(Model tempModel) { return new GregorianCalendar(tempModel.getYear(), tempModel.getMonth(), tempModel.getDay(), 0, 0, 0); } DateConverter(); }
DateConverter { @SuppressWarnings("unused") public static Calendar convertModelToCalendar(Model tempModel) { return new GregorianCalendar(tempModel.getYear(), tempModel.getMonth(), tempModel.getDay(), 0, 0, 0); } DateConverter(); Model getEnglishDate(@IntRange(from = 1970, to = 2090) int nepYY,
                                @IntRange(from = 1, to = 12) int nepMM,
                                @IntRange(from = 1, to = 32) int nepDD); @SuppressWarnings("unused") Calendar getEnglishDate(Model date); Model getNepaliDate(@IntRange(from = 1913 - 2033) int engYY,
                               @IntRange(from = 1, to = 12) int engMM,
                               @IntRange(from = 1, to = 31) int engDD); @SuppressWarnings("unused") Model getNepaliDate(Calendar date); @Contract(pure = true) static int getNepaliMonthString(@IntRange(from = 0, to = 11) int month); int getFirstWeekDayMonth(@IntRange(from = 1970, to = 2090) int yy, @IntRange(from = 1, to = 12) int mm); int noOfDaysInMonth(@IntRange(from = 1970, to = 2090) int yy, @IntRange(from = 1, to = 12) int mm); int getWeekDay(@IntRange(from = 1970, to = 2090) int yy, @IntRange(from = 1, to = 12) int mm, @IntRange(from = 1, to = 32) int dd); Model getTodayNepaliDate(); @SuppressWarnings("unused") static Calendar convertModelToCalendar(Model tempModel); @SuppressWarnings("unused") static Model convertCalendarToModel(Calendar date); static ArrayList<Model> getAllSaturdays(); }
DateConverter { @SuppressWarnings("unused") public static Calendar convertModelToCalendar(Model tempModel) { return new GregorianCalendar(tempModel.getYear(), tempModel.getMonth(), tempModel.getDay(), 0, 0, 0); } DateConverter(); Model getEnglishDate(@IntRange(from = 1970, to = 2090) int nepYY,
                                @IntRange(from = 1, to = 12) int nepMM,
                                @IntRange(from = 1, to = 32) int nepDD); @SuppressWarnings("unused") Calendar getEnglishDate(Model date); Model getNepaliDate(@IntRange(from = 1913 - 2033) int engYY,
                               @IntRange(from = 1, to = 12) int engMM,
                               @IntRange(from = 1, to = 31) int engDD); @SuppressWarnings("unused") Model getNepaliDate(Calendar date); @Contract(pure = true) static int getNepaliMonthString(@IntRange(from = 0, to = 11) int month); int getFirstWeekDayMonth(@IntRange(from = 1970, to = 2090) int yy, @IntRange(from = 1, to = 12) int mm); int noOfDaysInMonth(@IntRange(from = 1970, to = 2090) int yy, @IntRange(from = 1, to = 12) int mm); int getWeekDay(@IntRange(from = 1970, to = 2090) int yy, @IntRange(from = 1, to = 12) int mm, @IntRange(from = 1, to = 32) int dd); Model getTodayNepaliDate(); @SuppressWarnings("unused") static Calendar convertModelToCalendar(Model tempModel); @SuppressWarnings("unused") static Model convertCalendarToModel(Calendar date); static ArrayList<Model> getAllSaturdays();  }