refa ParameterModel, add a static factory
This commit is contained in:
parent
2f3f397717
commit
6a8c2d9671
|
@ -26,4 +26,10 @@ public class ParameterModel {
|
|||
this.value = value;
|
||||
}
|
||||
|
||||
public static ParameterModel createParameter(String key, String value) {
|
||||
ParameterModel parameterModel = new ParameterModel();
|
||||
parameterModel.setKey(key);
|
||||
parameterModel.setValue(value);
|
||||
return parameterModel;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue