javapoet-dsl / com.mostlycertain.javapoetdsl / com.squareup.javapoet.TypeName / ensureUnboxed

ensureUnboxed

fun TypeName.ensureUnboxed(): TypeName

If the type is a boxed primitive (e.g. Integer, Character), return the primitive type (e.g. int, char). Otherwise, return this.