Class URLConverter

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

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

    • URLConverter

      public URLConverter()
  • Method Details

    • convertFrom

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

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