Class LocaleParsing


  • public class LocaleParsing
    extends AbstractParsing
    For parsing Locale objects.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • LocaleParsing

        public LocaleParsing()
    • Method Detail

      • toString

        public static String toString​(AbstractOption option,
                                      Object object)
        Returns the locale as string.
        Parameters:
        option - the current option
        object - the locale object to convert
        Returns:
        the generated string
      • valueOf

        public static Object valueOf​(AbstractOption option,
                                     String str)
        Returns a locale generated from the string.
        Parameters:
        option - the current option
        str - the string to convert to a locale
        Returns:
        the generated locale