@Test public void testCreateWeeks() { doCreateWeeksTest(0); doCreateWeeksTest(-1); doCreateWeeksTest(5); }
public static Duration createWeeks(int weeks) { return createDuration(0, 0, weeks, 0); }
DurationFactory { public static Duration createWeeks(int weeks) { return createDuration(0, 0, weeks, 0); } }
DurationFactory { public static Duration createWeeks(int weeks) { return createDuration(0, 0, weeks, 0); } DurationFactory(); }
DurationFactory { public static Duration createWeeks(int weeks) { return createDuration(0, 0, weeks, 0); } DurationFactory(); static Duration createDuration(int years, int months, int weeks, int days); static Duration createDays(int days); static Duration createWeeks(int weeks); static Duration createMonths(int months); static Duration createYears(int years); static Duration getDAY(); static Duration getWEEK(); static Duration getMONTH(); static Duration getYEAR(); }
DurationFactory { public static Duration createWeeks(int weeks) { return createDuration(0, 0, weeks, 0); } DurationFactory(); static Duration createDuration(int years, int months, int weeks, int days); static Duration createDays(int days); static Duration createWeeks(int weeks); static Duration createMonths(int months); static Duration createYears(int years); static Duration getDAY(); static Duration getWEEK(); static Duration getMONTH(); static Duration getYEAR(); static final Duration DAY; static final Duration WEEK; static final Duration MONTH; static final Duration YEAR; }