IsCountryCode

Determines whether a given input is a valid country code.

This class extends the Function class and provides a method to check if a given input represents a valid country code. The implementation follows the specified validation rules.

The IsCountryCode class is meant to be instantiated and used to validate country codes. It inherits common functionality from the Function base class.

Constructors

Link copied to clipboard
constructor()

Creates an instance of the IsCountryCode class.

Functions

Link copied to clipboard
open override fun run(value: String): Boolean

Checks if the given string value meets a certain criteria for a country code.