Class TypeConverters.DoubleConverter

java.lang.Object
org.apache.logging.log4j.core.config.plugins.convert.TypeConverters.DoubleConverter
All Implemented Interfaces:
TypeConverter<Double>
Enclosing class:
TypeConverters

@Plugin(name="Double", category="TypeConverter") public static class TypeConverters.DoubleConverter extends Object implements TypeConverter<Double>
Converts a String into a Double.
  • Constructor Details

    • DoubleConverter

      public DoubleConverter()
  • Method Details

    • convert

      public Double convert(String s)
      Description copied from interface: TypeConverter
      Converts a String to a given type.
      Specified by:
      convert in interface TypeConverter<Double>
      Parameters:
      s - the String to convert. Cannot be null.
      Returns:
      the converted object.