Skip to content

Latest commit

 

History

History

validators

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Validators

    private val validator: Validator<String?> = PasswordValidator()
    val isValid = validator("Aa12345678").isEmpty()

Build in Validators

    private val passwordValidator: PasswordValidator = PasswordValidator()
    private val userNameValidator: UserNameValidator = UserNameValidator()
    private val emailValidator: EmailValidator = EmailValidator()


    val result = passwordValidator("Aa12345678") + userNameValidator("Adam") + emailValidator("[email protected]")

    val isEmailValid = result.contains(EmailValidator.KEY)

Essential downloads

Maven Central

repositories {
    mavenCentral()
}

dependencies {
    implementation("com.adkhambek.pack:validators:${latest_version}")
}