JBBPIntCounter extends Number { @Override public float floatValue() { return (float) this.counter; } JBBPIntCounter();  JBBPIntCounter(final int startValue); void set(final int value); void inc(); void dec(); int getAndIncrement(); int incrementAndGet(); int getAndDecrement(); int decrementAndGet(); int get(); int getAndAdd(final int value); @Override int intValue(); @Override long longValue(); @Override float floatValue(); @Override double doubleValue();  }
@Test public void testFloatValue() { final JBBPIntCounter counter = new JBBPIntCounter(5); assertTrue(Float.compare(5.0f, counter.floatValue()) == 0); }