DittoMutableCounter

class DittoMutableCounter : DittoCounter

Container for a number that can be incremented and decremented.

Functions

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

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

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

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

Properties

Link copied to clipboard
val value: Double = 0.0

Current value of the Counter.