public class OfficeHourStrategy extends AbstractFlipStrategy
| Modifier and Type | Field and Description |
|---|---|
static String |
OVERRIDE_DATE
Contacts.
|
initParams| Constructor and Description |
|---|
OfficeHourStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(String featureName,
FeatureStore store,
FlippingExecutionContext executionContext)
Tell if flip should be realized.
|
void |
init(String featureName,
Map<String,String> initParam)
Allow to parameterized Flipping Strategy
|
boolean |
matches(Calendar cal,
List<HourInterval> listOfHI)
Check if present time is at least in of the hour Interval.
|
List<HourInterval> |
parseIntervalsExpression(String expression)
Parse Target expression.
|
assertRequiredParameter, getInitParams, getType, toJson, toStringpublic static final String OVERRIDE_DATE
public void init(String featureName, Map<String,String> initParam)
init in interface FlippingStrategyinit in class AbstractFlipStrategyfeatureName - current featureNamepublic List<HourInterval> parseIntervalsExpression(String expression)
expression - target expressionpublic boolean matches(Calendar cal, List<HourInterval> listOfHI)
listOfHI - enable to list hour intervalspublic boolean evaluate(String featureName, FeatureStore store, FlippingExecutionContext executionContext)
featureName - target featureNameexecutionContext - custom params to make decisionCopyright © 2013–2017 FF4J. All rights reserved.