Provide description of stateless objects in the constructor of OnlineRoutingEngine

This commit is contained in:
nazar-kutz 2021-03-05 14:54:01 +02:00
parent 203734d7d3
commit d47a19eff8

View file

@ -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);
} }