接口的使用
cn.taketoday.format.Printer
使用Printer的程序包
程序包
说明
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中Printer的使用
返回Printer的cn.taketoday.format中的方法修饰符和类型方法说明Printer<?>AnnotationFormatterFactory.getPrinter(A annotation, Class<?> fieldType) Get the Printer to print the value of a field offieldTypeannotated withannotation.参数类型为Printer的cn.taketoday.format中的方法修饰符和类型方法说明voidFormatterRegistry.addFormatterForFieldType(Class<?> fieldType, Printer<?> printer, Parser<?> parser) Adds a Printer/Parser pair to format fields of a specific type.voidFormatterRegistry.addPrinter(Printer<?> printer) Adds a Printer to print fields of a specific type. -
cn.taketoday.format.datetime中Printer的使用
修饰符和类型方法说明Printer<?>DateTimeFormatAnnotationFormatterFactory.getPrinter(DateTimeFormat annotation, Class<?> fieldType) -
cn.taketoday.format.datetime.standard中Printer的使用
修饰符和类型类说明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 classPrinterimplementation for a JSR-310TemporalAccessor, using aDateTimeFormatter) (the contextual one, if available).修饰符和类型方法说明Printer<?>Jsr310DateTimeFormatAnnotationFormatterFactory.getPrinter(DateTimeFormat annotation, Class<?> fieldType) -
cn.taketoday.format.number中Printer的使用
修饰符和类型类说明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.getPrinter(NumberFormat annotation, Class<?> fieldType) -
cn.taketoday.format.number.money中Printer的使用
修饰符和类型类说明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).修饰符和类型方法说明Printer<javax.money.MonetaryAmount>Jsr354NumberFormatAnnotationFormatterFactory.getPrinter(NumberFormat annotation, Class<?> fieldType) -
cn.taketoday.format.support中Printer的使用
参数类型为Printer的cn.taketoday.format.support中的方法修饰符和类型方法说明voidApplicationConversionService.addFormatterForFieldType(Class<?> fieldType, Printer<?> printer, Parser<?> parser) voidFormattingConversionService.addFormatterForFieldType(Class<?> fieldType, Printer<?> printer, Parser<?> parser) voidApplicationConversionService.addPrinter(Printer<?> printer) voidFormattingConversionService.addPrinter(Printer<?> printer)