JBBPFieldUShort extends JBBPAbstractField implements JBBPNumericField { @Override public long getAsLong() { return this.getAsInt(); } JBBPFieldUShort(final JBBPNamedFieldInfo name, final short value); static long reverseBits(final short value); @Override double getAsDouble(); @Override float getAsFloat(); @Override int getAsInt(); @Override long getAsLong(); @Override boolean getAsBool(); @Override long getAsInvertedBitOrder(); @Override String getTypeAsString();  }
@Test public void testgetAsLong() { assertEquals(23432L, new JBBPFieldUShort(new JBBPNamedFieldInfo("test.field", "field", 123), (short) 23432).getAsLong()); assertEquals(-23432L & 0xFFFFL, new JBBPFieldUShort(new JBBPNamedFieldInfo("test.field", "field", 123), (short) -23432).getAsLong()); }