public static class Counter.Child extends Object
Warning: References to a Child become invalid after using
SimpleCollector.remove(java.lang.String...)
or SimpleCollector.clear()
,
Constructor and Description |
---|
Child() |
Modifier and Type | Method and Description |
---|---|
double |
get()
Get the value of the counter.
|
void |
inc()
Increment the counter by 1.
|
void |
inc(double amt)
Increment the counter by the given amount.
|
public Child()
public void inc()
public void inc(double amt)
IllegalArgumentException
- If amt is negative.public double get()
Copyright © 2018. All Rights Reserved.