Email

@JvmInline
@Serializable
value class Email(val value: String) : Validation, Emptiness

Email

Example:

val checker = Email("test@gmail.com")
checker.isValid() // true

Since

1.4.0

Constructors

Link copied to clipboard
constructor(value: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val value: String

Functions

Link copied to clipboard
open override fun isEmpty(): Boolean

Check email is empty

Link copied to clipboard
open override fun isValid(): Boolean

check is a valid email

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