Provide description of stateless objects in the constructor of OnlineRoutingEngine
This commit is contained in:
parent
203734d7d3
commit
d47a19eff8
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,8 @@ public abstract class OnlineRoutingEngine implements Cloneable {
|
||||||
private final Set<EngineParameter> allowedParameters = new HashSet<>();
|
private final Set<EngineParameter> allowedParameters = new HashSet<>();
|
||||||
|
|
||||||
public OnlineRoutingEngine(@Nullable Map<String, String> params) {
|
public OnlineRoutingEngine(@Nullable Map<String, String> params) {
|
||||||
|
// Params represents the entire state of an engine object.
|
||||||
|
// An engine object with null params used only to provide information about the engine type
|
||||||
if (!isEmpty(params)) {
|
if (!isEmpty(params)) {
|
||||||
this.params.putAll(params);
|
this.params.putAll(params);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue