Companion
object Companion
Contains static declarations for the EmailAddress type.
Functions
Link copied to clipboard
Returns an email address with the specified text, or returns null if the text doesn't match EmailAddressRegex.Companion.default.
@ExperimentalSince(version = KotoolsTypesVersion.V5_1_0)
Link copied to clipboard
@DeprecatedAsErrorSince(version = KotoolsTypesVersion.V5_1_0)
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_3)
Creates an instance of EmailAddress from the specified text, or returns null if the text doesn't match the default regular expression.
@DeprecatedAsErrorSince(version = KotoolsTypesVersion.V5_1_0)
@ExperimentalSince(version = KotoolsTypesVersion.V5_0_1)
Link copied to clipboard
@DeprecatedAsErrorSince(version = KotoolsTypesVersion.V5_1_0)
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_3)
Creates an instance of EmailAddress from the specified text, or throws an IllegalArgumentException if the text doesn't match the default regular expression.
@DeprecatedAsErrorSince(version = KotoolsTypesVersion.V5_1_0)
@ExperimentalSince(version = KotoolsTypesVersion.V5_0_1)
Returns an email address from the specified text, or throws an IllegalArgumentException if the text doesn't match the specified regex.