Class TypeConverters.LongConverter

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

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

    • LongConverter

      public LongConverter()
  • Method Details

    • convert

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