Class PatternConverter

java.lang.Object
org.apache.commons.beanutils2.converters.AbstractConverter<Pattern>
org.apache.commons.beanutils2.converters.PatternConverter
All Implemented Interfaces:
Converter<Pattern>

Converter implementation that handles conversion to and from Pattern.
Since:
2.0.0
  • Constructor Details

    • PatternConverter

      Construct a Pattern Converter that throws a ConversionException if an error occurs.
    • PatternConverter

      public PatternConverter(Pattern defaultValue)
      Constructs a Converter that will return the specified default value if a conversion error occurs.
      Parameters:
      defaultValue - The default value to be returned if the value to be converted is missing or an error occurs converting the value.
  • Method Details