Class PatternConverter

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

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

    • PatternConverter

      public PatternConverter()
  • Method Details

    • convertFrom

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

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