T4JDurationConverter
class T4JDurationConverter(val longHelp: Boolean = true, var validator: <Error class: unknown class><Duration<IsoUnit>> = null) : SingleConverter<Duration<IsoUnit>>
Argument converter for Time4J Duration arguments.
For a coalescing version of this converter, see T4JDurationCoalescingConverter.
Parameters
longHelp
Whether to send the user a long help message with specific information on how to specify durations.
See also
t4jDuration
t4jDurationList
parseT4JDuration
Constructors
Link copied to clipboard
constructor(longHelp: Boolean = true, validator: <Error class: unknown class><Duration<IsoUnit>> = null)
Properties
Functions
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: String?): Boolean
Link copied to clipboard
Link copied to clipboard
open fun toDefaulting(defaultValue: Duration<IsoUnit>, outputError: Boolean, signatureType: Key?, showTypeInSignature: Boolean?, errorType: Key?, nestedValidator: Validator<Duration<IsoUnit>>): DefaultingConverter<Duration<IsoUnit>>
Link copied to clipboard
open fun toOptional(signatureType: Key?, showTypeInSignature: Boolean?, errorType: Key?, outputError: Boolean, nestedValidator: Validator<Duration<IsoUnit>?>): OptionalConverter<Duration<IsoUnit>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun withBuilder(builder: ConverterBuilder<Duration<IsoUnit>>): SingleConverter<Duration<IsoUnit>>