Class DurationUnitConverter
java.lang.Object
com.fasterxml.jackson.datatype.threetenbp.util.DurationUnitConverter
Handles the conversion of the duration based on the API of
Duration for a restricted set of ChronoUnit.
Only the units considered as accurate are supported in this converter since are the only ones capable of handling
deserialization in a precise manner (see ChronoUnit.isDurationEstimated()).- Since:
- 2.12
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Method Summary
Modifier and TypeMethodDescriptionorg.threeten.bp.Durationconvert(long value) longconvert(org.threeten.bp.Duration duration) static Stringstatic DurationUnitConverter
-
Method Details
-
convert
public org.threeten.bp.Duration convert(long value) -
convert
public long convert(org.threeten.bp.Duration duration) -
descForAllowed
- Returns:
- Description of all allowed valued as a sequence of double-quoted values separated by comma
-
from
-