Format comments.

This commit is contained in:
Magese 2022-01-04 09:48:28 +08:00
parent 872aac8298
commit ef2dbeb979

View File

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