
org.rx.util.pinyin.PinyinDict Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxlib-x Show documentation
Show all versions of rxlib-x Show documentation
A set of utilities for Java
The newest version!
package org.rx.util.pinyin;
import java.util.Set;
/**
* 字典接口,字典应保证对{@link PinyinDict#words()}中的所有词,{@link PinyinDict#toPinyin(String)}均返回非null的结果
*
* Created by guyacong on 2016/12/23.
*/
public interface PinyinDict {
/**
* 字典所包含的所有词
*
* @return 所包含的所有词
*/
Set words();
/**
* 将词转换为拼音
*
* @param word 词
* @return 应保证对{@link PinyinDict#words()}中的所有词,{@link PinyinDict#toPinyin(String)}均返回非null的结果
*/
String[] toPinyin(String word);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy