Class UnionConverterKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      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.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.