kotlin-unsigned

Unsigned operators and boxed types (Ubyte, Uint, Ulong and Ushort) for unsigned support.

To have a quick idea what this library offers, take a look at the tests

How to get it:

Gradle

  • Add it in your root build.gradle at the end of repositories:

    allprojects {
      repositories {
        ...
        maven { url 'https://jitpack.io' }
      }
    }
    
  • Add the dependency

    dependencies {
      compile 'com.github.kotlin-graphics:kotlin-unsigned:v2.1'
    }
    

Maven, Sbt, Leiningen

Hightlights:

Android compatible, sources compiled with java 1.7.

All unsigned methods available for ints and longs on java 1.8 have been reported here.

These are offered directly on the corresponding Int and Long Kotlin primitives (with infix too)

Contributions:

Don’t hesitate to contribute to the project by submitting issues or pull requests for bugs and features. Any feedback is welcome at elect86@gmail.com.

Credits:

compile "com.github.kotlin-graphics:kotlin-unsigned:v2.41"

Related Libraries

kxdate

Kotlin extensions for Java 8 java.time API

Last updated 3 mins ago

vavr-kotlin

Vavr integration for Kotlin

Last updated 3 mins ago

kapsule

Minimalist dependency injection library for Kotlin.

Last updated 3 mins ago

ktunits

Simple unit conversion library for Kotlin

Last updated 3 mins ago

cakeparse

Simple parser combinator library for Kotlin

Last updated 3 mins ago