mirror of
https://github.com/Geprivilegieerde-Anonimiteit-BV/XACrypto.git
synced 2026-08-21 13:36:21 -04:00
@@ -10,13 +10,6 @@ public class isNull {
|
||||
return Objects.isNull(v) || v == null || v == alt;
|
||||
}
|
||||
public static boolean isValidText(String s) {
|
||||
if (s.isBlank() || s.trim().isEmpty()) return false;
|
||||
switch (s) {
|
||||
case "":
|
||||
case null:
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
return !isNull(s) && !s.isBlank();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user