接口的使用
cn.taketoday.format.Parser
使用Parser的程序包
程序包
说明
An API for defining Formatters to format field model values for display in a UI.
Formatters for
java.util.Date properties.Integration with the JSR-310
java.time package in JDK 8.Formatters for
java.lang.Number properties.Integration with the JSR-354
javax.money package.Support classes for the formatting package,
providing common implementations as well as adapters.
-
cn.taketoday.format中Parser的使用
返回Parser的cn.taketoday.format中的方法修饰符和类型方法说明Parser<?>Get the Parser to parse a submitted value for a field offieldTypeannotated withannotation.参数类型为Parser的cn.taketoday.format中的方法 -
cn.taketoday.format.datetime中Parser的使用
修饰符和类型方法说明Parser<?>DateTimeFormatAnnotationFormatterFactory.getParser(DateTimeFormat annotation, Class<?> fieldType) -
cn.taketoday.format.datetime.standard中Parser的使用
修饰符和类型类说明classFormatterimplementation for a JSR-310Instant, following JSR-310's parsing rules for an Instant (that is, not using a configurableDateTimeFormatter): accepting the defaultISO_INSTANTformat as well asRFC_1123_DATE_TIME(which is commonly used for HTTP date header values)final classParserimplementation for a JSR-310TemporalAccessor, using aDateTimeFormatter(the contextual one, if available).修饰符和类型方法说明Parser<?>Jsr310DateTimeFormatAnnotationFormatterFactory.getParser(DateTimeFormat annotation, Class<?> fieldType) -
cn.taketoday.format.number中Parser的使用
修饰符和类型类说明classAbstract formatter for Numbers, providing aAbstractNumberFormatter.getNumberFormat(Locale)template method.classA BigDecimal formatter for number values in currency style.classA general-purpose number formatter using NumberFormat's number style.classA formatter for number values in percent style.修饰符和类型方法说明NumberFormatAnnotationFormatterFactory.getParser(NumberFormat annotation, Class<?> fieldType) -
cn.taketoday.format.number.money中Parser的使用
修饰符和类型类说明classFormatter for JSR-354CurrencyUnitvalues, from and to currency code Strings.classFormatter for JSR-354MonetaryAmountvalues, delegating toMonetaryAmountFormat.format(javax.money.MonetaryAmount)andMonetaryAmountFormat.parse(java.lang.CharSequence).修饰符和类型方法说明Parser<javax.money.MonetaryAmount>Jsr354NumberFormatAnnotationFormatterFactory.getParser(NumberFormat annotation, Class<?> fieldType) -
cn.taketoday.format.support中Parser的使用
参数类型为Parser的cn.taketoday.format.support中的方法修饰符和类型方法说明voidApplicationConversionService.addFormatterForFieldType(Class<?> fieldType, Printer<?> printer, Parser<?> parser) voidFormattingConversionService.addFormatterForFieldType(Class<?> fieldType, Printer<?> printer, Parser<?> parser) voidvoid