J8DurationConverter
class J8DurationConverter(val longHelp: Boolean = true, val positiveOnly: Boolean = true, var validator: <Error class: unknown class><ChronoContainer> = null) : SingleConverter<ChronoContainer>
Argument converter for Java 8 Duration arguments.
For a coalescing version of this converter, see J8DurationCoalescingConverter. If you're using Time4J instead, see T4JDurationConverter.
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.
Constructors
Link copied to clipboard
constructor(longHelp: Boolean = true, positiveOnly: Boolean = true, 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: String?): Boolean
Link copied to clipboard
Link copied to clipboard
open fun toDefaulting(defaultValue: ChronoContainer, outputError: Boolean, signatureType: Key?, showTypeInSignature: Boolean?, errorType: Key?, nestedValidator: Validator<ChronoContainer>): DefaultingConverter<ChronoContainer>
Link copied to clipboard
open fun toList(required: Boolean, signatureType: Key?, showTypeInSignature: Boolean?, errorType: Key?, nestedValidator: Validator<List<ChronoContainer>>): ListConverter<ChronoContainer>
Link copied to clipboard
open fun toOptional(signatureType: Key?, showTypeInSignature: Boolean?, errorType: Key?, outputError: Boolean, nestedValidator: Validator<ChronoContainer?>): OptionalConverter<ChronoContainer>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard