Class URIConverter

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

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

    • URIConverter

      public URIConverter()
  • Method Details

    • convertFrom

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

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