Format comments.

This commit is contained in:
Magese 2022-01-04 09:48:28 +08:00
parent 872aac8298
commit ef2dbeb979
1 changed files with 18 additions and 11 deletions

View File

@ -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;
}