IRPhone

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

Iranian Phone

Example:

val checker = IRPhone("09151234567")
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 phone is empty.

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

check phone number is valid.

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