public final class SignednessUtil extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static int | compareUnsigned(@Unsigned byte x,
               @Unsigned byte y)Compares two unsigned bytes x and y. | 
| static int | compareUnsigned(@Unsigned int x,
               @Unsigned int y)Compares two unsigned ints x and y. | 
| static int | compareUnsigned(@Unsigned long x,
               @Unsigned long y)Compares two unsigned longs x and y. | 
| static int | compareUnsigned(@Unsigned short x,
               @Unsigned short y)Compares two unsigned shorts x and y. | 
| static @Unsigned byte | getUnsigned(ByteBuffer b)Gets an unsigned byte from the ByteBuffer b. | 
| static void | getUnsigned(ByteBuffer b,
           @Unsigned byte[] bs)Gets an array of unsigned bytes from the ByteBuffer b and stores them in the array bs. | 
| static @Unsigned int | getUnsignedInt(ByteBuffer b)Gets an unsigned int from the ByteBuffer b. | 
| static @Unsigned short | getUnsignedShort(ByteBuffer b)Gets an unsigned short from the ByteBuffer b. | 
| static @Unsigned int | toUnsignedInt(@Unsigned byte b)Returns an unsigned int representing the same value as an unsigned byte. | 
| static @Unsigned int | toUnsignedInt(@Unsigned short s)Returns an unsigned int representing the same value as an unsigned short. | 
| static @Unsigned long | toUnsignedLong(@Unsigned byte b)Returns an unsigned long representing the same value as an unsigned byte. | 
| static @Unsigned long | toUnsignedLong(@Unsigned int i)Returns an unsigned long representing the same value as an unsigned int. | 
| static @Unsigned long | toUnsignedLong(@Unsigned short s)Returns an unsigned long representing the same value as an unsigned short. | 
| static @Unsigned short | toUnsignedShort(@Unsigned byte b)Returns an unsigned short representing the same value as an unsigned byte. | 
| static String | toUnsignedString(@Unsigned byte b)Produces a string representation of the unsigned byte b. | 
| static String | toUnsignedString(@Unsigned byte b,
                int radix)Produces a string representation of the unsigned byte b in base radix. | 
| static String | toUnsignedString(@Unsigned int i)Produces a string representation of the unsigned int i. | 
| static String | toUnsignedString(@Unsigned int i,
                int radix)Produces a string representation of the unsigned int i in base radix. | 
| static String | toUnsignedString(@Unsigned long l)Produces a string representation of the unsigned long l. | 
| static String | toUnsignedString(@Unsigned long l,
                int radix)Produces a string representation of the unsigned long l in base radix. | 
| static String | toUnsignedString(@Unsigned short s)Produces a string representation of the unsigned short s. | 
| static String | toUnsignedString(@Unsigned short s,
                int radix)Produces a string representation of the unsigned short s in base radix. | 
public static @Unsigned int getUnsignedInt(ByteBuffer b)
getInt(), but assumes that the result should be interpreted as unsigned.public static @Unsigned short getUnsignedShort(ByteBuffer b)
getShort(), but assumes that the result should be interpreted as unsigned.public static @Unsigned byte getUnsigned(ByteBuffer b)
get(),
 but assumes that the result should be interpreted as unsigned.public static void getUnsigned(ByteBuffer b, @Unsigned byte[] bs)
get(byte[]), but assumes that the array of bytes
 should be interpreted as unsigned.public static int compareUnsigned(@Unsigned long x, @Unsigned long y)
This is a reimplementation of Java 8's Long.compareUnsigned(long, long).
public static int compareUnsigned(@Unsigned int x, @Unsigned int y)
This is a reimplementation of Java 8's Integer.compareUnsigned(int, int).
public static int compareUnsigned(@Unsigned short x, @Unsigned short y)
public static int compareUnsigned(@Unsigned byte x, @Unsigned byte y)
public static String toUnsignedString(@Unsigned long l)
This is a reimplementation of Java 8's Long.toUnsignedString(long).
public static String toUnsignedString(@Unsigned long l, int radix)
This is a reimplementation of Java 8's Long.toUnsignedString(long, int).
public static String toUnsignedString(@Unsigned int i)
This is a reimplementation of Java 8's Integer.toUnsignedString(int).
public static String toUnsignedString(@Unsigned int i, int radix)
This is a reimplementation of Java 8's Integer.toUnsignedString(int, int).
public static String toUnsignedString(@Unsigned short s)
public static String toUnsignedString(@Unsigned short s, int radix)
public static String toUnsignedString(@Unsigned byte b)
public static String toUnsignedString(@Unsigned byte b, int radix)
public static @Unsigned long toUnsignedLong(@Unsigned int i)
This is a reimplementation of Java 8's Integer.toUnsignedLong(int).
public static @Unsigned long toUnsignedLong(@Unsigned short s)
public static @Unsigned int toUnsignedInt(@Unsigned short s)
public static @Unsigned long toUnsignedLong(@Unsigned byte b)
public static @Unsigned int toUnsignedInt(@Unsigned byte b)