J8DurationCoalescingConverter
class J8DurationCoalescingConverter(val longHelp: Boolean = true, val positiveOnly: Boolean = true, shouldThrow: Boolean = false, var validator: <Error class: unknown class><ChronoContainer> = null) : CoalescingConverter<ChronoContainer>
Coalescing argument converter for Java 8 Duration arguments.
This converter will take individual duration specifiers ("1w", "2y", "3d" etc) until it no longer can, and then combine them into a single Duration.
Parameters
longHelp
Whether to send the user a long help message with specific information on how to specify durations.
positiveOnly
Whether a positive duration is required - true by default.
See also
coalescedDuration
parseDurationJ8
Constructors
Link copied to clipboard
constructor(longHelp: Boolean = true, positiveOnly: Boolean = true, shouldThrow: Boolean = false, validator: <Error class: unknown class><ChronoContainer> = null)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun parse(parser: StringParser?, context: CommandContext, named: List<String>?): Int
Link copied to clipboard
Link copied to clipboard
open fun toDefaulting(defaultValue: ChronoContainer, outputError: Boolean, signatureType: Key?, showTypeInSignature: Boolean?, errorType: Key?, nestedValidator: Validator<ChronoContainer>): DefaultingCoalescingConverter<ChronoContainer>
Link copied to clipboard
open fun toOptional(signatureType: Key?, showTypeInSignature: Boolean?, errorType: Key?, outputError: Boolean, nestedValidator: Validator<ChronoContainer?>): OptionalCoalescingConverter<ChronoContainer>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun withBuilder(builder: CoalescingConverterBuilder<ChronoContainer>): CoalescingConverter<ChronoContainer>