Package hec.data
Class TimeWindow
java.lang.Object
hec.data.TimeWindow
-
Constructor Summary
ConstructorsConstructorDescriptionTimeWindow
(Date startDate, boolean startInclusive, Date endDate, boolean endInclusive) TimeWindow
(Date startDate, boolean startInclusive, Date endDate, boolean endInclusive, boolean overrideProtection) -
Method Summary
Modifier and TypeMethodDescriptionbuildDateListForInterval
(Interval interval, IntervalOffset offset, TimeZone tz) boolean
contains
(TimeWindow timeWindow) boolean
boolean
boolean
boolean
boolean
isStartDate
(Date date) boolean
void
setEndDate
(Date endDate) void
setEndInclusive
(boolean tf) void
setStartDate
(Date startDate) void
setStartInclusive
(boolean tf)
-
Constructor Details
-
TimeWindow
-
TimeWindow
-
-
Method Details
-
isEndInclusive
public boolean isEndInclusive() -
setEndInclusive
public void setEndInclusive(boolean tf) -
isStartInclusive
public boolean isStartInclusive() -
setStartInclusive
public void setStartInclusive(boolean tf) -
getEndDate
-
setEndDate
-
getStartDate
-
setStartDate
-
isStartDate
-
isEndDate
-
contains
-
isOverridingProtection
public boolean isOverridingProtection() -
contains
-
buildDateListForInterval
public NavigableSet<Date> buildDateListForInterval(Interval interval, IntervalOffset offset, TimeZone tz) - Parameters:
offset
- Requires non-null!!!interval
- Requires non-null!!!tz
- Requires non-null!!!- Returns:
-