refa ParameterModel, add a static factory

This commit is contained in:
coderfengyun 2014-01-15 15:49:30 +08:00
parent 2f3f397717
commit 6a8c2d9671
1 changed files with 6 additions and 0 deletions

View File

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