jOOU

jOOU is a recursive acronym that stands for jOOU Object Oriented Unsigned Types. It is a simple wrapper for UByte, UShort, UInteger, ULong types

License

License

Categories

Categories

jOOQ Data Databases
GroupId

GroupId

org.jooq
ArtifactId

ArtifactId

joou
Last Version

Last Version

0.9.4
Release Date

Release Date

Type

Type

jar
Description

Description

jOOU
jOOU is a recursive acronym that stands for jOOU Object Oriented Unsigned Types. It is a simple wrapper for UByte, UShort, UInteger, ULong types
Project URL

Project URL

https://github.com/jOOQ/jOOU
Source Code Management

Source Code Management

https://github.com/jOOQ/jOOU

Download joou

How to add to project

<!-- https://jarcasting.com/artifacts/org.jooq/joou/ -->
<dependency>
    <groupId>org.jooq</groupId>
    <artifactId>joou</artifactId>
    <version>0.9.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.jooq/joou/
implementation 'org.jooq:joou:0.9.4'
// https://jarcasting.com/artifacts/org.jooq/joou/
implementation ("org.jooq:joou:0.9.4")
'org.jooq:joou:jar:0.9.4'
<dependency org="org.jooq" name="joou" rev="0.9.4">
  <artifact name="joou" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.jooq', module='joou', version='0.9.4')
)
libraryDependencies += "org.jooq" % "joou" % "0.9.4"
[org.jooq/joou "0.9.4"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

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

org.jooq

jOOQ Object Oriented Querying

Versions

Version
0.9.4
0.9.3
0.9.1
0.9.0