-
- All Implemented Interfaces:
public final class ConvertersKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> Tconvert(Object $self, KClass<T> target)Utility method to convert one type to another. final static <T extends Any> Tconvert(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. -
-
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.
-
convertObjects
final static <T extends Any> List<T> convertObjects(Iterable<Object> $self)
Convert a group of instances of one type to another type.
-
-
-
-