продолжение рефакторинга. создал предка для класса current
This commit is contained in:
@@ -148,7 +148,7 @@ public class CommonUtils {
|
||||
.mapToObj(Character.UnicodeBlock::of)
|
||||
.anyMatch(b -> b.equals(Character.UnicodeBlock.CYRILLIC));
|
||||
}
|
||||
public static boolean isDigit(String s) {
|
||||
public static boolean isIntegerValue(String s) {
|
||||
try {
|
||||
Integer.parseInt(s);
|
||||
return true;
|
||||
@@ -445,4 +445,7 @@ public class CommonUtils {
|
||||
public static String getDateName(String name_) {
|
||||
return name_ + "_" + getDateNumber();
|
||||
}
|
||||
public static int fromBoolean(boolean flag) {
|
||||
return flag ? 1 : 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user