-
public final class KotlinReflectUtilsKt
-
-
Method Summary
Modifier and Type Method Description final static UnitassertMavericksDataClassImmutabilityWithKotlinReflect(KClass<?> kClass)Ensures that the given class is: A kotlin data class
Contains no mutable properties
Contains no primary constructor params with a Mutable collection type.
-
-
Method Detail
-
assertMavericksDataClassImmutabilityWithKotlinReflect
final static Unit assertMavericksDataClassImmutabilityWithKotlinReflect(KClass<?> kClass)
Ensures that the given class is:
A kotlin data class
Contains no mutable properties
Contains no primary constructor params with a Mutable collection type.
For further validations restricting usages of Java collections such as ArrayList, this can be combined with com.airbnb.mvrx.assertMavericksDataClassImmutability
-
-
-