Uses of Enum Class
org.springframework.format.annotation.DurationFormat.Unit
Packages that use DurationFormat.Unit
Package
Description
Annotations for declaratively configuring field and parameter formatting rules.
Integration with the JSR-310
java.time package in JDK 8.-
Uses of DurationFormat.Unit in org.springframework.format.annotation
Methods in org.springframework.format.annotation that return DurationFormat.UnitModifier and TypeMethodDescriptionstatic DurationFormat.UnitDurationFormat.Unit.fromChronoUnit(ChronoUnit chronoUnit) Get theDurationFormat.Unitcorresponding to the givenChronoUnit.static DurationFormat.UnitDurationFormat.Unit.fromSuffix(String suffix) Get theDurationFormat.Unitcorresponding to the givenStringsuffix.static DurationFormat.UnitReturns the enum constant of this class with the specified name.static DurationFormat.Unit[]DurationFormat.Unit.values()Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of DurationFormat.Unit in org.springframework.format.datetime.standard
Methods in org.springframework.format.datetime.standard with parameters of type DurationFormat.UnitModifier and TypeMethodDescriptionstatic DurationDurationFormatterUtils.detectAndParse(String value, DurationFormat.Unit unit) Detect the style then parse the value to return a duration.static DurationDurationFormatterUtils.parse(String value, DurationFormat.Style style, DurationFormat.Unit unit) Parse the given value to a duration.static StringDurationFormatterUtils.print(Duration value, DurationFormat.Style style, DurationFormat.Unit unit) Print the specified duration in the specified style using the given unit.Constructors in org.springframework.format.datetime.standard with parameters of type DurationFormat.UnitModifierConstructorDescriptionDurationFormatter(DurationFormat.Style style, DurationFormat.Unit defaultUnit)