Skip to content

team401/Units

Repository files navigation

Units

Download Travis Language license

Units provides statically compiled units of measure for use in projects. Units leverages Kotlin inline classes to prevent boxing and avoid heap allocation. All unit conversion class files are generated using KotlinPoet, adding a new unit is as easy as specifying it's measure type, name, plural name, and conversion factor in GenerateUnitsClasses.kt.