com.github.themrmilchmann.kraton.lang.jvm / smaller

smaller

fun smaller(alpha: JvmPrimitiveType, beta: JvmPrimitiveType): JvmPrimitiveType (source)

Compares two types by size in bytes and returns the smaller one.

Parameters

alpha - type to be compared

beta - type to be compared

Return
the type which size in bytes is smaller (alpha is also returned if there is no difference)

Since
1.0.0