DittoMutableCounter

class DittoMutableCounter : DittoCounter

Container for a number that can be incremented and decremented.

Functions

cbor
Link copied to clipboard
fun cbor(): Map<String, Any>

Builds a Map representation of the Counter ready to be translated to CBOR.

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
increment
Link copied to clipboard
fun increment(by: Double)

Increments the underlying value by the given amount. Provide a negative value to decrement.

Properties

value
Link copied to clipboard
var value: Double = 0.0

Current value of the Counter.