extractPropertyValues

fun extractPropertyValues(autoInc: Boolean = false): List<Any?>

Extracts the value of the public, mutable properties of a data class in the order in which they are declared in the primary constructor.

If the object is not an instance of a data class, then the returned list will be empty.

Parameters

autoInc

if the data class has an auto increment field then the values are extracted without the auto-increment field's value if this parameter is true. If false, all values are extracted regardless of auto increment field. The default is false.