Msisdn

data class Msisdn(value: String) : Comparable<Msisdn>

Represent a valid phone number with a leading plus sign followed by the country calling code. The validation itself is relying on PhoneNumberUtil.isPossibleNumber and is rather lenient.

In serialization, it is treated as String based on the underlying value.

Constructors

Link copied to clipboard
constructor(value: String)

Functions

Link copied to clipboard
open operator override fun compareTo(other: Msisdn): Int

Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than the other.

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

Converts this Msisdn value to String.