public abstract class CommonDictionary<V> extends Object
| 限定符和类型 | 类和说明 |
|---|---|
class |
CommonDictionary.Searcher
前缀搜索,长短都可匹配
|
| 构造器和说明 |
|---|
CommonDictionary() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
contains(String key)
是否含有键
|
V |
get(String key)
查询一个单词
|
BaseSearcher |
getSearcher(String text) |
boolean |
load(String path) |
protected abstract V[] |
onLoadValue(String path)
实现此方法来加载值
|
protected abstract boolean |
onSaveValue(V[] valueArray,
String path) |
int |
size()
词典大小
|
static boolean |
sort(String path)
排序这个词典
|
public boolean load(String path)
public boolean contains(String key)
key - public int size()
public static boolean sort(String path)
path - public BaseSearcher getSearcher(String text)
Copyright © 2014–2017 码农场. All rights reserved.