All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mentalog.config.StringsConfigParam Maven / Gradle / Ivy

There is a newer version: 2.1.2
Show newest version
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));
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy