com.intel.util
Class Calendar.TimeRange
- java.lang.Object
-
- com.intel.util.Calendar.TimeRange
-
- Enclosing class:
- Calendar
public abstract static class Calendar.TimeRange extends java.lang.Object
This class represents a time range.
The time range is closed and bounded from both sides. It means that, point is in the range if and only if point is either strictly between two end-point or is equals to one of the end-points.
The range can be defined as follows: (start,end) = {x | start-
-
Constructor Summary
Constructors Constructor and Description Calendar.TimeRange()
-
Method Summary
Methods Modifier and Type Method and Description abstract boolean
contains(Calendar.DateTime date)
Check if DateTime is in the the range or equal to the one of the bound end-points.abstract Calendar.DateTime
end()
Returns aCalendar.DateTime
object representing the end part of the time rangeabstract Calendar.DateTime
start()
Returns aCalendar.DateTime
object representing the start part of the time range
-
-
-
Method Detail
-
start
public abstract Calendar.DateTime start()
Returns aCalendar.DateTime
object representing the start part of the time range- Returns:
- A
Calendar.DateTime
object representing the start part of the time range
-
end
public abstract Calendar.DateTime end()
Returns aCalendar.DateTime
object representing the end part of the time range- Returns:
- A
Calendar.DateTime
object representing the end part of the time range
-
contains
public abstract boolean contains(Calendar.DateTime date)
Check if DateTime is in the the range or equal to the one of the bound end-points.- Returns:
- 'true' if DateTime is in the range or equal to the one of the bound end-points; 'false' otherwise.
-
-