Class Index | File Index

Classes


Class Interval


Defined in: interval.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Interval(start, end, value)
Method Summary
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:
  • -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
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:
Parameters:
int1
int2
Returns:
-1, 0, or 1 based on start and end times of the intervals.

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Feb 13 2012 18:00:34 GMT-0800 (PST)