Class TypeConverters.ShortConverter

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

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

    • ShortConverter

      public ShortConverter()
  • Method Details

    • convert

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