This Gist stores annotations for BeatAI documentation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface Identifiable<T extends Number> { | |
| @Nonnull | |
| T getId(); | |
| } | |
| /** | |
| * 实现该接口,可以通过getIEnum 方法由id转化为枚举 | |
| * @param <T> | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.crediteasemall.core.listener; | |
| import com.crediteasemall.bo.OptBaseParamBO; | |
| import com.crediteasemall.core.dto.response.ResultBean; | |
| import com.crediteasemall.dto.opt.OptBaseDTO; | |
| import lombok.extern.slf4j.Slf4j; | |
| import org.apache.commons.lang3.concurrent.BasicThreadFactory; | |
| import org.springframework.web.bind.annotation.PostMapping; | |
| import java.util.Random; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static int KMP(String str, String pattern) { | |
| //如果主串长度不小于模式串,则进入模式匹配 | |
| if (str.length() >= pattern.length()) { | |
| //获取next数组 | |
| int next[] = getNext(pattern); | |
| //获取两串的字符数组,以便遍历 | |
| char strOfChars[] = str.toCharArray(); | |
| char patternOfChars[] = pattern.toCharArray(); |