@Test public void testDecodeUnsignedShort() throws Exception { assertEquals(0, decodeUnsigned((short) 0)); assertEquals(32768, decodeUnsigned((short) 32768)); }
protected static short decodeUnsigned(byte signed) { if (signed >= 0) { return signed; } else { return (short) (256 + (short) signed); } }
ByteData extends SmppObject { protected static short decodeUnsigned(byte signed) { if (signed >= 0) { return signed; } else { return (short) (256 + (short) signed); } } }
ByteData extends SmppObject { protected static short decodeUnsigned(byte signed) { if (signed >= 0) { return signed; } else { return (short) (256 + (short) signed); } } ByteData(); }
ByteData extends SmppObject { protected static short decodeUnsigned(byte signed) { if (signed >= 0) { return signed; } else { return (short) (256 + (short) signed); } } ByteData(); abstract void setData(ByteBuffer buffer); abstract ByteBuffer getData(); String debugString(); }
ByteData extends SmppObject { protected static short decodeUnsigned(byte signed) { if (signed >= 0) { return signed; } else { return (short) (256 + (short) signed); } } ByteData(); abstract void setData(ByteBuffer buffer); abstract ByteBuffer getData(); String debugString();  }