com.mchange.lang
Class ShortUtils

java.lang.Object
  extended by com.mchange.lang.ShortUtils

public class ShortUtils
extends Object


Field Summary
static int UNSIGNED_MAX_VALUE
           
 
Method Summary
static byte[] byteArrayFromShort(short s)
           
static int shortFromByteArray(byte[] bytes, int offset)
           
static void shortIntoByteArray(short s, int offset, byte[] bytes)
           
static int toUnsigned(short s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNSIGNED_MAX_VALUE

public static final int UNSIGNED_MAX_VALUE
See Also:
Constant Field Values
Method Detail

shortFromByteArray

public static int shortFromByteArray(byte[] bytes,
                                     int offset)

byteArrayFromShort

public static byte[] byteArrayFromShort(short s)

shortIntoByteArray

public static void shortIntoByteArray(short s,
                                      int offset,
                                      byte[] bytes)

toUnsigned

public static int toUnsigned(short s)