commit 09/10/2025
User Management belum kelar
This commit is contained in:
@@ -286,6 +286,23 @@ class Somecodes {
|
||||
return value is String && value.isNotBlank()
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if all strings in a list are valid non-blank strings.
|
||||
* @param values The list of strings to check.
|
||||
* @return True if all strings in the list are valid non-blank strings, false otherwise.
|
||||
*/
|
||||
fun ValidStrings(values: List<String>) : Boolean{
|
||||
if (values.isNotEmpty()){
|
||||
for (v in values){
|
||||
if (!ValidString(v)){
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a string is a valid file path and the file exists.
|
||||
* @param value The string to check.
|
||||
|
||||
Reference in New Issue
Block a user