3.5.1 Formatter SPI
package org.springframework.format;
public interface Formatter<T> extends Printer<T>, Parser<T> {
}public interface Printer<T> {
String print(T fieldValue, Locale locale);
}import java.text.ParseException;
public interface Parser<T> {
T parse(String clientValue, Locale locale) throws ParseException;
}Last updated
Was this helpful?