Class TypeConverters.FloatConverter

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

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

    • FloatConverter

      public FloatConverter()
  • Method Details

    • convert

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