jOOQ / jOOU

jOOU - Unsigned Integers jOOU provides unsigned integer versions for the four Java integer types byte, short, int and long.
http://www.jooq.org/products
Apache License 2.0
229 stars 32 forks source link

Add UMath util class with min() and max() implementations for all types #20

Closed bhchandra closed 5 years ago

bhchandra commented 5 years ago

fixes #10.

It would be great if you add UMath to JOOU.

I always end up creating quick local functions as below, and forgetting about them. BinaryOperator<UInteger> max = (u1, u2) -> u1.compareTo(u2) >= 0 ? u1 : u2;

lukaseder commented 5 years ago

Thanks a lot for your contribution. I agree, those utility methods would be useful.