Interface DurationParser
- All Known Implementing Classes:
DurationParser.Default
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface DurationParser
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DurationParser.Default
-
Method Summary
Modifier and Type Method Description static DurationParser
Default()
Case insensitive, suffix based parser, for supported units seeDurationUnit
.static DurationParser
IsoParser()
ISO 8601 duration parser.Duration
parse(String text, DurationUnit defaultUnit)
-
Method Details
-
parse
-
IsoParser
ISO 8601 duration parser.- See Also:
Duration.parse(CharSequence)
-
Default
Case insensitive, suffix based parser, for supported units seeDurationUnit
.
-