Package-level declarations

Types

Link copied to clipboard
@JvmInline
@Serializable
value class Email(val value: String) : Validation, Emptiness

Example:

Link copied to clipboard
fun interface Emptiness

Check is value empty.

Link copied to clipboard
@JvmInline
@Serializable
value class IRPhone(val value: String) : Validation, Emptiness

Example:

Link copied to clipboard
@Serializable
open class Password

When password changed validator executed.

Link copied to clipboard
@JvmInline
@Serializable
value class Phone(val value: String) : Emptiness

Example:

Link copied to clipboard
typealias PhoneNumberFormat = PhoneNumberUtil.PhoneNumberFormat

INTERNATIONAL and NATIONAL formats are consistent with the definition in ITU-T Recommendation E.123. However, we follow local conventions such as using '-' instead of whitespace as separators. For example, the number of the Google Switzerland office will be written as "+41 44 668 1800" in INTERNATIONAL format, and as "044 668 1800" in NATIONAL format. E164 format is as per INTERNATIONAL format but with no formatting applied, e.g. "+41446681800". RFC3966 is as per INTERNATIONAL format, but with all spaces and other separating symbols replaced with a hyphen, and with any phone number extension appended with ";ext=". It also will have a prefix of "tel:" added, e.g. "tel:+41-44-668-1800".

Link copied to clipboard
typealias PhoneNumberType = PhoneNumberUtil.PhoneNumberType

Type of phone numbers.

Link copied to clipboard
fun interface Validation

Check is value valid.

Functions

Link copied to clipboard
fun password(init: Password.Builder.() -> Unit): Password

password builder create Password for validation.