摘要:
pinyin4j的主页:http://pinyin4j.sourceforge.net/pinyin4j能够根据中文字符获取其对应的拼音,而且拼音的格式可以定制pinyin4j是一个支持将中文转换到拼音的Java开源类库 1.支持简体中文和繁体中文字符 2.支持转换到汉语拼音,通用拼音, 威妥玛拼音 阅读全文
posted @ 2016-05-13 17:36
山高我为峰
阅读(7218)
评论(0)
推荐(0)
摘要:
迭代器模式定义: Provide a way to access the elements of an aggregate object sequentially without exposingits underlying representation. 它提供了一种方法访问一个容器对象中各个元素 阅读全文
posted @ 2016-05-13 15:12
山高我为峰
阅读(298)
评论(0)
推荐(0)
摘要:
【扩展】一个对象如果不存储实体状体以及对象之间的关系,该对象就叫做贫血对象,对应的领域模型就是贫血领域模型有实体状体和对象关系的模型就是充血领域模型 适配器模式的定义: Convert the interface of a class into another interface clients e 阅读全文
posted @ 2016-05-13 12:29
山高我为峰
阅读(253)
评论(0)
推荐(0)
摘要:
策略模式的定义: Define a family of algorithms, encapsulates each one, and make them interchangeable. 定义一组算法,将每个算法都封装起来,并且使它们之间可以互换 策略模式三个角色: Context封装角色:上下文角 阅读全文
posted @ 2016-05-13 10:54
山高我为峰
阅读(292)
评论(0)
推荐(0)
浙公网安备 33010602011771号