| Package | Description |
|---|---|
| org.codelogger.utils |
| Modifier and Type | Method and Description |
|---|---|
static List<Range<Date>> |
RangeUtils.getDateRanges(Date from,
Date to,
Period periodGranulation)
Returns Range<Date> list between given date from and date to by
period granulation.
|
static List<Range<Long>> |
RangeUtils.getLongRanges(Long from,
Long to,
int step)
Returns Range<Long> list between given from and to by step.The
minimum step is 1.
e.g: [from:0,to:3,step:1] => [[0-0],[1-1],[2-2],[3-3]] [from:0,to:7,step:2] => [[0-1],[2-3],[4-5],[6-7]] [from:0,to:7,step:3] => [[0-2],[3-5],[6-7]] |
Copyright © 2014. All rights reserved.