public class MinuteFrequency extends Frequency
Constructor and Description |
---|
MinuteFrequency(int numMinutes)
Constructor specifying the number of minutes between runs scheduled with this frequency.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Autogenerated equals.
|
Date |
getFirstEvent(Date startTime)
As this is an "anyTime" frequency, this method just returns its argument (so long as it is not null).
|
Date |
getNextEvent(Date lastEvent)
This method returns the time of the next event, which is just the value of lastEvent+(numMinutes)Minutes
|
Integer |
getOnDayOfMonth()
Return the exact day of month event should happen on, or null if this is an anyTime event or doesn't define what
day of month it should happen on.
|
Integer |
getOnDayOfWeek()
Return the exact day of week event should happen on, or null if this is an anyTime event or doesn't define what
day of week it should happen on.
|
Integer |
getOnHour()
Return the exact hour event should happen on, or null if this is an anyTime event or doesn't define what hour it
should happen on.
|
Integer |
getOnMinute()
Return the exact minute event should happen on, or null if this is an anyTime event or doesn't define what minute
it should happen on.
|
int |
hashCode()
Autogenerated hashcode method.
|
int |
ordinal()
Return an integer that can be used to identify the kind of frequency.
|
getNewInstance, getNumUnits, isAnytime
public MinuteFrequency(int numMinutes)
numMinutes
- public Date getNextEvent(Date lastEvent)
getNextEvent
in class Frequency
lastEvent
- A time from which the next event should be calculated.ArgumentNotValid
- if lastEvent is null.public Date getFirstEvent(Date startTime)
getFirstEvent
in class Frequency
startTime
- The earliest time the event can happen.ArgumentNotValid
- if startTime is null.public Integer getOnMinute()
Frequency
getOnMinute
in class Frequency
public Integer getOnHour()
Frequency
public Integer getOnDayOfWeek()
Frequency
getOnDayOfWeek
in class Frequency
public Integer getOnDayOfMonth()
Frequency
getOnDayOfMonth
in class Frequency
public int ordinal()
Frequency
public boolean equals(Object o)
Frequency
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.