Package dev.rollczi.litecommands.time
Class PeriodParser
java.lang.Object
dev.rollczi.litecommands.time.TemporalAmountParser<Period>
dev.rollczi.litecommands.time.PeriodParser
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.rollczi.litecommands.time.TemporalAmountParser
TemporalAmountParser.LocalDateTimeProvider, TemporalAmountParser.TemporalEntry -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPeriodParser(TemporalAmountParser.LocalDateTimeProvider baseForTimeEstimation) -
Method Summary
Modifier and TypeMethodDescriptionprotected TemporalAmountParser<Period> clone(Map<String, ChronoUnit> units, TemporalAmountParser.LocalDateTimeProvider baseForTimeEstimation) protected PeriodgetZero()protected Periodprotected Periodplus(TemporalAmountParser.LocalDateTimeProvider baseForTimeEstimation, Period temporalAmount, TemporalAmountParser.TemporalEntry temporalEntry) protected DurationtoDuration(TemporalAmountParser.LocalDateTimeProvider basisEstimation, Period period) Methods inherited from class dev.rollczi.litecommands.time.TemporalAmountParser
format, parse, withLocalDateTimeProvider, withUnit
-
Field Details
-
DATE_UNITS
-
-
Constructor Details
-
PeriodParser
public PeriodParser() -
PeriodParser
-
-
Method Details
-
clone
protected TemporalAmountParser<Period> clone(Map<String, ChronoUnit> units, TemporalAmountParser.LocalDateTimeProvider baseForTimeEstimation) - Specified by:
clonein classTemporalAmountParser<Period>
-
plus
protected Period plus(TemporalAmountParser.LocalDateTimeProvider baseForTimeEstimation, Period temporalAmount, TemporalAmountParser.TemporalEntry temporalEntry) - Specified by:
plusin classTemporalAmountParser<Period>
-
negate
- Specified by:
negatein classTemporalAmountParser<Period>
-
getZero
- Specified by:
getZeroin classTemporalAmountParser<Period>
-
toDuration
protected Duration toDuration(TemporalAmountParser.LocalDateTimeProvider basisEstimation, Period period) - Specified by:
toDurationin classTemporalAmountParser<Period>
-