DittoCounter

open class DittoCounter

Container for a number. See DittoMutableCounter which can be incremented and decremented.

Constructors

DittoCounter
Link copied to clipboard
fun DittoCounter()

Types

Companion
Link copied to clipboard
object Companion

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

Properties

value
Link copied to clipboard
var value: Double = 0.0

Current value of the Counter.

Inheritors

DittoMutableCounter
Link copied to clipboard