Class TypeConverters.ByteConverter

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

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

    • ByteConverter

      public ByteConverter()
  • Method Details

    • convert

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