Class LocaleConverter

java.lang.Object
com.github.joschi.jadconfig.converters.LocaleConverter
All Implemented Interfaces:
Converter<Locale>

public class LocaleConverter extends Object implements Converter<Locale>
Converter for type Locale
Author:
jschalanda
  • Constructor Details

    • LocaleConverter

      public LocaleConverter()
  • Method Details

    • convertFrom

      public Locale convertFrom(String value)
      Returns a Locale instance representing the specified String value.
      Specified by:
      convertFrom in interface Converter<Locale>
      Parameters:
      value - The configuration parameter's String value
      Returns:
      A Locale instance representing the configuration parameter's value
    • convertTo

      public String convertTo(Locale value)
      Returns a String instance representing the configuration parameter's value.
      Specified by:
      convertTo in interface Converter<Locale>
      Parameters:
      value - The configuration parameter's Locale value
      Returns:
      A String instance representing the configuration parameter's typed value