Class RepeatingInterval
java.lang.Object
io.camunda.zeebe.model.bpmn.util.time.RepeatingInterval
- All Implemented Interfaces:
Timer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetDueDate(long fromEpochMillis) intinthashCode()static RepeatingIntervalstatic RepeatingIntervalParses a repeating interval as two parts, separated by a given interval designator.
-
Field Details
-
INTERVAL_DESGINATOR
- See Also:
-
INFINITE
public static final int INFINITE- See Also:
-
-
Constructor Details
-
RepeatingInterval
-
-
Method Details
-
getInterval
- Specified by:
getIntervalin interfaceTimer
-
getRepetitions
public int getRepetitions()- Specified by:
getRepetitionsin interfaceTimer
-
getDueDate
public long getDueDate(long fromEpochMillis) - Specified by:
getDueDatein interfaceTimer
-
hashCode
public int hashCode() -
equals
-
parse
-
parse
Parses a repeating interval as two parts, separated by a given interval designator.The first part describes how often the interval should be repeated, and the second part is the interval itself; see
Interval.parse(String)for more on parsing the interval.The repeating part is conform to the following format: R[0-9]*
If given an interval with, e.g. the interval designator is not present in the text, it is assumed implicitly that the interval is meant to be repeated infinitely.
- Parameters:
text- text to parseintervalDesignator- the separator between the repeating and interval texts- Returns:
- a RepeatingInterval based on the given text
-