Uses of Enum Class
org.springframework.format.annotation.DurationFormat.Style
Packages that use DurationFormat.Style
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.Style in org.springframework.format.annotation
Methods in org.springframework.format.annotation that return DurationFormat.StyleModifier and TypeMethodDescriptionstatic DurationFormat.Style
Returns the enum constant of this class with the specified name.static DurationFormat.Style[]
DurationFormat.Style.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of DurationFormat.Style in org.springframework.format.datetime.standard
Methods in org.springframework.format.datetime.standard that return DurationFormat.StyleModifier and TypeMethodDescriptionstatic DurationFormat.Style
Detect the style from the given source value.Methods in org.springframework.format.datetime.standard with parameters of type DurationFormat.StyleModifier and TypeMethodDescriptionstatic Duration
DurationFormatterUtils.parse
(String value, DurationFormat.Style style) Parse the given value to a duration.static Duration
DurationFormatterUtils.parse
(String value, DurationFormat.Style style, DurationFormat.Unit unit) Parse the given value to a duration.static String
DurationFormatterUtils.print
(Duration value, DurationFormat.Style style) Print the specified duration in the specified style.static String
DurationFormatterUtils.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.StyleModifierConstructorDescriptionCreate aDurationFormatter
in a specificDurationFormat.Style
.DurationFormatter
(DurationFormat.Style style, DurationFormat.Unit defaultUnit)