Class Interval
Defined in: interval.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Interval(start, end, value)
|
Method Attributes | Method Name and Description |
---|---|
<static> |
Interval.comparator(int1, int2)
Compares provided intervals and returns -1, 0, or 1 based on the
following rules:
|
Class Detail
Interval(start, end, value)
- Parameters:
- start
- Date instance representing start time of interval.
- end
- Date instance representing end time of interval.
- value
- Domain specific value for the interval. Default behavior is for numeric values.
Method Detail
<static>
Interval.comparator(int1, int2)
Compares provided intervals and returns -1, 0, or 1 based on the
following rules:
- -1: i1 start < i2 start or same and i1 end < 12 end
- 0: i1 start and end equal to i2
- 1: i1 start > i2 start or same and i1 end > i2 end
- Parameters:
- int1
- int2
- Returns:
- -1, 0, or 1 based on start and end times of the intervals.