
edi.rule.work.cache.JSRuleDesensitizedInfo Maven / Gradle / Ivy
package edi.rule.work.cache;
import edi.rule.extend.interfaces.IJSRuleDesensitizedInfo;
import lombok.AllArgsConstructor;
/**
* @author 摩拉克斯
* @date 2023年1月4日 上午9:48:31
* 字段注解映射信息类
*/
@AllArgsConstructor
public final class JSRuleDesensitizedInfo implements IJSRuleDesensitizedInfo {
public final char replaced;
public final int startIndex;
public final int endIndex;
public final String startToken;
public final String endToken;
public final boolean isFirst;
public final boolean isLast;
public final boolean isKeepSt;
public final boolean isKeepEd;
public final String regex;
/**
* @apiNote 用于jackson反序列化,参考{@link edi.rule.model.JSRuleDefinition#fieldsDesensitized}
* */
public JSRuleDesensitizedInfo(){
this.replaced = replaced();
this.startIndex = startIndex();
this.endIndex = endIndex();
this.startToken = startToken();
this.endToken = endToken();
this.isFirst = isFirst();
this.isLast = isLast();
this.isKeepSt = isKeepSt();
this.isKeepEd = isKeepEd();
this.regex = regex();
}
}