• Stars
    star
    223
  • Rank 178,458 (Top 4 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created about 13 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

jOOU - Unsigned Integers jOOU provides unsigned integer versions for the four Java integer types byte, short, int and long.

Overview

jOOU stands for jOOU Object Oriented Unsigned. It is filling up the gap with one of Java's most wanted features: The unsigned number types.

Dependencies

None!

Download

For use with Java 9+

<dependency>
  <groupId>org.jooq</groupId>
  <artifactId>joou</artifactId>
  <version>0.9.4</version>
</dependency>

For use with Java 6+

<dependency>
  <groupId>org.jooq</groupId>
  <artifactId>joou-java-6</artifactId>
  <version>0.9.4</version>
</dependency>

Description

This library provides an implementation for the four basic unsigned integer types as wrappers:

  • UByte
  • UShort
  • UInteger
  • ULong

These classes extend java.lang.Number and implement java.lang.Comparable<?>, just like the JDK's own wrapper types. Besides, there is a utility class called org.joou.Unsigned with factory methods allowing for creating unsigned wrappers like this:

import static org.joou.Unsigned.*;

// and then...
UByte    b = ubyte(1);
UShort   s = ushort(1);
UInteger i = uint(1);
ULong    l = ulong(1);

This project was created for https://www.jooq.org, to provide better support for MySQL, Postgres, and other databases' unsigned integer data types, and has been open sourced as an independent library for usage outside of jOOQ.


See also this stack overflow question here: http://stackoverflow.com/questions/8193031/is-there-a-java-library-for-unsigned-number-type-wrappers

More Repositories

1

jOOQ

jOOQ is the best way to write SQL in Java
Java
6,078
star
2

jOOR

jOOR - Fluent Reflection in Java jOOR is a very simple fluent API that gives access to your Java Class structures in a more intuitive way. The JDK's reflection APIs are hard and verbose to use. Other languages have much simpler constructs to access type meta information at runtime. Let us make Java reflection better.
Java
2,797
star
3

jOOL

jOOΞ» - The Missing Parts in Java 8 jOOΞ» improves the JDK libraries in areas where the Expert Group's focus was elsewhere. It adds tuple support, function support, and a lot of additional functionality around sequential Streams. The JDK 8's main efforts (default methods, lambdas, and the Stream API) were focused around maintaining backwards compatibility and implementing a functional API for parallelism.
Java
2,074
star
4

jOOX

jOOX - The Power of jQuery Applied to W3C DOM Like JDBC, DOM is a powerful, yet very verbose low-level API to manipulate XML. The HTML DOM an be manipulated with the popular jQuery product, in JavaScript. Why don't we have jQuery in Java? jOOX is jQuery's XML parts, applied to Java.
Java
491
star
5

sakila

The Sakila Database
PLpgSQL
370
star
6

jOOQ-mcve

A simple example project that can be used to create MCVE's to report jOOQ issues
Kotlin
23
star
7

demo

A jOOQ demo working with the Sakila database
Scala
15
star
8

sql-scripts

Some fun and useful SQL scripts
9
star
9

jbang-example

A quick example to get up and running with jbang
Java
7
star
10

sql-benchmarks

A set of SQL benchmark code snippets that are used on the jOOQ blog
TSQL
6
star
11

jbang-catalog

A catalog for jbang commands
Java
1
star