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