Container for a number. See DittoMutableCounter which can be incremented and decremented.
Builds a Map representation of the DittoRegister ready to be translated to CBOR.
Returns the register's value as a Boolean if possible, otherwise returns null.
Boolean
null
Returns the register's value as a Double if possible, otherwise returns null.
Double
Returns the register's value as a Double if possible, otherwise returns 0.0.
Returns the register's value as a Float if possible, otherwise returns null.
Float
Returns the register's value as a Float if possible, otherwise returns 0.0f.
Returns the register's value as a Int if possible, otherwise returns null.
Int
Returns the register's value as a Int if possible, otherwise returns 0.
Returns the register's value as a List<Any?> if possible, otherwise returns null.
List<Any?>
Returns the register's value as a List<Any?> if possible, otherwise an empty List.
List
Returns the register's value as a Map<String, Any?> if possible, otherwise returns null.
Map<String, Any?>
Returns the register's value Map<String, Any?> if possible, otherwise an empty Map.
Map
Returns the register's value as a String if possible, otherwise returns null.
String
Returns the register's value as a String if possible, otherwise returns an empty String.
Current value of the DittoRegister.