95 Star 768 Fork 341

doocs / source-code-hunter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Spring-Parser.md 629 Bytes
一键复制 编辑 原始数据 按行查看 历史
yanglbme 提交于 2020-12-10 03:06 . docs: prettify code

Spring Parser

  • 类全路径: org.springframework.format.Parser
  • 类作用: 字符串准换成 java 对象

@FunctionalInterface
public interface Parser<T> {

	/**
	 * Parse a text String to produce a T.
	 * 将字符串转换成对象
	 * @param text the text string
	 * @param locale the current user locale
	 * @return an instance of T
	 * @throws ParseException when a parse exception occurs in a java.text parsing library
	 * @throws IllegalArgumentException when a parse exception occurs
	 */
	T parse(String text, Locale locale) throws ParseException;

}
  • 类图

Parser

Java
1
https://gitee.com/Doocs/source-code-hunter.git
git@gitee.com:Doocs/source-code-hunter.git
Doocs
source-code-hunter
source-code-hunter
main

搜索帮助