org.mentalog.config.StringsConfigParam Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of menta-log Show documentation
Show all versions of menta-log Show documentation
A log library that embraces the kiss principle.
package org.mentalog.config;
public class StringsConfigParam extends ConfigParam {
public StringsConfigParam(String name, String defValue) {
super(name, toArray(defValue));
}
private final static String[] toArray(String s) {
if (s == null) return null;
return s.split("\\s*,\\s*");
}
@Override
protected String[] parseString(String s) {
return toArray(s);
}
public String[] values() {
return value();
}
public void set(String value) {
super.set(toArray(value));
}
}