Class TypeConverters.LongConverter
- java.lang.Object
-
- org.apache.logging.log4j.core.config.plugins.convert.TypeConverters.LongConverter
-
- All Implemented Interfaces:
TypeConverter<java.lang.Long>
- Enclosing class:
- TypeConverters
@Plugin(name="Long", category="TypeConverter") public static class TypeConverters.LongConverter extends java.lang.Object implements TypeConverter<java.lang.Long>
Converts aString
into aLong
.
-
-
Constructor Summary
Constructors Constructor Description LongConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
convert(java.lang.String s)
Converts a String to a given type.
-
-
-
Method Detail
-
convert
public java.lang.Long convert(java.lang.String s)
Description copied from interface:TypeConverter
Converts a String to a given type.- Specified by:
convert
in interfaceTypeConverter<java.lang.Long>
- Parameters:
s
- the String to convert. Cannot benull
.- Returns:
- the converted object.
-
-