Package io.microsphere.convert
Class StringToDurationConverter
- java.lang.Object
-
- io.microsphere.convert.StringToDurationConverter
-
- All Implemented Interfaces:
Converter<java.lang.String,java.time.Duration>
,StringConverter<java.time.Duration>
,Prioritized
,java.lang.Comparable<Prioritized>
public class StringToDurationConverter extends java.lang.Object implements StringConverter<java.time.Duration>
The class to convertString
toDuration
- Since:
- 1.0.0
- Author:
- Mercy
-
-
Field Summary
-
Fields inherited from interface io.microsphere.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description StringToDurationConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.Duration
convert(java.lang.String source)
Convert the source-typed value to the target-typed value-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.microsphere.convert.Converter
accept, getSourceType, getTargetType
-
Methods inherited from interface io.microsphere.lang.Prioritized
compareTo, getPriority
-
-
-
-
Method Detail
-
convert
public java.time.Duration convert(java.lang.String source)
Description copied from interface:Converter
Convert the source-typed value to the target-typed value
-
-