Dot
public struct Dot : Equatable
extension Dot: CustomStringConvertible
A pairing of a entity ID with an immutable counter value.
NOTE: the dot
definition in the dvv.erl
Erlang file also has a timestamp value to disambiguate when the counter is the same.
This implementation assumes that a server can keep that from happening, since this counter is by definition held and managed by a
specific server.
-
The key associated with the counter.
Declaration
Swift
public let key: String
-
The counter value. Active counters start at 1 (zero is used to indicate a non-existant counter)
Declaration
Swift
public let counter: UInt64
-
Obtain a new Dot instance with an incremented counted
Declaration
Swift
func increment() -> Dot
Return Value
new Dot instance
-
Declaration
Swift
public var description: String { get }