JBBPFieldUByte extends JBBPAbstractField implements JBBPNumericField { @Override public long getAsLong() { return this.getAsInt(); } JBBPFieldUByte(final JBBPNamedFieldInfo name, final byte value); static long reverseBits(final byte 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(12L, new JBBPFieldUByte(new JBBPNamedFieldInfo("test.field", "field", 123), (byte) 12).getAsLong()); assertEquals(-12L & 0xFFL, new JBBPFieldUByte(new JBBPNamedFieldInfo("test.field", "field", 123), (byte) -12).getAsLong()); }