public class AdvancedTimePeriod extends Object implements TimePeriod
| Modifier and Type | Field and Description |
|---|---|
protected BusinessCalendar |
businessCalendar |
protected Calendar |
calendar |
protected int |
endDay |
protected int |
endMonth |
protected boolean |
isWorkingPeriod |
protected Locale |
locale |
protected int |
startDay |
protected int |
startMonth |
| Constructor and Description |
|---|
AdvancedTimePeriod(int startDay,
int endDay,
int startMonth,
int endMonth,
boolean workingPeriod,
Locale locale,
BusinessCalendar businessCalendar) |
AdvancedTimePeriod(String periodDefinitionString,
Locale locale,
String businessCalendarProperties) |
| Modifier and Type | Method and Description |
|---|---|
BusinessCalendar |
getBusinessCalendar() |
int |
getEndDay() |
int |
getEndMonth() |
Locale |
getLocale() |
String |
getPeriodString() |
int |
getStartDay() |
int |
getStartMonth() |
boolean |
isWorkingPeriod() |
protected void |
parseString(String periodDefinitionString) |
protected boolean |
timeIsInNormalPeriod(Calendar cal) |
boolean |
timeIsInPeriod(long time) |
protected boolean |
timeIsInWorkingPeriod(Calendar cal) |
protected boolean |
validateMonth(Calendar cal) |
protected Calendar calendar
protected BusinessCalendar businessCalendar
protected Locale locale
protected boolean isWorkingPeriod
protected int startDay
protected int endDay
protected int startMonth
protected int endMonth
public AdvancedTimePeriod(String periodDefinitionString, Locale locale, String businessCalendarProperties) throws Exception
Exceptionpublic AdvancedTimePeriod(int startDay,
int endDay,
int startMonth,
int endMonth,
boolean workingPeriod,
Locale locale,
BusinessCalendar businessCalendar)
protected void parseString(String periodDefinitionString)
public boolean timeIsInPeriod(long time)
timeIsInPeriod in interface TimePeriodprotected boolean timeIsInNormalPeriod(Calendar cal)
protected boolean timeIsInWorkingPeriod(Calendar cal)
protected boolean validateMonth(Calendar cal)
public boolean isWorkingPeriod()
public BusinessCalendar getBusinessCalendar()
public Locale getLocale()
public int getStartDay()
public int getEndDay()
public int getStartMonth()
public int getEndMonth()
public String getPeriodString()
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.