You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
406 B
21 lines
406 B
# Spring Printer
|
|
|
|
- 类全路径: `org.springframework.format.Printer`
|
|
- 类作用: 对象转换成字符串
|
|
|
|
```java
|
|
@FunctionalInterface
|
|
public interface Printer<T> {
|
|
|
|
/**
|
|
* Print the object of type T for display.
|
|
* 打印对象
|
|
* @param object the instance to print
|
|
* @param locale the current user locale
|
|
* @return the printed text string
|
|
*/
|
|
String print(T object, Locale locale);
|
|
|
|
}
|
|
```
|