Email

@Serializable
value class Email(val value: String)

A serializable inline value class wrapping an email address string.

Provides convenience methods for checking blank/empty state and email validation.

Constructors

Link copied to clipboard
constructor(value: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

the raw email address string.

Functions

Link copied to clipboard

Returns true if the email address string is blank.

Link copied to clipboard

Returns true if the email address string is blank or empty.

Link copied to clipboard

Returns true if the email address string is not blank.

Link copied to clipboard

Returns true if the email address string is neither blank nor empty.

Link copied to clipboard

Returns true if the email address is not a valid email format.

Link copied to clipboard
open override fun toString(): String