Class TypeConverters.DurationConverter
- java.lang.Object
-
- org.apache.logging.log4j.core.config.plugins.convert.TypeConverters.DurationConverter
-
- All Implemented Interfaces:
TypeConverter<Duration>
- Enclosing class:
- TypeConverters
@Plugin(name="Duration", category="TypeConverter") @Deprecated public static class TypeConverters.DurationConverter extends java.lang.Object implements TypeConverter<Duration>
Deprecated.since 2.24.0. ADurationconverter will be available in 3.0.0.Converts aStringinto aDuration.- Since:
- 2.5
-
-
Constructor Summary
Constructors Constructor Description DurationConverter()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Durationconvert(java.lang.String s)Deprecated.Converts a String to a given type.
-
-
-
Method Detail
-
convert
public Duration convert(java.lang.String s)
Deprecated.Description copied from interface:TypeConverterConverts a String to a given type.- Specified by:
convertin interfaceTypeConverter<Duration>- Parameters:
s- the String to convert. Cannot benull.- Returns:
- the converted object.
-
-