This commit is contained in:
地平线
2015-09-16 11:11:05 +08:00
parent d99c183487
commit 11d1d7e064

View File

@@ -39,6 +39,18 @@ public interface AnyValue {
return new DefaultAnyValue();
}
public static final DefaultAnyValue create(String name, String value) {
DefaultAnyValue conf = new DefaultAnyValue();
conf.addValue(name, value);
return conf;
}
public static final DefaultAnyValue create(String name, AnyValue value) {
DefaultAnyValue conf = new DefaultAnyValue();
conf.addValue(name, value);
return conf;
}
public DefaultAnyValue() {
this(false);
}