public interface TimeInterval extends DiscoveryScheduler
Modifier and Type | Interface and Description |
---|---|
static class |
TimeInterval.Unit
Time units.
|
Modifier and Type | Method and Description |
---|---|
double |
getInterval()
Returns the duration of this TimeInterval.
|
TimeInterval.Unit |
getUnit()
Returns the time unit used by this TimeInterval object.
|
TimeInterval |
ofUnits(TimeInterval.Unit unit)
Sets the time unit used by this TimeInterval object.
|
void |
setInterval(double interval)
Sets the duration of this TimeInterval.
|
void |
setUnits(TimeInterval.Unit unit)
Sets the time unit used by this TimeInterval object.
|
TimeInterval |
withInterval(double interval)
Sets the duration of this TimeInterval.
|
TimeInterval |
withTemplate(String timeTemplate) |
getTimeTemplate
void setUnits(TimeInterval.Unit unit)
unit
- the time unit.void setInterval(double interval)
setUnits(Unit.HOUR); setInterval(5);
interval
- the duration.TimeInterval ofUnits(TimeInterval.Unit unit)
unit
- the time unit.TimeInterval withInterval(double interval)
interval
- the interval.TimeInterval.Unit getUnit()
double getInterval()
TimeInterval withTemplate(String timeTemplate)
Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.