final case class Flag(enabled: Boolean) extends ReplicatedData with ReplicatedDataSerialization with Product with Serializable

Implements a boolean flag CRDT that is initialized to false and can be switched to true. true wins over false in merge.

This class is immutable, i.e. "modifying" methods return a new instance.

Annotations
@SerialVersionUID()
Source
Flag.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Flag
  2. Product
  3. Equals
  4. ReplicatedDataSerialization
  5. Serializable
  6. Serializable
  7. ReplicatedData
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Flag(enabled: Boolean)

Type Members

  1. type T = Flag

    The type of the concrete implementation, e.g.

    The type of the concrete implementation, e.g. GSet[A]. To be specified by subclass.

    Definition Classes
    FlagReplicatedData

Value Members

  1. val enabled: Boolean
  2. def merge(that: Flag): Flag

    Monotonic merge function.

    Monotonic merge function.

    Definition Classes
    FlagReplicatedData
  3. def switchOn: Flag