mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
add Properties.getProperty(String,String)
This commit is contained in:
parent
e507a26081
commit
6409747f17
@ -37,6 +37,14 @@ public class Properties extends Hashtable {
|
||||
return (String)get(key);
|
||||
}
|
||||
|
||||
public String getProperty(String key, String defaultValue) {
|
||||
String value = (String) get(key);
|
||||
if (value == null) {
|
||||
return defaultValue;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setProperty(String key, String value) {
|
||||
put(key, value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user