3.4.1 Converter SPI
package org.springframework.core.convert.converter;
public interface Converter<S, T> {
T convert(S source);
}package org.springframework.core.convert.support;
final class StringToInteger implements Converter<String, Integer> {
public Integer convert(String source) {
return Integer.valueOf(source);
}
}Last updated
Was this helpful?