Add methods called just 'accumulator' for int/double in Java API