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