com.lti.utils
Class UnsignedUtils

java.lang.Object
  extended by com.lti.utils.UnsignedUtils

public final class UnsignedUtils
extends java.lang.Object

Because java does not support unsigned types, a collection of useful functions for treating types as unsigned. TODO: move to src.utils/com.lti.utils.

Author:
Ken Larson

Field Summary
static int MAX_UBYTE
           
static long MAX_UINT
           
static int MAX_USHORT
           
 
Method Summary
static int uByteToInt(byte value)
           
static long uIntToLong(int value)
           
static int uShortToInt(short value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_UBYTE

public static final int MAX_UBYTE
See Also:
Constant Field Values

MAX_USHORT

public static final int MAX_USHORT
See Also:
Constant Field Values

MAX_UINT

public static final long MAX_UINT
See Also:
Constant Field Values
Method Detail

uByteToInt

public static int uByteToInt(byte value)

uShortToInt

public static int uShortToInt(short value)

uIntToLong

public static long uIntToLong(int value)