Class UnionConverterKt
-
- All Implemented Interfaces:
public final class UnionConverterKt
-
-
Method Summary
Modifier and Type Method Description final static UnionConverterunion(Arguments $self, String displayName, String description, String typeName, Boolean shouldThrow, Converter<?, ?, ?, ?> converters, String bundle, SuspendFunction1<ValidationContext<Object>, Unit> validator)Create a union converter, for combining other converters into a single argument - with the caveat of type erasure. final static OptionalCoalescingConverter<Object>optionalUnion(Arguments $self, String displayName, String description, String typeName, Boolean shouldThrow, Converter<?, ?, ?, ?> converters, String bundle, SuspendFunction1<ValidationContext<Object>, Unit> validator)Create an optional union converter, for combining other converters into a single argument - with the caveat of type erasure. -
-
Method Detail
-
union
final static UnionConverter union(Arguments $self, String displayName, String description, String typeName, Boolean shouldThrow, Converter<?, ?, ?, ?> converters, String bundle, SuspendFunction1<ValidationContext<Object>, Unit> validator)
Create a union converter, for combining other converters into a single argument - with the caveat of type erasure.
This function will automatically remove converters if they were previously registered, so you can use pass it the results of the usual extension functions.
-
optionalUnion
final static OptionalCoalescingConverter<Object> optionalUnion(Arguments $self, String displayName, String description, String typeName, Boolean shouldThrow, Converter<?, ?, ?, ?> converters, String bundle, SuspendFunction1<ValidationContext<Object>, Unit> validator)
Create an optional union converter, for combining other converters into a single argument - with the caveat of type erasure.
This function will automatically remove converters if they were previously registered, so you can use pass it the results of the usual extension functions.
-
-
-
-