Kotlin
Experimental API @since 6.0.0
The instancio-kotlin module provides a Kotlin-native API for creating objects and working with selectors. See Getting Started for dependency information.
It offers the same functionality as the core Java API, enhanced with Kotlin-specific improvements such as reified type parameters and Kotlin property references, which eliminate the need to pass Class objects or type tokens explicitly.
The KInstancio object is the entry point, mirroring the Java Instancio ↗ class:
The KSelect object provides all selector methods available in the Java Select ↗ class, with the addition of Kotlin property reference selectors for both field() and scope():