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 |
---|
OffPeakHours.OffPeakHoursImpl(int startHour,
int endHour) |
Modifier and Type | Method and Description |
---|---|
boolean |
isOffPeakHour() |
boolean |
isOffPeakHour(int targetHour) |
getInstance, getInstance
OffPeakHours.OffPeakHoursImpl(int startHour, int endHour)
startHour
- inclusiveendHour
- exclusivepublic boolean isOffPeakHour()
isOffPeakHour
in class OffPeakHours
public boolean isOffPeakHour(int targetHour)
isOffPeakHour
in class OffPeakHours
targetHour
is off-peak hourCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.