public interface Counter
Modifier and Type | Method and Description |
---|---|
default void |
dec()
Decrement the value of this counter by 1.
|
void |
dec(long amount)
Decrement the amount of this counter by @amount;
|
default void |
inc()
Increment the value of this counter by 1.
|
void |
inc(long amount)
Increment the amount of this counter by @amount;
|
void inc(long amount)
amount
- the amount to increment by;void dec(long amount)
amount
- the amount to increment by;default void inc()
default void dec()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.