接口 Printer<T>

类型参数:
T - the type of object this Printer prints
所有已知子接口:
Formatter<T>
所有已知实现类:
AbstractNumberFormatter, CurrencyStyleFormatter, CurrencyUnitFormatter, DateFormatter, InstantFormatter, MonetaryAmountFormatter, NumberStyleFormatter, PercentStyleFormatter, TemporalAccessorPrinter
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface Printer<T>
Prints objects of type T for display.
从以下版本开始:
4.0
作者:
Keith Donald
  • 方法概要

    修饰符和类型
    方法
    说明
    print(T object, Locale locale)
    Print the object of type T for display.
  • 方法详细资料

    • print

      String print(T object, Locale locale)
      Print the object of type T for display.
      参数:
      object - the instance to print
      locale - the current user locale
      返回:
      the printed text string