@Test public void testByteToShort() { assertEquals(Unsigned.byteToShort((byte) 0xff), 0xff); assertEquals(Unsigned.byteToShort((byte) 0xf), 0xf); assertEquals(Unsigned.byteToShort((byte) 0), 0); assertEquals(Unsigned.byteToShort((byte) 42), 42); }
public static short byteToShort(byte value) { return (short) (value & 0xff); }
Unsigned { public static short byteToShort(byte value) { return (short) (value & 0xff); } }
Unsigned { public static short byteToShort(byte value) { return (short) (value & 0xff); } private  Unsigned(); }
Unsigned { public static short byteToShort(byte value) { return (short) (value & 0xff); } private  Unsigned(); static long intToLong(int value); static int shortToInt(short value); static short byteToShort(byte value); }
Unsigned { public static short byteToShort(byte value) { return (short) (value & 0xff); } private  Unsigned(); static long intToLong(int value); static int shortToInt(short value); static short byteToShort(byte value);  }