Browse Source

REPORT-79909 补充注释

release/11.0
Destiny.Lin 2 years ago
parent
commit
03523e13c5
  1. 16
      designer-base/src/main/java/com/fr/design/mainframe/JTemplateNameHelper.java

16
designer-base/src/main/java/com/fr/design/mainframe/JTemplateNameHelper.java

@ -62,6 +62,12 @@ public class JTemplateNameHelper {
return integer;
}
/**
* 匹配文件名称的数字后缀Index
* @param prefix 前缀
* @param fileName 文件名称全名
* @return 返回对应的数字后缀Index
*/
private static BigInteger matchFileNameIndex(String prefix, String fileName) {
StringBuilder result = new StringBuilder();
for (int i = prefix.length(); i < fileName.length(); i++) {
@ -81,10 +87,20 @@ public class JTemplateNameHelper {
return new BigInteger(result.toString(), 10);
}
/**
* 是否不属于数字0-9
* @param c 用于判断的char
* @return 返回对应判断结果
*/
private static boolean isNotNumber(char c) {
return c < 48 || c > 57;
}
/**
* 是否属于'.'
* @param c 用于判断的char
* @return 返回对应判断结果
*/
private static boolean isDot(char c) {
return c == '.';
}

Loading…
Cancel
Save