public class TimedSchedule extends Schedule
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Autogenerated equals.
|
Date |
getEndDate()
Get the last possible time an event may be allowed.
|
Date |
getNextEvent(Date lastEvent,
int numPreviousEvents)
Return the date at which the next event will happen.
|
int |
hashCode()
Autogenerated hashcode method.
|
String |
toString()
Human readable represenation of this object.
|
getComments, getEdition, getFirstEvent, getFrequency, getInstance, getInstance, getName, getStartDate, setComments, setEdition
public int hashCode()
public Date getNextEvent(Date lastEvent, int numPreviousEvents)
getNextEvent
in class Schedule
lastEvent
- The time at which the previous event happened. If this is null, then the method returns null. Ie
once one is after the last event one is always after the last event.numPreviousEvents
- How many events have previously happened (ignored).ArgumentNotValid
- if numPreviousEvents is negativepublic Date getEndDate()
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.