added getParams method to Params

This commit is contained in:
Stephan Richter
2021-06-17 12:17:17 +02:00
parent ab8a915380
commit e46217234c
2 changed files with 7 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.srsoftware</groupId>
<artifactId>web4rail</artifactId>
<version>1.4.39</version>
<version>1.4.40</version>
<name>Web4Rail</name>
<packaging>jar</packaging>
<description>Java Model Railway Control</description>

View File

@@ -28,4 +28,10 @@ public class Params extends HashMap<String, Object> {
return null;
}
}
public Params getParams(Object key) {
Object v = super.get(key);
if (v instanceof Params) return (Params) v;
return null;
}
}