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;
|
return Objects.isNull(v) || v == null || v == alt;
|
||||||
}
|
}
|
||||||
public static boolean isValidText(String s) {
|
public static boolean isValidText(String s) {
|
||||||
if (s.isBlank() || s.trim().isEmpty()) return false;
|
return !isNull(s) && !s.isBlank();
|
||||||
switch (s) {
|
|
||||||
case "":
|
|
||||||
case null:
|
|
||||||
return false;
|
|
||||||
default:
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user