Commit 06/08/2025

This commit is contained in:
2025-08-06 09:29:14 +07:00
parent 8290418100
commit 158f3ea4c2
12 changed files with 345 additions and 23 deletions

View File

@@ -1,9 +1,23 @@
package somecodes
import com.fasterxml.jackson.databind.ObjectMapper
import java.io.File
@Suppress("unused")
class Codes {
private val objectMapper = ObjectMapper()
companion object{
fun ValidFile(s: String?) : Boolean {
if (s!=null){
if (ValidString(s)){
val ff = File(s)
return ff.isFile
}
}
return false
}
fun ValidString(s : String?) : Boolean {
return s != null && s.isNotEmpty() && s.isNotBlank()
}