Method | Description | |
---|---|---|
Add ( long x ) : void |
Increases the sum by the specified amount.
|
|
Decrement ( ) : void |
Decrements the sum by 1.
|
|
Increment ( ) : void |
Increments the sum by 1.
|
|
Reset ( ) : void |
Sets the sum to 0.
|
|
Sum ( ) : long |
Gets the sum.
|
|
SumThenReset ( ) : long |
Gets the current sum and sets it to 0.
|
|
ToString ( ) : string |
Gets the string representation of the sum.
|