Interface DurationParser
-
- All Known Implementing Classes:
DurationParser.SuffixBasedParser
- 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.SuffixBasedParser
-
Method Summary
Modifier and Type Method Description static DurationParser
Default()
static DurationParser
IsoParser()
ISO 8601 duration parser.Duration
parse(String text)
static DurationParser
SuffixBasedParser()
Case insensitive suffix based parser, supported units: ns ms s m h d
-
-
-
Method Detail
-
IsoParser
static DurationParser IsoParser()
ISO 8601 duration parser.- See Also:
Duration.parse(CharSequence)
-
SuffixBasedParser
static DurationParser SuffixBasedParser()
Case insensitive suffix based parser, supported units:- ns
- ms
- s
- m
- h
- d
-
Default
static DurationParser Default()
-
-