private static class OffPeakHours.OffPeakHoursImpl extends OffPeakHours
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
endHour |
(package private) int |
startHour |
DISABLED| Constructor and Description |
|---|
OffPeakHoursImpl(int startHour,
int endHour) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isOffPeakHour() |
boolean |
isOffPeakHour(int targetHour) |
getInstance, getInstanceOffPeakHoursImpl(int startHour, int endHour)
startHour - inclusiveendHour - exclusivepublic boolean isOffPeakHour()
isOffPeakHour in class OffPeakHourspublic boolean isOffPeakHour(int targetHour)
isOffPeakHour in class OffPeakHourstargetHour is off-peak hourCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.