Class SchedulerDuration
java.lang.Object
com.thebuzzmedia.exiftool.core.schedulers.SchedulerDuration
A duration, represented by a delay and a time unit.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SchedulerDuration
Create new duration in millis.boolean
long
getDelay()
Get the duration delay.Get the duration time unit.int
hashCode()
static SchedulerDuration
millis
(long delay) Create new duration in millis.static SchedulerDuration
seconds
(long delay) Create new duration in seconds.toString()
-
Method Details
-
seconds
Create new duration in seconds.- Parameters:
delay
- The delay, in seconds.- Returns:
- The duration.
-
millis
Create new duration in millis.- Parameters:
delay
- The delay, in millis.- Returns:
- The duration.
-
duration
Create new duration in millis.- Parameters:
delay
- The delay, in millis.timeUnit
- The time unit.- Returns:
- The duration.
-
getDelay
public long getDelay()Get the duration delay.- Returns:
- The delay.
-
getTimeUnit
Get the duration time unit.- Returns:
- The time unit.
-
toString
-
equals
-
hashCode
public int hashCode()
-