@Test public void testQ4Y9999Previous() { Quarter previous = (Quarter) this.q4Y9999.previous(); assertEquals(this.q3Y9999, previous); }
@Override public RegularTimePeriod previous() { Quarter result; if (this.quarter > FIRST_QUARTER) { result = new Quarter(this.quarter - 1, this.year); } else { if (this.year > 1900) { result = new Quarter(LAST_QUARTER, this.year - 1); } else { result = null; } } return result; }
Quarter extends RegularTimePeriod implements Serializable { @Override public RegularTimePeriod previous() { Quarter result; if (this.quarter > FIRST_QUARTER) { result = new Quarter(this.quarter - 1, this.year); } else { if (this.year > 1900) { result = new Quarter(LAST_QUARTER, this.year - 1); } else { result = null; } } return result; } }
Quarter extends RegularTimePeriod implements Serializable { @Override public RegularTimePeriod previous() { Quarter result; if (this.quarter > FIRST_QUARTER) { result = new Quarter(this.quarter - 1, this.year); } else { if (this.year > 1900) { result = new Quarter(LAST_QUARTER, this.year - 1); } else { result = null; } } return result; } Quarter();  Quarter(int quarter, int year);  Quarter(int quarter, Year year);  Quarter(Date time);  Quarter(Date time, TimeZone zone, Locale locale); }
Quarter extends RegularTimePeriod implements Serializable { @Override public RegularTimePeriod previous() { Quarter result; if (this.quarter > FIRST_QUARTER) { result = new Quarter(this.quarter - 1, this.year); } else { if (this.year > 1900) { result = new Quarter(LAST_QUARTER, this.year - 1); } else { result = null; } } return result; } Quarter();  Quarter(int quarter, int year);  Quarter(int quarter, Year year);  Quarter(Date time);  Quarter(Date time, TimeZone zone, Locale locale); int getQuarter(); Year getYear(); int getYearValue(); @Override long getFirstMillisecond(); @Override long getLastMillisecond(); @Override void peg(Calendar calendar); @Override RegularTimePeriod previous(); @Override RegularTimePeriod next(); @Override long getSerialIndex(); @Override boolean equals(Object obj); @Override int hashCode(); @Override int compareTo(TimePeriod o1); @Override String toString(); @Override long getFirstMillisecond(Calendar calendar); @Override long getLastMillisecond(Calendar calendar); static Quarter parseQuarter(String s); }
Quarter extends RegularTimePeriod implements Serializable { @Override public RegularTimePeriod previous() { Quarter result; if (this.quarter > FIRST_QUARTER) { result = new Quarter(this.quarter - 1, this.year); } else { if (this.year > 1900) { result = new Quarter(LAST_QUARTER, this.year - 1); } else { result = null; } } return result; } Quarter();  Quarter(int quarter, int year);  Quarter(int quarter, Year year);  Quarter(Date time);  Quarter(Date time, TimeZone zone, Locale locale); int getQuarter(); Year getYear(); int getYearValue(); @Override long getFirstMillisecond(); @Override long getLastMillisecond(); @Override void peg(Calendar calendar); @Override RegularTimePeriod previous(); @Override RegularTimePeriod next(); @Override long getSerialIndex(); @Override boolean equals(Object obj); @Override int hashCode(); @Override int compareTo(TimePeriod o1); @Override String toString(); @Override long getFirstMillisecond(Calendar calendar); @Override long getLastMillisecond(Calendar calendar); static Quarter parseQuarter(String s); static final int FIRST_QUARTER; static final int LAST_QUARTER; static final int[] FIRST_MONTH_IN_QUARTER; static final int[] LAST_MONTH_IN_QUARTER; }