JBBPFieldUByte extends JBBPAbstractField implements JBBPNumericField { @Override public boolean getAsBool() { return this.value != 0; } 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 testgetAsBool_True() { assertTrue(new JBBPFieldUByte(new JBBPNamedFieldInfo("test.field", "field", 123), (byte) 123).getAsBool()); }
@Test public void testgetAsBool_False() { assertFalse(new JBBPFieldUByte(new JBBPNamedFieldInfo("test.field", "field", 123), (byte) 0).getAsBool()); }