Class Language

    • Constructor Detail

      • Language

        public Language​(String language)
                 throws IllegalArgumentException
        Construct Language by the parsing the given string
        Parameters:
        language - The String to be parsed into Language
        Throws:
        IllegalArgumentException - if the given argument is not a valid Language
    • Method Detail

      • toString

        public String toString()
        Returns a String Object representing this Language's value
        Overrides:
        toString in class Object
        Returns:
        return a string representation of the value of this Language object
      • valueOf

        public static Language valueOf​(String stringValue)
                                throws IllegalArgumentException
        Returns a Language instance representing the specified String value
        Parameters:
        stringValue - a String value
        Returns:
        return a Language instance representing stringValue
        Throws:
        IllegalArgumentException - if the given argument is not a valid Language
      • isValid

        public static boolean isValid​(String stringValue)
        check if the specified String instance is a valid language data type
        Parameters:
        stringValue - the value to be tested
        Returns:
        true if the value of argument is valid for language data type false otherwise