public class FlippingExecutionContext
extends Object
FlippingStrategy
evaluations.
Constructor and Description |
---|
FlippingExecutionContext()
Default Constructor.
|
FlippingExecutionContext(FlippingExecutionContext executionContext)
Initializing context.
|
FlippingExecutionContext(Map<String,Object> init)
Initializing context.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(String key, Object value)
Add a value to the parameter list.
|
boolean |
containsKey(String key)
Check inexistence of key within map
|
boolean |
equals(Object obj) |
Boolean |
getBoolean(String key)
Convenient method to get a string value.
|
Boolean |
getBoolean(String key, boolean required)
Convenient method to get a string value.
|
Date |
getDate(String key)
Convenient method to get a string value.
|
Date |
getDate(String key, boolean required)
Convenient method to get a string value.
|
Double |
getDouble(String key)
Convenient method to get a string value.
|
Double |
getDouble(String key, boolean required)
Convenient method to get a string value.
|
Integer |
getInt(String key)
Convenient method to get a string value.
|
Integer |
getInt(String key, boolean required)
Convenient method to get a string value.
|
String |
getString(String key)
Default get Value.
|
String |
getString(String key, boolean required)
Convenient method to get a string value.
|
Object |
getValue(String key, boolean required)
Get Raw value of the parameter map.
|
int |
hashCode() |
boolean |
isEmpty()
Check if the current flipping execution is empty or not.
|
void |
putBoolean(String key, Boolean value)
Convenient method to add a parameter of type
String .
|
void |
putDate(String key, Date value)
Convenient method to add a parameter of type
String .
|
void |
putDouble(String key, Double value)
Convenient method to add a parameter of type
String .
|
void |
putInt(String key, Integer value)
Convenient method to add a parameter of type
String .
|
void |
putString(String key, String value)
Convenient method to add a parameter of type
String .
|
public FlippingExecutionContext()
public FlippingExecutionContext(Map<String,Object> init)
init
- initialisation for parameters.public FlippingExecutionContext(FlippingExecutionContext executionContext)
executionContext
- An existing execution context to copy.public Object getValue(String key, boolean required)
key
- current keypublic boolean containsKey(String key)
key
- target parameter keypublic void addValue(String key, Object value)
key
- target keyvalue
- target valuepublic String getString(String key, boolean required)
key
- current keyrequired
- if value is requiredpublic Boolean getBoolean(String key)
key
- current keyrequired
- if value is requiredpublic Boolean getBoolean(String key, boolean required)
key
- current keyrequired
- if value is requiredpublic Integer getInt(String key)
key
- current keyrequired
- if value is requiredpublic Integer getInt(String key, boolean required)
key
- current keyrequired
- if value is requiredpublic Double getDouble(String key)
key
- current keyrequired
- if value is requiredpublic Double getDouble(String key, boolean required)
key
- current keyrequired
- if value is requiredpublic Date getDate(String key)
key
- current keyrequired
- if value is requiredpublic Date getDate(String key, boolean required)
key
- current keyrequired
- if value is requiredpublic String getString(String key)
key
- target keypublic void putString(String key, String value)
String
.
key
- current ley of the parametersvalue
- value of the parameterpublic void putBoolean(String key, Boolean value)
String
.
key
- current ley of the parametersvalue
- value of the parameterpublic void putDate(String key, Date value)
String
.
key
- current ley of the parametersvalue
- value of the parameterpublic void putInt(String key, Integer value)
String
.
key
- current ley of the parametersvalue
- value of the parameterpublic void putDouble(String key, Double value)
String
.
key
- current ley of the parametersvalue
- value of the parameterpublic boolean isEmpty()
true
if execution context is empty, false otherwise.public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
Copyright © 2013–2020 FF4J. All rights reserved.