@Plugin(name="Duration", category="TypeConverter") public static class TypeConverters.DurationConverter extends Object implements TypeConverter<Duration>
Constructor and Description |
---|
DurationConverter() |
Modifier and Type | Method and Description |
---|---|
Duration |
convert(String s)
Converts a String to a given type.
|
public Duration convert(String s)
TypeConverter
convert
in interface TypeConverter<Duration>
s
- the String to convert. Cannot be null
. Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.