Format comments.
This commit is contained in:
parent
872aac8298
commit
ef2dbeb979
|
@ -32,24 +32,33 @@ package org.wltea.analyzer.dic;
|
|||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public class Hit {
|
||||
//Hit不匹配
|
||||
/**
|
||||
* Hit不匹配
|
||||
*/
|
||||
private static final int UNMATCH = 0x00000000;
|
||||
//Hit完全匹配
|
||||
/**
|
||||
* Hit完全匹配
|
||||
*/
|
||||
private static final int MATCH = 0x00000001;
|
||||
//Hit前缀匹配
|
||||
/**
|
||||
* Hit前缀匹配
|
||||
*/
|
||||
private static final int PREFIX = 0x00000010;
|
||||
|
||||
|
||||
//该HIT当前状态,默认未匹配
|
||||
/**
|
||||
* 该HIT当前状态,默认未匹配
|
||||
*/
|
||||
private int hitState = UNMATCH;
|
||||
|
||||
//记录词典匹配过程中,当前匹配到的词典分支节点
|
||||
/**
|
||||
* 记录词典匹配过程中,当前匹配到的词典分支节点
|
||||
*/
|
||||
private DictSegment matchedDictSegment;
|
||||
/*
|
||||
/**
|
||||
* 词段开始位置
|
||||
*/
|
||||
private int begin;
|
||||
/*
|
||||
/**
|
||||
* 词段的结束位置
|
||||
*/
|
||||
private int end;
|
||||
|
@ -86,9 +95,7 @@ public class Hit {
|
|||
public boolean isUnmatch() {
|
||||
return this.hitState == UNMATCH ;
|
||||
}
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
void setUnmatch() {
|
||||
this.hitState = UNMATCH;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue