added getParams method to Params
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user