@Test public void getNext() throws Exception { DateTimePeriod period0 = DateTimePeriod.createHour(2009, 12, 31, 23, DateTimeZone.UTC); DateTimePeriod period1 = period0.getNext(); DateTime correctStart = new DateTime(2010,1,1,0,0,0,0,DateTimeZone.UTC); DateTime correctEnd = new DateTime(2010,1,1,1,0,0,0,DateTimeZone.UTC); Assert.assertEquals(correctStart, period1.getStart()); Assert.assertEquals(correctEnd, period1.getEnd()); }
@Override public DateTimePeriod getNext() { DateTime next = getStart().plusHours(1); return DateTimePeriod.createHour(next); }
DateTimeHour extends DateTimePeriod { @Override public DateTimePeriod getNext() { DateTime next = getStart().plusHours(1); return DateTimePeriod.createHour(next); } }
DateTimeHour extends DateTimePeriod { @Override public DateTimePeriod getNext() { DateTime next = getStart().plusHours(1); return DateTimePeriod.createHour(next); } protected  DateTimeHour(DateTime start, DateTime end); }
DateTimeHour extends DateTimePeriod { @Override public DateTimePeriod getNext() { DateTime next = getStart().plusHours(1); return DateTimePeriod.createHour(next); } protected  DateTimeHour(DateTime start, DateTime end); @Override DateTimePeriod getNext(); @Override DateTimePeriod getPrevious(); @Override DateTimeDuration getDefaultSubDuration(); }
DateTimeHour extends DateTimePeriod { @Override public DateTimePeriod getNext() { DateTime next = getStart().plusHours(1); return DateTimePeriod.createHour(next); } protected  DateTimeHour(DateTime start, DateTime end); @Override DateTimePeriod getNext(); @Override DateTimePeriod getPrevious(); @Override DateTimeDuration getDefaultSubDuration();  }