karouani / javasimon

Automatically exported from code.google.com/p/javasimon
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Clarification of Counter.increment/decrement with negative values #119

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Javadoc for methods now clarifies what happens when negative values for 
Counter.increase/decrease are used:
- they will affect increment/decrementSum respectively, making it lower
- they will adjust min/max as expected (with their timestamps):
-- after increase(1) max is set
-- after increase(-1) min is set as well
-- similarly for decrease

Original issue reported on code.google.com by virgo47 on 16 Mar 2014 at 11:17