Package 

Class ConvertersKt

  • All Implemented Interfaces:

    
    public final class ConvertersKt
    
                        
    • 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 <T extends Any> T convert(Object $self, KClass<T> target) Utility method to convert one type to another.
      final static <T extends Any> T convert(Object $self) Utility method to convert one type to another.
      final static <T extends Any> List<T> convertObjects(Iterable<Object> $self, KClass<T> target) Convert a group of instances of one type to another type.
      final static <T extends Any> List<T> convertObjects(Iterable<Object> $self) Convert a group of instances of one type to another type.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • convert

         final static <T extends Any> T convert(Object $self, KClass<T> target)

        Utility method to convert one type to another.

        Parameters:
        target - Target type for the source instance.
      • convert

         final static <T extends Any> T convert(Object $self)

        Utility method to convert one type to another.

      • convertObjects

         final static <T extends Any> List<T> convertObjects(Iterable<Object> $self, KClass<T> target)

        Convert a group of instances of one type to another type.

        Parameters:
        target - Target type for the source instances in the group.