public abstract class BaseSearcher<V> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected char[] |
c
待分词文本的char
|
protected int |
offset
指向当前处理字串的开始位置(前面的已经分词分完了)
|
| Modifier | Constructor and Description |
|---|---|
protected |
BaseSearcher(char[] c) |
protected |
BaseSearcher(String text) |
| Modifier and Type | Method and Description |
|---|---|
int |
getOffset()
获取当前偏移
|
abstract Map.Entry<String,V> |
next()
分出下一个词
|
protected BaseSearcher(char[] c)
protected BaseSearcher(String text)
Copyright © 2014–2021 码农场. All rights reserved.