| Package | Description |
|---|---|
| org.codelogger.utils | |
| org.codelogger.utils.beans |
| Modifier and Type | Method and Description |
|---|---|
static Range<Date> |
RangeUtils.getDatePeriod(Date date,
Period period)
Return Range<Date> by given date and period.
|
| 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]] |
| Modifier and Type | Method and Description |
|---|---|
static <T> Range<T> |
Range.getInstance(Comparable<T> lowerBound,
Comparable<T> upperBound) |
| Modifier and Type | Method and Description |
|---|---|
int |
Range.compareTo(Range<T> otherRange) |
Copyright © 2014. All rights reserved.