org.codefilarete.tool.function.ConverterRegistry Maven / Gradle / Ivy
package org.codefilarete.tool.function;
import java.util.HashMap;
import java.util.Map;
import org.codefilarete.tool.function.Converter.NullAwareConverter;
/**
* @author Guilllaume Mary
*/
public class ConverterRegistry {
/**
* Instance based on valueOf() methods of default JDK classes like {@link Integer#valueOf(String)}
* Aimed at reading {@link java.util.Properties} values, for instance.
*/
public static final ConverterRegistry DEFAULT = new ConverterRegistry();
static {
DEFAULT.setConverter(Integer.class, new NullAwareConverter