IsCountry

Determines whether a given input is a valid country.

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

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

Constructors

Link copied to clipboard
constructor()

Creates an instance of the IsCountry 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 name.