Interface TimeRangeFactory
- All Known Implementing Classes:
DefaultTimeRangeFactory
public interface TimeRangeFactory
Creates time rages
TimeRange based on given input-
Method Summary
Modifier and TypeMethodDescriptioncreateTimeRange(String range) Creates time range based on given rangecreateTimeRanges(String commaSeparatedRanges) Creates ranges from given comma separated values
-
Method Details
-
createTimeRanges
Creates ranges from given comma separated values- Parameters:
commaSeparatedRanges- e.g. 2m,3h,2w,3w,1d -createTimeRange(String)- Returns:
- list of time ranges. They are sorted from the smallest one.
-
createTimeRange
Creates time range based on given range- Parameters:
range- range in following format xm - x minutes, xh - x hours, xd - x days, xw - x weeks- Returns:
- TimeRage object
-