@Test public void testApplyValue() throws Exception { Number initial = new Integer(15); for (int idx = 1; idx < 10; idx++) { Number target = new Integer(15 + idx); initial = new NumberWithGradient(initial, target, 1); log.info("change initial value to " + initial); } Assert.assertEquals("failed to preserve original start value", 15, initial.intValue()); }
@Override public int intValue() { return next().intValue(); }
NumberWithGradient extends Number { @Override public int intValue() { return next().intValue(); } }
NumberWithGradient extends Number { @Override public int intValue() { return next().intValue(); } NumberWithGradient(Number startValue, Number targetValue, Number gradient); }
NumberWithGradient extends Number { @Override public int intValue() { return next().intValue(); } NumberWithGradient(Number startValue, Number targetValue, Number gradient); @Override String toString(); @Override int intValue(); @Override long longValue(); @Override float floatValue(); @Override double doubleValue(); }
NumberWithGradient extends Number { @Override public int intValue() { return next().intValue(); } NumberWithGradient(Number startValue, Number targetValue, Number gradient); @Override String toString(); @Override int intValue(); @Override long longValue(); @Override float floatValue(); @Override double doubleValue();  }