UnionConverter
class UnionConverter(converters: Collection<GenericConverter>, typeName: Key? = null, shouldThrow: Boolean = false, var validator: <Error class: unknown class><Any> = null) : CoalescingConverter<Any>
Experimental converter allowing for combining other converters together, with the caveat of type erasure.
This converter does not support optional or defaulting converters.
Constructors
Link copied to clipboard
constructor(converters: Collection<GenericConverter>, typeName: Key? = null, shouldThrow: Boolean = false, validator: <Error class: unknown class><Any> = 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: List<String>?): Int
Link copied to clipboard
Link copied to clipboard
open fun toDefaulting(defaultValue: Any, outputError: Boolean, signatureType: Key?, showTypeInSignature: Boolean?, errorType: Key?, nestedValidator: Validator<Any>): DefaultingCoalescingConverter<Any>
Link copied to clipboard
open fun toOptional(signatureType: Key?, showTypeInSignature: Boolean?, errorType: Key?, outputError: Boolean, nestedValidator: Validator<Any?>): OptionalCoalescingConverter<Any>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard